PT-2024-21491 · Linux+6 · Linux Kernel+6

Josef Bacik

·

Published

2024-03-04

·

Updated

2026-05-26

·

CVE-2024-26726

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.8.0-rc2+
Description The issue arises when the Linux kernel fails to write out the free space cache in one instance and then attempts to write it again. On the second pass, it calls btrfs get extent() on the inode to get the extent mapping, but since this is a new block group and the free space inode always searches the commit root to avoid deadlocking with the tree, it finds nothing and returns a EXTENT MAP HOLE for the requested range. This happens because the first time the kernel tries to write the space cache out, it hits an error and drops the extent mapping, which is normal for normal files but not for the free space cache inode, where the extent map is always expected to be correct. As a result, the second time through, the kernel ends up with a bogus extent map.
Recommendations To resolve this issue, apply the patch that skips dropping the extent map range for the failed range when writing out the free space cache. This patch is already in place for version 6.8.0-rc2+, so updating to this version or later will fix the issue. For versions prior to 6.8.0-rc2+, the specific steps to apply the patch may vary depending on the distribution and configuration of the Linux kernel. It is recommended to consult the distribution's documentation or support channels for guidance on applying the patch.
At the moment, there is no information about other versions that contain a fix for this vulnerability.

Exploit

Fix

DoS

Assertion Failure

Improper Locking

Weakness Enumeration

Related Identifiers

BDU:2025-13310
CVE-2024-26726
DSA-5658-1
OESA-2024-1617
OESA-2024-1618
OESA-2024-1622
OESA-2024-1647
OESA-2024-1648
OESA-2024-1649
SUSE-SU-2024:2135-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
USN-6895-1
USN-6895-2
USN-6895-3
USN-6895-4
USN-6900-1
USN-7774-1
USN-7774-2
USN-7774-3
USN-7774-4
USN-7774-5
USN-7775-1
USN-7775-2
USN-7775-3
USN-7776-1

Affected Products

Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu