Linux Kernel Blktrace Debugfs Entries Leakage Vulnerability

Vulnerability

A vulnerability in the Linux kernel's handling of blktrace can lead to a leakage of debugfs entries. This issue arises in a specific scenario where blktrace is enabled via ioctl after the disk has been marked for deletion with del_gendisk(), but before the corresponding debugfs entries have been removed. The vulnerability affects the stable versions of the Linux kernel.

Impact

The vulnerability causes a leakage of debugfs entries, which can lead to information disclosure or confusion during debugging processes.

Reproduction

To reproduce this vulnerability, open a disk before calling del_gendisk(). After the disk is deleted, enable blktrace through ioctl without shutting it down first. Once the disk is closed, the debugfs entries will remain, causing a leak.

Remediation

The vulnerability has been addressed by modifying the disk_release function to include a call to blk_trace_remove, ensuring that blktrace is properly shut down before the disk is fully closed.

Added: Dec 30, 2025, 3:45 PM
Updated: Dec 30, 2025, 3:45 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.0
exploitability
4.3
remediation
7.7
relevance
1.8
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.