Skip to content
Noroxi
NVD / CVE Program· CNA Linux

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---

MediumCVSS 5.5 · v3.1—No exploit Fix available
Published
Dec 24, 2025
Updated
Jun 17, 2026
EPSS
0.1% · 7th percentile
CWE
—

Report tools

JSON

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.

Follow CVE-2025-68358

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

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 help

Affected 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.

VendorProduct
linuxlinux 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.

EcosystemPackageAffected rangeFix
Debian:11linux-6.1before 6.1.164-1~deb11u16.1.164-1~deb11u1
Debian:12linuxbefore 6.1.164-16.1.164-1
Debian:13linuxbefore 6.12.69-16.12.69-1
Debian:14linuxbefore 6.17.13-16.17.13-1
openSUSE:Leap 16.0dtb-aarch64before 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-64kbbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-azurebefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-defaultbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-default-basebefore 6.12.0-160000.38.1.160000.2.226.12.0-160000.38.1.160000.2.22
openSUSE:Leap 16.0kernel-docsbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-kvmsmallbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-obs-buildbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-obs-qabefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-rtbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-sourcebefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-symsbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Leap 16.0kernel-zfcpdumpbefore 6.12.0-160000.38.16.12.0-160000.38.1
openSUSE:Tumbleweedkernel-sourcebefore 6.18.5-1.16.18.5-1.1
SUSE:Linux Enterprise Live Patching 12 SP5kernel-defaultbefore 4.12.14-122.336.14.12.14-122.336.1
SUSE:Linux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_89before 1-8.3.11-8.3.1
SUSE:Linux Enterprise Live Patching 15 SP7kernel-livepatch-SLE15-SP7_Update_23before 1-150700.15.3.21-150700.15.3.2
SUSE:Linux Enterprise Live Patching 15 SP7kernel-livepatch-SLE15-SP7-RT_Update_22before 1-150700.1.3.11-150700.1.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7kernel-64kbbefore 6.4.0-150700.53.87.36.4.0-150700.53.87.3
SUSE:Linux Enterprise Module for Basesystem 15 SP7kernel-defaultbefore 6.4.0-150700.53.87.36.4.0-150700.53.87.3

+31

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • 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 KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

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_add
    22Monitor
  • Later →CVE-2025-68351Dec 24, 2025 · exfat: fix refcount leak in exfat_find
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux38e818718c5e04961eea0fa8feff3f100ce40408Vendor (CNA)
Linux Linux55835646da78e83e7ad06abd741ca8fd8c0b0ea7Vendor (CNA)
Linux Linux6f442808a86eef847ee10afa9e6459494ed85bb3Vendor (CNA)
Linux Linux742b90eaf394f0018352c0e10dc89763b2dd5267Vendor (CNA)
Linux Linuxb0bb67385480a3aa4c54b139e4f371ddd06b5150Vendor (CNA)
Linux Linuxd4a81b8ec639895999275ea2472c69825cd67ea4Vendor (CNA)
Linux Linuxdb4ae18e1b31e0421fb5312e56aefa382bbc6eceVendor (CNA)
azl3 kernel 6.6.121.1-1 on Azure Linux 3.06.6.126.1-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
cbl2 kernel 5.15.200.1-1 on CBL Mariner 2.05.15.202.1-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
debian:linux6.1.164-1 · Debian:12Package registry (OSV)
debian:linux-6.16.1.164-1~deb11u1 · Debian:11Package registry (OSV)
opensuse:dtb-aarch646.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-64kb6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-azure6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-default6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-default-base6.12.0-160000.38.1.160000.2.22 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-docs6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-kvmsmall6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-obs-build6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-obs-qa6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-rt6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-source6.18.5-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:kernel-syms6.12.0-160000.38.1 · openSUSE:Leap 16.0Package registry (OSV)
suse:kernel-64kb6.12.0-160000.38.1 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-azure6.12.0-160000.38.1 · SUSE:Linux Enterprise Server 16.0Package registry (OSV)
suse:kernel-default6.12.0-160000.38.1 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-default-base6.12.0-160000.38.1.160000.2.23 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-docs6.12.0-160000.38.1 · SUSE:Linux Enterprise Server 16.0Package registry (OSV)
suse:kernel-kvmsmall6.12.0-160000.38.1 · SUSE:Linux Enterprise Server 16.0Package registry (OSV)
suse:kernel-obs-build6.12.0-160000.38.1 · SUSE:Linux Micro Extras 6.2Package 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.

Finders, 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

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records