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


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
2.86% (88th 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-ALPINE321-NBD-8487758
  • published6 Dec 2024
  • 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 Alpine:3.21 nbd to version 3.24-r0 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 Alpine. See How to fix? for Alpine:3.21 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 Base Scores

version 3.1