Buffer Overflow Affecting nbd package, versions [,3.24)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
3.59% (89th 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 Learn

Learn about Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NBD-2419092
  • published7 Mar 2022
  • disclosed7 Mar 2022
  • creditDialluvioso, Wangduo of Chaitin Security Research Lab

Introduced: 7 Mar 2022

CVE-2022-26496  (opens in a new tab)
CWE-119  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade nbd to version 3.24 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via the handle_info function, which allows the len variable to be controlled by the attacker during the parsing of the name field by sending a crafted NBD_OPT_INFO or NBD_OPT_GO message with a large value as the length of the name.

CVSS Base Scores

version 3.1