# CVE-2022-26495: nbd-client: In nbd-server in nbd before 3.24, there is an integer overflow with aresultant heap-based buffer overflow

CVE-2022-26495 is fixed in 3 products on 1 platform, first by nbd-client 1:3.16.2-1ubuntu0.2, released March 5, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-26495
- Priority: High
- CVSS: 9.8 (Medium)
- EPSS: 0.0286
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 5, 2022

## Description

In nbd-server in nbd before 3.24, there is an integer overflow with aresultant heap-based buffer overflow. A value of 0xffffffff in the namelength 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 theNBD_OPT_INFO, NBD_OPT_GO, and NBD_OPT_EXPORT_NAME messages.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | nbd Debian 11.6 (bullseye) | 1:3.21-1+deb11u1 | [DSA-5100-1](https://patchblox.com/security/data/fix/linux/dsa-5100-1.md) | Mar 12, 2022 |
| Linux | nbd Debian 12.15 (bookworm) | 1:3.24-1 | [DEBIAN-CVE-2022-26495](https://patchblox.com/security/data/fix/linux/debian-cve-2022-26495.md) | Mar 6, 2022 |
| Linux | nbd Debian 13.5 (trixie) | 1:3.24-1 | [DEBIAN-CVE-2022-26495](https://patchblox.com/security/data/fix/linux/debian-cve-2022-26495.md) | Mar 6, 2022 |
| Linux | nbd Debian 14 | 1:3.24-1 | [DEBIAN-CVE-2022-26495](https://patchblox.com/security/data/fix/linux/debian-cve-2022-26495.md) | Mar 6, 2022 |
| Linux | nbd-client Ubuntu 18.04.6 LTS (bionic) | 1:3.16.2-1ubuntu0.2 | [nbd-client 1:3.16.2-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-nbd-client-1-3.16.2-1ubuntu0.2.md) | Mar 5, 2022 |
| Linux | nbd-client Ubuntu 20.04 LTS (focal) | 1:3.20-1ubuntu0.1 | [nbd-client 1:3.20-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-nbd-client-1-3.20-1ubuntu0.1.md) | Mar 5, 2022 |
| Linux | nbd-client Ubuntu 22.04.1 LTS (jammy) | 1:3.23-3ubuntu1 | [nbd-client 1:3.23-3ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nbd-client-1-3.23-3ubuntu1.md) | Mar 5, 2022 |
| Linux | nbd-client Ubuntu 24.10 (oracular) | 1:3.23-3ubuntu1 | [nbd-client 1:3.23-3ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-nbd-client-1-3.23-3ubuntu1.md) | Jan 16, 2026 |
| Linux | nbd-client Ubuntu 25.04 (plucky) | 1:3.23-3ubuntu1 | [nbd-client 1:3.23-3ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-nbd-client-1-3.23-3ubuntu1.md) | Jan 16, 2026 |
| Linux | nbd-server Ubuntu 18.04.6 LTS (bionic) | 1:3.16.2-1ubuntu0.2 | [nbd-server 1:3.16.2-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-nbd-server-1-3.16.2-1ubuntu0.2.md) | Mar 5, 2022 |
| Linux | nbd-server Ubuntu 20.04 LTS (focal) | 1:3.20-1ubuntu0.1 | [nbd-server 1:3.20-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-nbd-server-1-3.20-1ubuntu0.1.md) | Mar 5, 2022 |
| Linux | nbd-server Ubuntu 22.04.1 LTS (jammy) | 1:3.23-3ubuntu1 | [nbd-server 1:3.23-3ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nbd-server-1-3.23-3ubuntu1.md) | Mar 5, 2022 |
| Linux | nbd-server Ubuntu 24.10 (oracular) | 1:3.23-3ubuntu1 | [nbd-server 1:3.23-3ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-nbd-server-1-3.23-3ubuntu1.md) | Jan 16, 2026 |
| Linux | nbd-server Ubuntu 25.04 (plucky) | 1:3.23-3ubuntu1 | [nbd-server 1:3.23-3ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-nbd-server-1-3.23-3ubuntu1.md) | Jan 16, 2026 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
