CVE-2023-52837

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
21/05/2024
Last modified:
15/01/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> nbd: fix uaf in nbd_open<br /> <br /> Commit 4af5f2e03013 ("nbd: use blk_mq_alloc_disk and<br /> blk_cleanup_disk") cleans up disk by blk_cleanup_disk() and it won&amp;#39;t set<br /> disk-&gt;private_data as NULL as before. UAF may be triggered in nbd_open()<br /> if someone tries to open nbd device right after nbd_put() since nbd has<br /> been free in nbd_dev_remove().<br /> <br /> Fix this by implementing -&gt;free_disk and free private data in it.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.14 (including) 6.1.63 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.5.12 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.6 (including) 6.6.2 (excluding)