# CVE-2023-52837: nbd: fix uaf in nbd_open

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:37.859Z
- Modified: 2026-08-05T09:11:37.586Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nbd: fix uaf in nbd_open

Commit 4af5f2e03013 ("nbd: use blk_mq_alloc_disk and
blk_cleanup_disk") cleans up disk by blk_cleanup_disk() and it won't set
disk->private_data as NULL as before. UAF may be triggered in nbd_open()
if someone tries to open nbd device right after nbd_put() since nbd has
been free in nbd_dev_remove().

Fix this by implementing ->free_disk and free private data in it.

(As written by CVE List.)

## Affected

- Linux Linux: from 4af5f2e0301311f88c420fcfc5f3c8611ade20ac before 4e9b3ec84dc97909876641dad14e0a2300d6c2a3; from 4af5f2e0301311f88c420fcfc5f3c8611ade20ac before 879947f4180bc6e83af64eb0515e0cf57fce15db; from 4af5f2e0301311f88c420fcfc5f3c8611ade20ac before 56bd7901b5e9dbc9112036ea615ebcba1565fafe; from 4af5f2e0301311f88c420fcfc5f3c8611ade20ac before 327462725b0f759f093788dfbcb2f1fd132f956b; 5.14 (not affected: before 5.14; from 6.1.63 up to 6.1.*; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 5.14 before 6.1.63; from 6.2 before 6.5.12; from 6.6 before 6.6.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/4e9b3ec84dc97909876641dad14e0a2300d6c2a3> (patch)
- <https://git.kernel.org/stable/c/879947f4180bc6e83af64eb0515e0cf57fce15db> (patch)
- <https://git.kernel.org/stable/c/56bd7901b5e9dbc9112036ea615ebcba1565fafe> (patch)
- <https://git.kernel.org/stable/c/327462725b0f759f093788dfbcb2f1fd132f956b> (patch)

## Sources

- CVE List: [CVE-2023-52837](https://www.cve.org/CVERecord?id=CVE-2023-52837), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52837](https://nvd.nist.gov/vuln/detail/CVE-2023-52837), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52837 · Whole record: https://cve.day/CVE-2023-52837.json · Rebuilt by cve.day 2026-11-25T22:58:34.045Z
