CVE-2023-52837: nbd: fix uaf in nbd_open
In the Linux kernel, the following vulnerability has been resolved:
nbd: fix uaf in nbdopen
Commit 4af5f2e03013 ("nbd: use blkmqallocdisk and blkcleanupdisk") cleans up disk by blkcleanupdisk() and it won't set disk->privatedata as NULL as before. UAF may be triggered in nbdopen() if someone tries to open nbd device right after nbdput() since nbd has been free in nbddevremove().
Fix this by implementing ->freedisk and free private data in it.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
nbd: fix uaf in nbdopen
The Linux kernel CVE team has assigned CVE-2023-52837 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052110-CVE-2023-52837-6490@gregkh/T
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.63 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.5.12 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.2 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.7 - Upgrade
Upgrade
ubuntu/linux-nvidia-6.5to a version that resolves this vulnerability.Fixed in 6.5.0-1014.14
Event History
Frequently Asked Questions
What is the severity of CVE-2023-52837?
CVE-2023-52837 has a high severity level due to the potential for a use-after-free vulnerability in the Linux kernel.
How do I fix CVE-2023-52837?
To fix CVE-2023-52837, upgrade your Linux kernel to version 6.1.63, 6.5.12, 6.6.2, or 6.7 as applicable.
Which versions of the Linux kernel are affected by CVE-2023-52837?
CVE-2023-52837 affects Linux kernel versions prior to 6.1.63, 6.5.12, 6.6.2, and 6.7.
Is there an exploit available for CVE-2023-52837?
While specific exploits for CVE-2023-52837 are not publicly documented, use-after-free vulnerabilities typically pose a risk of exploitation.
What are the potential impacts of CVE-2023-52837?
The potential impacts of CVE-2023-52837 include system crashes, data corruption, and unauthorized access to sensitive information.