# CVE-2023-54209: block: fix blktrace debugfs entries leakage

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-30T12:11:08.027Z
- Modified: 2026-10-28T19:10:00.193Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: fix blktrace debugfs entries leakage

Commit 99d055b4fd4b ("block: remove per-disk debugfs files in
blk_unregister_queue") moves blk_trace_shutdown() from
blk_release_queue() to blk_unregister_queue(), this is safe if blktrace
is created through sysfs, however, there is a regression in corner
case.

blktrace can still be enabled after del_gendisk() through ioctl if
the disk is opened before del_gendisk(), and if blktrace is not shutdown
through ioctl before closing the disk, debugfs entries will be leaked.

Fix this problem by shutdown blktrace in disk_release(), this is safe
because blk_trace_remove() is reentrant.

(As written by CVE List.)

## Affected

- Linux Linux: from 99d055b4fd4bbb309c6cdb51a0d420669f777944 before aa07e56c6a9c7558165690d14eed4fe8babf34fb; from 99d055b4fd4bbb309c6cdb51a0d420669f777944 before 7149e57cf01184fba175589f8fbe9fbf33be02e1; from 99d055b4fd4bbb309c6cdb51a0d420669f777944 before 942e81650b81b4ca62f1d8c61de455c9e7c7e6ca; from 99d055b4fd4bbb309c6cdb51a0d420669f777944 before dd7de3704af9989b780693d51eaea49a665bd9c2; 5.19 (not affected: before 5.19; from 6.1.39 up to 6.1.*; from 6.3.13 up to 6.3.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)

## References

- <https://git.kernel.org/stable/c/aa07e56c6a9c7558165690d14eed4fe8babf34fb>
- <https://git.kernel.org/stable/c/7149e57cf01184fba175589f8fbe9fbf33be02e1>
- <https://git.kernel.org/stable/c/942e81650b81b4ca62f1d8c61de455c9e7c7e6ca>
- <https://git.kernel.org/stable/c/dd7de3704af9989b780693d51eaea49a665bd9c2>

## Sources

- CVE List: [CVE-2023-54209](https://www.cve.org/CVERecord?id=CVE-2023-54209), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54209](https://nvd.nist.gov/vuln/detail/CVE-2023-54209), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-54209 · Whole record: https://cve.day/CVE-2023-54209.json · Rebuilt by cve.day 2026-11-25T22:58:35.222Z
