Vulnerability · Published Mar 6, 2022 · Assigned by mitre
CVE-2022-26495
Critical 9.8
In plain English
A critical-severity security flaw in the nbd package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.9%top 13.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | nbd | 3.24-r0 | ALPINE-CVE-2022-26495 |
| Alpine:v3.21 | nbd | 3.24-r0 | ALPINE-CVE-2022-26495 |
| Alpine:v3.22 | nbd | 3.24-r0 | ALPINE-CVE-2022-26495 |
| Alpine:v3.23 | nbd | 3.24-r0 | ALPINE-CVE-2022-26495 |
| Alpine:v3.24 | nbd | 3.24-r0 | ALPINE-CVE-2022-26495 |
| Debian:12 | nbd | 1:3.24-1 | DEBIAN-CVE-2022-26495 |
| Debian:13 | nbd | 1:3.24-1 | DEBIAN-CVE-2022-26495 |
| Debian:14 | nbd | 1:3.24-1 | DEBIAN-CVE-2022-26495 |
| Ubuntu:22.04:LTS | nbd | 1:3.23-3ubuntu1 | UBUNTU-CVE-2022-26495 |
Affected products (as reported)
References
- https://lists.debian.org/nbd/2022/01/msg00037.html
- https://sourceforge.net/projects/nbd/files/nbd/
- [debian-lts-announce] 20220310 [SECURITY] [DLA 2944-1] nbd security update mailing-list
- DSA-5100 vendor-advisory
- FEDORA-2022-62adf9a1e0 vendor-advisory
- FEDORA-2022-807e431d5f vendor-advisory
- FEDORA-2022-263873fb70 vendor-advisory
- GLSA-202402-10 vendor-advisory