# CVE-2021-3348: nbdaddsocket in drivers/block/nbd.c in the Linux kernel through 5.10.12 has an ndbqueuerq use-after-free that could be triggered by local a…

- Severity: High 7.0 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2021-02-01T03:43:32.000Z
- Modified: 2026-06-17T04:04:59.013Z
- Weaknesses: CWE-362, CWE-416
- Assigned by: mitre

## Description

nbd_add_socket in drivers/block/nbd.c in the Linux kernel through 5.10.12 has an ndb_queue_rq use-after-free that could be triggered by local attackers (with access to the nbd device) via an I/O request at a certain point during device setup, aka CID-b98e762e3d71.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: up to 5.10.12
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.4 Medium `AV:L/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b98e762e3d71e893b221f871825dc64694cfb258> (mailing-list, patch, vendor-advisory)
- <https://www.openwall.com/lists/oss-security/2021/01/28/3> (mailing-list, patch, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2021/02/01/1> (mailing-list, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00035.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3348](https://www.cve.org/CVERecord?id=CVE-2021-3348), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3348](https://nvd.nist.gov/vuln/detail/CVE-2021-3348), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3348 · Whole record: https://cve.day/CVE-2021-3348.json · Rebuilt by cve.day 2026-11-25T22:57:59.768Z
