CVE-2023-54209

block: fix blktrace debugfs entries leakage

No CVSS score yet EPSS 0.21%

Published 30 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2023-54209

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54209 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 99d055b4fd4bbb309c6cdb51a0d420669f777944, before aa07e56c6a9c7558165690d14eed4fe8babf34fb
affected from 99d055b4fd4bbb309c6cdb51a0d420669f777944, before 7149e57cf01184fba175589f8fbe9fbf33be02e1
affected from 99d055b4fd4bbb309c6cdb51a0d420669f777944, before 942e81650b81b4ca62f1d8c61de455c9e7c7e6ca
affected from 99d055b4fd4bbb309c6cdb51a0d420669f777944, before dd7de3704af9989b780693d51eaea49a665bd9c2
Other versions: unaffected
Linux
affected 5.19
unaffected before 5.19
unaffected from 6.1.39 up to and including 6.1.*
unaffected from 6.3.13 up to and including 6.3.*
unaffected from 6.4.4 up to and including 6.4.*
unaffected 6.5 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54209 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54209

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-54209
trivy image --scanners vuln IMAGE | grep CVE-2023-54209

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-54209 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.