
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-54209 is a resource leak vulnerability in the Linux kernel's block layer related to blktrace debugfs entries. The issue stems from a regression introduced by commit 99d055b4fd4b ("block: remove per-disk debugfs files in blk_unregister_queue"), which moved blk_trace_shutdown() from blk_release_queue() to blk_unregister_queue(). This change is safe when blktrace is created via sysfs, but creates a corner case where blktrace enabled via ioctl after del_gendisk() — on a disk opened before that call — can leak debugfs entries if not explicitly shut down before the disk is closed. The vulnerability affects Linux kernel versions from 5.19 up to the patched releases (6.1.39, 6.3.13, 6.4.4, and 6.5). It carries an estimated CVSS severity of Medium and an EPSS score of approximately 0.018% (Feedly, EUVD).
The root cause is a resource management flaw (CWE-401: Missing Release of Memory after Effective Lifetime) in the Linux kernel's block I/O tracing subsystem. When a disk is opened before del_gendisk() is called, blktrace can still be enabled via ioctl after del_gendisk(). Because blk_trace_shutdown() was relocated to blk_unregister_queue() by the prior commit, it no longer runs during disk_release() in this code path, causing debugfs entries to persist and leak. The fix moves blktrace shutdown back to disk_release(), which is safe because blk_trace_remove() is reentrant. This is a local, low-complexity issue requiring the ability to open a block device and issue ioctl calls (Feedly, EUVD).
The primary impact of this vulnerability is a kernel resource leak — specifically, debugfs entries associated with blktrace are not properly cleaned up, which can result in stale entries accumulating in the kernel's debugfs filesystem. This does not directly enable code execution or privilege escalation, but persistent resource leaks can contribute to system instability or denial of service over time. The confidentiality and integrity impacts are considered negligible; the main concern is availability degradation on affected systems running vulnerable kernel versions (Feedly).
The Linux kernel maintainers have addressed this vulnerability in the following stable releases: 6.1.39, 6.3.13, 6.4.4, and 6.5. The fix applies blk_trace_shutdown() within disk_release() to ensure cleanup occurs regardless of how blktrace was enabled. Administrators should update to a patched kernel version as soon as possible. No configuration-based workaround is available beyond avoiding the use of blktrace via ioctl on disks that may be concurrently undergoing removal (Feedly, EUVD).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."