CVE-2023-54158
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-54158 is a qgroup space leak vulnerability in the Linux kernel's Btrfs filesystem subsystem. The flaw occurs in the btrfs_insert_delayed_dir_index() function, where qgroup (quota group) reserved space is incorrectly freed when the kernel optimizes directory item packing into already-modified leaves. The issue was introduced as a side effect of a change that stopped performing a transaction commit during subvolume creation, making the leak more easily triggered — particularly when performing mkdir followed by subvolume creation with qgroups enabled. It was published to the CVE database on December 24, 2025, and affects the Linux kernel; a CVSS score has not been publicly assigned at this time (CVE Record, Feedly).

Technical details

The root cause is an improper resource release (CWE-772) in the Btrfs delayed inode code path. When btrfs_insert_delayed_dir_index() determines it can pack a directory item into an already-modified leaf, it calls btrfs_block_rsv_release() to free extra reservations. However, trans->block_rsv at this point points to the temporary block reservation for the subvolume create operation, which contains qgroup reservations. The btrfs_block_rsv_release() function then incorrectly releases qgroup space (qgroup_rsv_reserved) that should not be freed at that stage, resulting in a qgroup accounting leak. The bug is reproducible by enabling qgroups and performing a mkdir followed by a subvolume create operation (CVE Record).

Impact

The primary impact of this vulnerability is incorrect qgroup (quota group) accounting within the Btrfs filesystem, leading to a resource leak. This can cause qgroup-enforced disk quotas to become inaccurate, potentially allowing users to consume more disk space than their quota permits or causing quota enforcement to behave unexpectedly. There is no known confidentiality or integrity impact beyond filesystem accounting correctness, and the vulnerability does not enable privilege escalation or remote code execution (CVE Record).

Mitigation and workarounds

The fix has been committed to the Linux kernel stable tree across multiple branches, with patches available at the upstream kernel Git repository (commits 1e05bf5e80bb, 04ff6bd03177, 15e877e5923e, 148b16cd30b2, and 478bd15f46b6). Users should update to a patched kernel version that includes these fixes. As a workaround, disabling Btrfs qgroups (if not required) will prevent the leak from occurring. Linux distribution maintainers (e.g., Red Hat) are tracking this issue for inclusion in their respective kernel updates (CVE Record, Red Hat).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management