CVE-2023-52837·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.6.2
- Published
- 2024-05-21
Affected versions
From: 6.6
Until: 6.6.2
Fixed in: 6.6.2
How to fix this CVE
Update your Linux kernel to version 6.6.2 or later to resolve a use-after-free vulnerability in the NBD (network block device) subsystem. The issue occurs when the NBD device is accessed immediately after being closed, potentially leading to kernel memory corruption. Apply the latest kernel patches through your distribution's package manager and reboot your system to activate the fix.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if NBD (network block device) module is loaded: lsmod | grep nbd
- Review kernel logs for UAF-related warnings: dmesg | grep -i 'use-after-free\|nbd\|uaf'
- Confirm kernel was successfully updated post-reboot and verify the new version is 6.6.2 or later: uname -r
FAQ
What is CVE-2023-52837?
CVE-2023-52837 is a use-after-free vulnerability in the Linux kernel's NBD (network block device) driver that can be triggered when a process attempts to open an NBD device immediately after its closure, potentially allowing local privilege escalation or kernel crash.
Is CVE-2023-52837 being actively exploited?
No, CVE-2023-52837 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and there are no publicly available exploits for this vulnerability.
What versions of Kernel are affected by CVE-2023-52837?
Linux kernel versions 6.6 through 6.6.2 are affected; the vulnerability was fixed in kernel version 6.6.2.
How do I check if my server is vulnerable to CVE-2023-52837?
Run 'uname -r' to check your kernel version; if it reports 6.6.0, 6.6.1, or 6.6.2 and NBD is enabled (check with 'lsmod | grep nbd'), your system may be vulnerable.
Does Defensia detect CVE-2023-52837?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2023-52837 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/327462725b0f759f093788dfbcb2f1fd132f956b
- https://git.kernel.org/stable/c/4e9b3ec84dc97909876641dad14e0a2300d6c2a3
- https://git.kernel.org/stable/c/56bd7901b5e9dbc9112036ea615ebcba1565fafe
- https://git.kernel.org/stable/c/879947f4180bc6e83af64eb0515e0cf57fce15db
- https://git.kernel.org/stable/c/327462725b0f759f093788dfbcb2f1fd132f956b
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52837. Free for 1 server.
Get started free