Integer Overflow or Wraparound Affecting nbd package, versions <1:3.24-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.53% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-NBD-2419046
  • published6 Mar 2022
  • disclosed6 Mar 2022

Introduced: 6 Mar 2022

CVE-2022-26495  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Debian:unstable nbd to version 1:3.24-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nbd package and not the nbd package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Scores

version 3.1