Skip to main content

Linux Kernel EUVDEUVD-2025-201642

| CVE-2025-40303 HIGH
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privilege access
  2. Delivery
    Trigger btrfs I/O errors on RAID56 metadata fs
  3. Exploit
    Filesystem marked errored, dirty metadata retained
  4. Execution
    Unmount triggers writeback after workers freed
  5. Persist
    queue_work on freed rmw_workers
  6. Impact
    Use-after-free crashes kernel (DoS)

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access with low privileges (PR:L) and a btrfs filesystem that has entered an error/abort state (e.g., via injected I/O errors or extent/free-space tree corruption) with unflushed dirty metadata still in the btree inode page cache. The RAID56 metadata profile is the specific configuration that reliably triggers the crash, because it invokes the read-modify-write path that queues work onto the already-stopped rmw_workers during close_ctree(); non-RAID56 configurations are far less likely to hit the use-after-free. Limiting factors: no remote or network vector (AV:L), no unauthenticated path (PR:L), and dependence on both a non-default RAID56 metadata layout and a prior filesystem error condition, all of which narrow real-world exploitability well below the raw 7.8 score.

Impact

The signals are internally consistent and point to a real but low-to-moderate real-world priority. The CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) confirms local access with low privileges and no user interaction, and the practical impact is a kernel crash/use-after-free (denial of service, matching the 'Denial Of Service' tag) with theoretical memory-corruption potential rather than a straightforward remote exploit. EPSS is very low at 0.03% (7th percentile), it is not on the CISA KEV list, and no POC is referenced, so there is no evidence of active or imminent widespread exploitation. Importantly, triggering requires the filesystem to already be in an error/abort state AND (most reliably) RAID56 btrfs metadata - a non-default, relatively uncommon configuration - which materially limits realistic exposure. This is best treated as a stability/robustness fix to roll out through normal patch cycles rather than an emergency.

Exploit ScenarioDerived

A local user with low privileges runs a workload that induces btrfs I/O errors or a transaction abort on a filesystem using RAID56 metadata (similar to the fstests generic/388 pattern), then unmounts it. During unmount, dirty metadata is written back after the worker queues are freed, dereferencing the destroyed rmw_workers queue and triggering a use-after-free that crashes or destabilizes the kernel. No public exploit is identified at time of analysis, and the local, low-complexity vector means the primary realistic outcome is denial of service.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 30, 2026

Use-after-free in the Linux kernel btrfs filesystem allows a local user to crash the system during unmount of an error-flagged filesystem, particularly when RAID56 is used for metadata. When btrfs marks a filesystem as errored, dirty tree-block folios linger in the btree inode page cache and are written back during close_ctree() after the worker threads have already been stopped and freed, causing queue_work() on a destroyed rmw_workers queue and a use-after-free. CVSS is 7.8 (High); this is a local privilege/DoS issue with no public exploit identified at time of analysis and a very low EPSS of 0.03%.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:54

RemediationAI

Vendor-released patch: upgrade to a fixed Linux kernel - 6.6.117, 6.12.58, 6.17.8, or 6.18 (or later within each series), sourced from the stable commits at https://git.kernel.org/stable/c/e2b3859067bf012d53c49b3f885fef40624a2c83 and its siblings. Distribution users should apply their vendor kernel update, e.g. Ubuntu per USN-8095-1 (https://ubuntu.com/security/notices/USN-8095-1), and reboot into the patched kernel. If immediate patching is not possible, a targeted compensating control is to avoid using RAID56 profiles for btrfs metadata (use RAID1/RAID1C3 for metadata instead), which removes the RMW path that most reliably triggers the use-after-free; the trade-off is a metadata-profile conversion (btrfs balance) and reduced RAID56-style space efficiency for metadata. As general hardening, restrict local/administrative access needed to mount and stress btrfs filesystems, since exploitation requires local privileges.

Affected VersionsENISA

Linux patch: 0
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e2b3859067bf012d53c49b3f885fef40624a2c83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <066ee13f05fbd82ada01883e51f0695172f98dff
Linux 13e6c37b989859e70b0d73d3f2cb0aa022159b17 <e2b3859067bf012d53c49b3f885fef40624a2c83
Linux patch: 6.18
Linux patch: 6.6.117
Linux patch: 6.17.8
Linux patch: 6.12.58
Linux 13e6c37b989859e70b0d73d3f2cb0aa022159b17 <066ee13f05fbd82ada01883e51f0695172f98dff
Linux 3.10
Linux 13e6c37b989859e70b0d73d3f2cb0aa022159b17 <54a5b5a15588e3b0b294df31474d08a2678d4291
Linux 13e6c37b989859e70b0d73d3f2cb0aa022159b17 <2618849f31e7cf51fadd4a5242458501a6d5b315
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <54a5b5a15588e3b0b294df31474d08a2678d4291
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2618849f31e7cf51fadd4a5242458501a6d5b315

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw lives in the btrfs copy-on-write filesystem's metadata writeback path within the Linux kernel. After an error transitions the fs to a frozen error state, no transaction commits, so dirty metadata folios in the btree inode's page cache cannot be invalidated by invalidate_inode_pages2() during close_ctree(). The final iput() on the btree inode triggers writeback of these dirty extent buffers; with RAID56 metadata this initiates a read-modify-write cycle that queues jobs onto rmw_workers after btrfs_stop_all_workers() has already torn down and freed that workqueue - a classic use-after-free (CWE-416 class, though CWE is listed N/A in the input). The fix modifies write_one_eb() to immediately mark the bbio as failed when the fs is already in an error state, so the dirty tree blocks are discarded rather than submitted, which also prevents further on-disk corruption when the abort stems from extent/free-space tree corruption.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–High)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 5.3 MEDIUM

Local low-priv trigger, but requires a prior fs-error state and non-default RAID56 metadata (AC:H); impact is primarily a kernel crash (A:H) with limited integrity, no confidentiality loss.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 5.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Red Hat 3.3 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
CVE Published
Dec 08, 2025 - 01:16 cve.org
HIGH 7.8
CVE Published
Dec 08, 2025 - 01:16 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

btrfs: ensure no dirty metadata is written back for an fs with errors

[BUG] During development of a minor feature (make sure all btrfs_bio::end_io() is called in task context), I noticed a crash in generic/388, where metadata writes triggered new works after btrfs_stop_all_workers().

It turns out that it can even happen without any code modification, just using RAID5 for metadata and the same workload from generic/388 is going to trigger the use-after-free.

[CAUSE] If btrfs hits an error, the fs is marked as error, no new transaction is allowed thus metadata is in a frozen state.

But there are some metadata modifications before that error, and they are still in the btree inode page cache.

Since there will be no real transaction commit, all those dirty folios are just kept as is in the page cache, and they can not be invalidated by invalidate_inode_pages2() call inside close_ctree(), because they are dirty.

And finally after btrfs_stop_all_workers(), we call iput() on btree inode, which triggers writeback of those dirty metadata.

And if the fs is using RAID56 metadata, this will trigger RMW and queue new works into rmw_workers, which is already stopped, causing warning from queue_work() and use-after-free.

[FIX] Add a special handling for write_one_eb(), that if the fs is already in an error state, immediately mark the bbio as failure, instead of really submitting them.

Then during close_ctree(), iput() will just discard all those dirty tree blocks without really writing them back, thus no more new jobs for already stopped-and-freed workqueues.

The extra discard in write_one_eb() also acts as an extra safenet. E.g. the transaction abort is triggered by some extent/free space tree corruptions, and since extent/free space tree is already corrupted some tree blocks may be allocated where they shouldn't be (overwriting existing tree blocks). In that case writing them back will further corrupting the fs.

Executive ViewAI

Why It Matters

CVE-2025-40303 threatens the availability and security of Linux infrastructure by enabling local users to crash systems and escalate privileges. While no public exploit code is currently available, organizations with Linux deployments and multi-user access-particularly those using btrfs with RAID56 configurations-remain at risk of unplanned downtime. Immediate vendor patching is critical to mitigate this risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel runs across servers, cloud, and embedded worldwide
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/base-os-container:latest Container suse/sl-micro/6.0/kvm-os-container:latest Container suse/sl-micro/6.0/rt-os-container:latest Image SL-Micro Affected
Container suse/sl-micro/6.0/toolbox:latest Affected
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected
SUSE Linux Enterprise High Availability Extension 16.0 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy