CVE-2025-68358: btrfs: fix racy bitfield write in btrfs_clear_space_info_full()
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.18% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 38e818718c5e04961eea0fa8feff3f100ce40408, 55835646da78e83e7ad06abd741ca8fd8c0b0ea7, 6f442808a86eef847ee10afa9e6459494ed85bb3; azl3 kernel 6.6.121.1-1 on Azure Linux 3.0 6.6.126.1-1; cbl2 kernel 5.15.200.1-1 on CBL Mariner 2.0 5.15.202.1-1.
Low priority for now. Upgrade to Linux Linux 38e818718c5e04961eea0fa8feff3f100ce40408, 55835646da78e83e7ad06abd741ca8fd8c0b0ea7, 6f442808a86eef847ee10afa9e6459494ed85bb3; azl3 kernel 6.6.121.1-1 on Azure Linux 3.0 6.6.126.1-1; cbl2 kernel 5.15.200.1-1 on CBL Mariner 2.0 5.15.202.1-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In 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---
- BDU:2026-11427
- DLA-4499-1
- DSA-6126-1
- DSA-6163-1
- openSUSE-SU-2026:10039-1
- openSUSE-SU-2026:21910-1
- SUSE-SU-2026:23881-1
- SUSE-SU-2026:23887-1
- SUSE-SU-2026:23897-1
- SUSE-SU-2026:23902-1
- SUSE-SU-2026:24371-1
- SUSE-SU-2026:24379-1
- SUSE-SU-2026:24473-1
- SUSE-SU-2026:4892-1
- SUSE-SU-2026:4935-1
- SUSE-SU-2026:4940-1
- Published
- Dec 24, 2025
- Updated
- Jun 17, 2026
- EPSS
- 0.1% · 7th percentile
- CWE
- —
Report tools
Action score
22
Monitor
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.1%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel4.8 and later · before 5.15.201
- linux linux kernel5.16 and later · before 6.1.164
- linux linux kernel6.2 and later · before 6.6.124
- linux linux kernel6.7 and later · before 6.12.68
- linux linux kernel6.13 and later · before 6.17.13
- linux linux kernel6.18 and later · before 6.18.2
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 4.8affected
- 957780eb2788d8c218d539e19a85653f51a96dc1 and later · before b0bb67385480a3aa4c54b139e4f371ddd06b5150affected · git
- 957780eb2788d8c218d539e19a85653f51a96dc1 and later · before 55835646da78e83e7ad06abd741ca8fd8c0b0ea7affected · git
- 957780eb2788d8c218d539e19a85653f51a96dc1 and later · before d4a81b8ec639895999275ea2472c69825cd67ea4affected · git
- 957780eb2788d8c218d539e19a85653f51a96dc1 and later · before db4ae18e1b31e0421fb5312e56aefa382bbc6eceaffected · git
- 957780eb2788d8c218d539e19a85653f51a96dc1 and later · before 6f442808a86eef847ee10afa9e6459494ed85bb3affected · git
- 957780eb2788d8c218d539e19a85653f51a96dc1 and later · before 742b90eaf394f0018352c0e10dc89763b2dd5267affected · git
- 957780eb2788d8c218d539e19a85653f51a96dc1 and later · before 38e818718c5e04961eea0fa8feff3f100ce40408affected · git
- before 4.8not affected · semver
- 5.15.201 and later · up to and including 5.15.*not affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | linux-6.1 | before 6.1.164-1~deb11u1 | 6.1.164-1~deb11u1 |
| Debian:12 | linux | before 6.1.164-1 | 6.1.164-1 |
| Debian:13 | linux | before 6.12.69-1 | 6.12.69-1 |
| Debian:14 | linux | before 6.17.13-1 | 6.17.13-1 |
| openSUSE:Leap 16.0 | dtb-aarch64 | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-64kb | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-azure | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-default | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-default-base | before 6.12.0-160000.38.1.160000.2.22 | 6.12.0-160000.38.1.160000.2.22 |
| openSUSE:Leap 16.0 | kernel-docs | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-rt | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-source | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-syms | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | before 6.12.0-160000.38.1 | 6.12.0-160000.38.1 |
| openSUSE:Tumbleweed | kernel-source | before 6.18.5-1.1 | 6.18.5-1.1 |
| SUSE:Linux Enterprise Live Patching 12 SP5 | kernel-default | before 4.12.14-122.336.1 | 4.12.14-122.336.1 |
| SUSE:Linux Enterprise Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_89 | before 1-8.3.1 | 1-8.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7_Update_23 | before 1-150700.15.3.2 | 1-150700.15.3.2 |
| SUSE:Linux Enterprise Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7-RT_Update_22 | before 1-150700.1.3.1 | 1-150700.1.3.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | kernel-64kb | before 6.4.0-150700.53.87.3 | 6.4.0-150700.53.87.3 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | kernel-default | before 6.4.0-150700.53.87.3 | 6.4.0-150700.53.87.3 |
+31
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2025-68333Dec 22, 2025 · sched_ext: Fix possible deadlock in the deferred_irq_workfn()22Monitor
- ← EarlierCVE-2025-68340Dec 23, 2025 · team: Move team device type change at the end of team_port_add22Monitor
- Later →CVE-2025-68351Dec 24, 2025 · exfat: fix refcount leak in exfat_find22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 38e818718c5e04961eea0fa8feff3f100ce40408 | Vendor (CNA) |
| Linux Linux | 55835646da78e83e7ad06abd741ca8fd8c0b0ea7 | Vendor (CNA) |
| Linux Linux | 6f442808a86eef847ee10afa9e6459494ed85bb3 | Vendor (CNA) |
| Linux Linux | 742b90eaf394f0018352c0e10dc89763b2dd5267 | Vendor (CNA) |
| Linux Linux | b0bb67385480a3aa4c54b139e4f371ddd06b5150 | Vendor (CNA) |
| Linux Linux | d4a81b8ec639895999275ea2472c69825cd67ea4 | Vendor (CNA) |
| Linux Linux | db4ae18e1b31e0421fb5312e56aefa382bbc6ece | Vendor (CNA) |
| azl3 kernel 6.6.121.1-1 on Azure Linux 3.0 | 6.6.126.1-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 kernel 5.15.200.1-1 on CBL Mariner 2.0 | 5.15.202.1-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| debian:linux | 6.1.164-1 · Debian:12 | Package registry (OSV) |
| debian:linux-6.1 | 6.1.164-1~deb11u1 · Debian:11 | Package registry (OSV) |
| opensuse:dtb-aarch64 | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-64kb | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-azure | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-default | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-default-base | 6.12.0-160000.38.1.160000.2.22 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-docs | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-kvmsmall | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-obs-build | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-obs-qa | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-rt | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-source | 6.18.5-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:kernel-syms | 6.12.0-160000.38.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| suse:kernel-64kb | 6.12.0-160000.38.1 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-azure | 6.12.0-160000.38.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| suse:kernel-default | 6.12.0-160000.38.1 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-default-base | 6.12.0-160000.38.1.160000.2.23 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-docs | 6.12.0-160000.38.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| suse:kernel-kvmsmall | 6.12.0-160000.38.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| suse:kernel-obs-build | 6.12.0-160000.38.1 · SUSE:Linux Micro Extras 6.2 | Package registry (OSV) |
+5
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
—
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
- git.kernel.org/stable/c/55835646da78e83e7ad06abd741ca8fd8c0b0ea7
- git.kernel.org/stable/c/6f442808a86eef847ee10afa9e6459494ed85bb3
- git.kernel.org/stable/c/742b90eaf394f0018352c0e10dc89763b2dd5267
- git.kernel.org/stable/c/b0bb67385480a3aa4c54b139e4f371ddd06b5150
- git.kernel.org/stable/c/d4a81b8ec639895999275ea2472c69825cd67ea4
- git.kernel.org/stable/c/db4ae18e1b31e0421fb5312e56aefa382bbc6ece
Vendor advisories and official records. Exploit/PoC links are deliberately left out.