Technical impact
The Linux kernel has a flaw in the HFS and HFS+ file system implementation where B‑tree nodes that have a zero reference count remain cached until they are freed. The close routine walks and frees these nodes without holding the hash lock, while the folio release callbacks remove them under the lock, causing a use‑after‑free or double‑free condition. An attacker who can trigger the close of such a tree can obtain an unreferenced pointer to freed memory, enabling a kernel memory corruption that can be leveraged to execute arbitrary code with kernel privileges.
Affected Systems
All Linux kernel releases that include the HFS/HFS+ file system code are affected, regardless of specific patch levels. The vulnerability exists until the fixes applied in the referenced kernel commits are incorporated by the distribution maintainers.
Risk and Exploitability
Although EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, the nature of a kernel use‑after‑free gives the bug a high severity. The flaw can be exploited locally by any user who can manipulate files on an HFS/HFS+ mounted partition or remotely if the system exposes the file system to untrusted input. The lack of a lock around the node cleanup routine creates a race condition that can be triggered by concurrent read/write activity, making the bug potentially easier to exploit in multi‑threaded environments.