CVE-2022-26495: Buffer Overflow

Published Mar 6, 2022
·
Updated

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 NBDOPTINFO, NBDOPTGO, and NBDOPTEXPORTNAME messages.

Affected Software

21 affected componentsFixes available
debian/nbd<=1:3.23-3, <=1:3.15.2-3
1:3.24-11:3.21-1+deb11u11:3.19-3+deb10u1
Network Block Device Project Network Block Device<3.24
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
debian/nbd<1:3.24-1
1:3.24-1
debian/nbd<1:3.24-1
1:3.24-1
debian/nbd<1:3.24-1
1:3.24-1
debian/nbd
1:3.24-1.11:3.26.1-6.11:3.27.1-4
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0
alpine/nbd<3.24-r0
3.24-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/nbd to a version that resolves this vulnerability.

    Fixed in 1:3.24-1Fixed in 1:3.21-1+deb11u1Fixed in 1:3.19-3+deb10u1
  2. Upgrade

    Upgrade debian/nbd to a version that resolves this vulnerability.

    Fixed in 1:3.24-1.1Fixed in 1:3.26.1-6.1Fixed in 1:3.27.1-4
  3. Upgrade

    Upgrade alpine/nbd to a version that resolves this vulnerability.

    Fixed in 3.24-r0
  4. Upgrade

    Upgrade debian/nbd to a version that resolves this vulnerability.

    Fixed in 1:3.24-1

Event History

Mar 6, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:15 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-26495?

CVE-2022-26495 is a vulnerability in nbd-server in nbd before version 3.24 that allows an attacker to trigger a heap-based buffer overflow through an integer overflow.

2

What is the severity of CVE-2022-26495?

CVE-2022-26495 has a severity rating of 9.8 (Critical).

3

How does CVE-2022-26495 affect the NBD server in nbd?

CVE-2022-26495 affects nbd-server in nbd versions before 3.24, allowing an attacker to trigger a heap-based buffer overflow.

4

What software versions are affected by CVE-2022-26495?

CVE-2022-26495 affects nbd versions up to and including 3.23.

5

How can I fix CVE-2022-26495?

To fix CVE-2022-26495, update your nbd package to version 3.24 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203