Skip to content
Fencer Vulns
critical 9.8

CVE-2022-26495 json

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

published 2022-03-06 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-31053

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.9%
EPSS 2.9% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

Summary

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.

Patch / fix

  • network_block_device_project network_block_device 3.24
  • nbd Debian 14, Debian 13, Debian 12 1:3.24-1

debian advisories DEBIAN-CVE-2022-26495

  • nbd Ubuntu 18.04 LTS 1:3.16.2-1ubuntu0.2
  • nbd Ubuntu 20.04 LTS 1:3.20-1ubuntu0.1
  • nbd Ubuntu 22.04 LTS 1:3.23-3ubuntu1

ubuntu advisories UBUNTU-CVE-2022-26495

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • nbd openSUSE Leap 15.3 3.24-150000.3.3.1

suse advisories SUSE-SU-2022:1276-1

  • nbd openSUSE Tumbleweed 3.24-1.1

opensuse advisories openSUSE-SU-2024:11993-1

  • nbd Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 3.24-r0

alpine advisories ALPINE-CVE-2022-26495

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-26495 updated cvss 5.5

nbd: heap-based buffer overflow in nbd-server.c

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.86% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • lists.debian.org https://lists.debian.org/nbd/2022/01/msg00037.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.