CVE-2025-68358
linux linux kernel
Patch priority
RegularFix with the next regular update.
- CVSS
- 5.5
- Severity
- 5.5
- EPSS
- 0.2 %
- Percentile
- 9
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
Everyone who uses Linux-Kernel.
How dangerous is it?
- An attacker already needs access to the device (or gets you to open a file).
- The attacker must already be logged in – this lowers the risk.
What to do?
- Include it in your next regular update.
- Install your distribution’s kernel update and reboot – the new kernel only runs after a restart.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDIn the Linux kernel, the following vulnerability has been resolved: btrfs: fix racy bitfield write in btrfs_clear_space_info_full() From the memory-barriers.txt document regarding memory barrier ordering guarantees: (*) These guarantees do not apply to bitfields, because compilers often generate code to modify these using non-atomic read-modify-write sequences. Do not attempt to use bitfields to synchronize parallel algorithms. (*) Even in cases where bitfields are protected by locks, all fields in a given bitfield must be protected by one lock. If two fields in a given bitfield are protected by different locks, the compiler's non-atomic read-modify-write sequences can cause an update to one field to corrupt the value of an adjacent field. btrfs_space_info has a bitfield sharing an underlying word consisting of the fields full, chunk_alloc, and flush: struct btrfs_space_info { struct btrfs_fs_info * fs_info; /* 0 8 */ struct btrfs_space_info * parent; /* 8 8 */ ... int clamp; /* 172 4 */ unsigned int full:1; /* 176: 0 4 */ unsigned int chunk_alloc:1; /* 176: 1 4 */ unsigned int flush:1; /* 176: 2 4 */ ... Therefore, to be safe from parallel read-modify-writes losing a write to one of the bitfield members protected by a lock, all writes to all the bitfields must use the lock. They almost universally do, except for btrfs_clear_space_info_full() which iterates over the space_infos and writes out found->full = 0 without a lock. Imagine that we have one thread completing a transaction in which we finished deleting a block_group and are thus calling btrfs_clear_space_info_full() while simultaneously the data reclaim ticket infrastructure is running do_async_reclaim_data_space(): T1 T2 btrfs_commit_transaction btrfs_clear_space_info_full data_sinfo->full = 0 READ: full:0, chunk_alloc:0, flush:1 do_async_reclaim_data_space(data_sinfo) spin_lock(&space_info->lock); if(list_empty(tickets)) space_info->flush = 0; READ: full: 0, chunk_alloc:0, flush:1 MOD/WRITE: full: 0, chunk_alloc:0, flush:0 spin_unlock(&space_info->lock); return; MOD/WRITE: full:0, chunk_alloc:0, flush:1 and now data_sinfo->flush is 1 but the reclaim worker has exited. This breaks the invariant that flush is 0 iff there is no work queued or running. Once this invariant is violated, future allocations that go into __reserve_bytes() will add tickets to space_info->tickets but will see space_info->flush is set to 1 and not queue the work. After this, they will block forever on the resulting ticket, as it is now impossible to kick the worker again. I also confirmed by looking at the assembly of the affected kernel that it is doing RMW operations. For example, to set the flush (3rd) bit to 0, the assembly is: andb $0xfb,0x60(%rbx) and similarly for setting the full (1st) bit to 0: andb $0xfe,-0x20(%rax) So I think this is really a bug on practical systems. I have observed a number of systems in this exact state, but am currently unable to reproduce it. Rather than leaving this footgun lying around for the future, take advantage of the fact that there is room in the struct anyway, and that it is already quite large and simply change the three bitfield members to bools. This avoids writes to space_info->full having any effect on ---truncated---
- Vendor / product
- linux linux kernel
- Published
- 24.12.2025
- Modified
- 17.06.2026
- Status
- Analyzed
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Vendor updates
43- SUSE: SUSE-SU-2026:24553-1 – Security update for the Linux Kernel 06.11.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:24471-1 – Security update for the Linux Kernel 03.11.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:24473-1 – Security update for the Linux Kernel 03.11.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:4940-1 – Security update for the Linux Kernel 29.10.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:4935-1 – Security update for the Linux Kernel 29.10.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:24371-1 – Security update for the Linux Kernel 27.10.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:24375-1 – Security update for the Linux Kernel 27.10.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:24379-1 – Security update for the Linux Kernel 27.10.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:24364-1 – Security update for the Linux Kernel 26.10.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:4892-1 – Security update for the Linux Kernel 23.10.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:23897-1 – Security update for the Linux Kernel 29.09.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:23902-1 – Security update for the Linux Kernel 29.09.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:23881-1 – Security update for the Linux Kernel 29.09.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:23887-1 – Security update for the Linux Kernel 29.09.2026 · Critical · Patch day
- Ubuntu: USN-8668-2 – Linux kernel (Raspberry Pi) vulnerabilities 21.09.2026 · Critical · Patch day
- Ubuntu: USN-8668-1 – Linux kernel (GCP) vulnerabilities 21.08.2026 · Critical · Patch day
- Ubuntu: USN-8620-4 – Linux kernel (Intel IoTG) vulnerabilities 31.07.2026 · Critical · Patch day
- Ubuntu: USN-8620-3 – Linux kernel (Intel IoTG) vulnerabilities 31.07.2026 · Critical · Patch day
- Ubuntu: USN-8620-2 – Linux kernel (Azure FIPS) vulnerabilities 29.07.2026 · Critical · Patch day
- Ubuntu: USN-8620-1 – Linux kernel vulnerabilities 28.07.2026 · Critical · Patch day
- Ubuntu: USN-8610-1 – Linux kernel (Azure CVM) vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8575-3 – Linux kernel vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8597-1 – Linux kernel (IBM) vulnerabilities 23.07.2026 · Critical · Patch day
- Ubuntu: USN-8576-2 – Linux kernel (NVIDIA Tegra) vulnerabilities 23.07.2026 · Critical · Patch day
- Ubuntu: USN-8575-2 – Linux kernel vulnerabilities 23.07.2026 · Critical · Patch day
- Ubuntu: USN-8576-1 – Linux kernel (NVIDIA Tegra) vulnerabilities 21.07.2026 · Critical · Patch day
- Ubuntu: USN-8575-1 – Linux kernel vulnerabilities 21.07.2026 · Critical · Patch day
- Ubuntu: USN-8499-1 – Linux kernel (Xilinx) vulnerabilities 02.07.2026 · Critical · Patch day
- Ubuntu: USN-8440-1 – Linux kernel (Azure) vulnerabilities 17.06.2026 · Critical · Patch day
- Ubuntu: USN-8393-1 – Linux kernel (Azure FIPS) vulnerabilities 05.06.2026 · Critical · Patch day
- Ubuntu: USN-8278-2 – Linux kernel (Azure) vulnerabilities 26.05.2026 · Critical · Patch day
- Ubuntu: USN-8289-2 – Linux kernel (NVIDIA) vulnerabilities 25.05.2026 · Critical · Patch day
- Ubuntu: USN-8296-2 – Linux kernel (NVIDIA Tegra) vulnerabilities 25.05.2026 · HIGH · Patch day
- Ubuntu: USN-8296-1 – Linux kernel (FIPS) vulnerabilities 22.05.2026 · HIGH · Patch day
- Ubuntu: USN-8289-1 – Linux kernel (NVIDIA) vulnerabilities 21.05.2026 · Critical · Patch day
- Ubuntu: USN-8278-1 – Linux kernel vulnerabilities 20.05.2026 · Critical · Patch day
- Ubuntu: USN-8152-1 – Linux kernel (OEM) vulnerabilities 06.04.2026 · Critical · Patch day
- Ubuntu: USN-8094-5 – Linux kernel (Raspberry Pi) vulnerabilities 01.04.2026 · Critical · Patch day
- Ubuntu: USN-8094-4 – Linux kernel (Azure) vulnerabilities 25.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-3 – Linux kernel (Real-time) vulnerabilities 23.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-2 – Linux kernel vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-1 – Linux kernel vulnerabilities 16.03.2026 · Critical · Patch day
- Microsoft: Mariner 25.12.2025 · Medium · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.