Skip to main content

Linux Kernel EUVDEUVD-2026-25473

| CVE-2026-31580 HIGH
Use After Free (CWE-416)
2026-04-24 Linux GHSA-g664-f62x-2rfm
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Gain local low-privileged access
  2. Delivery
    Identify active bcache cached device
  3. Exploit
    Initiate device stop during superblock write
  4. Execution
    Free cached_dev with sb_bio in flight
  5. Persist
    sb_bio endio dereferences freed memory
  6. Impact
    Kernel use-after-free crash or corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the system to actually use the bcache block-caching subsystem with at least one cached backing device (dc), and requires triggering device stop/free (cached_dev_free) while a superblock write (sb_write on the inline sb_bio) is still in flight - the freed bio is then accessed at endio. Per the CVSS vector (AV:L/PR:L), the attacker needs local access with low privileges sufficient to influence or trigger bcache device teardown during superblock activity. Limiting factors: the bug does not exist on systems that do not use bcache (non-default for most deployments), and it depends on winning a specific race window between device free and asynchronous superblock write completion, making reliable triggering difficult and reducing the realistic risk below the raw 7.8 score.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (7.8 High) reflects a local, low-privilege, low-complexity flaw with high impact - typical of memory-corruption kernel bugs - but several signals argue this is lower real-world priority than the base score implies. EPSS is only 0.02% (5th percentile), it is NOT on the CISA KEV list, and no POC has been published, so there is no evidence of active exploitation. Critically, the flaw is a timing-dependent race requiring a superblock write to be in flight exactly when the bcache device is stopped, which materially raises practical exploitation difficulty beyond the AC:L rating; the reported occurrences are unintentional production crashes, not intentional attacks. The AC:L metric arguably understates the race window, so treat the CVSS complexity as optimistic. Net: a genuine reliability/stability bug worth patching in bcache deployments, but not an urgent exploited-in-the-wild priority.

Exploit ScenarioDerived

A local user or a fault condition triggers teardown (stop/detach) of a bcache cached backing device precisely while the kernel is writing that device's superblock; the inline sb_bio is freed by cached_dev_free() but its completion callback still fires, dereferencing freed kernel memory and crashing the host (observed as libceph/rbd call-trace panics). With careful heap grooming to control the freed-and-reallocated memory, the use-after-free could theoretically be steered toward memory corruption, though no public POC demonstrates this. Attack complexity is elevated in practice by the need to win a narrow timing race despite the CVSS AC:L rating.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Local privilege escalation and denial of service in the Linux kernel's bcache subsystem stems from a use-after-free of the cached_dev.sb_bio structure; if a cached backing device is stopped while a superblock write is in flight, the freed bio is dereferenced at I/O completion (endio), corrupting kernel memory. Affected systems are those running bcache-backed block devices (observed crashing via librbd/libceph rbd workloads), where a local user with the ability to trigger device teardown during superblock activity can crash the host or potentially corrupt kernel memory. This carries no public exploit identified at time of analysis and an EPSS of just 0.02%, consistent with a hard-to-time race rather than a readily weaponized flaw.

RemediationAI

Vendor-released patch: upgrade to a fixed Linux kernel - 6.12.83, 6.18.24, 6.19.14, or 7.0.1 or later - matching your stable series, or apply the upstream stable commits (add4982510f3, 2d6965581e16, 4f71c8ba2dc0, 383f7fec0de8) via https://git.kernel.org/stable/. Distribution users should apply their vendor kernel update, e.g. per Ubuntu USN-8488-1 (https://ubuntu.com/security/notices/USN-8488-1), and reboot to load the patched kernel. Where immediate patching is not possible and bcache is not required, the most effective compensating control is to avoid using bcache entirely (do not build the caching stack on bcache), since the bug only manifests on bcache-backed devices; the trade-off is loss of SSD caching acceleration. If bcache must remain in use, operationally avoid stopping/detaching cached backing devices under active I/O and minimize configuration-driven superblock writes during teardown, accepting that this only narrows - not eliminates - the race window.

Affected VersionsENISA

Linux patch: 6.19.14
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <383f7fec0de8cee1cf7ae1f9d9f14044a61f10f9
Linux patch: 6.12.83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4f71c8ba2dc009042493021d94a9718fbe2ebf27
Linux patch: 6.18.24
Linux patch: 7.0.1
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2d6965581e164fa2ba3f7652ddae5535f6336576
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <add4982510f3b7c318a2dd7438bdc9c63171e753

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

bcache is the Linux kernel block-layer caching driver that lets a fast SSD cache a slower backing device; it is compiled into or loaded as part of the kernel block subsystem (CPE cpe:2.3:a:linux:linux). The struct cached_dev embeds sb_bio inline (not allocated per-write), and the superblock write path (__write_super/sb_write) issues this bio asynchronously with a completion callback. The root cause is CWE-416 (Use-After-Free): cached_dev_free() can release the containing cached_dev while an outstanding sb_bio superblock write has not yet completed, so the endio handler later touches freed memory. The fix makes cached_dev_free() wait for the pending sb_write to finish before freeing, closing the race between device stop and superblock write completion.

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

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local low-priv trigger (AV:L/PR:L); race between device free and in-flight superblock write makes reliable triggering high-complexity (AC:H); kernel UAF yields full C/I/A impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from NVD.

CVSS VectorNVD

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
Apr 27, 2026 - 20:37 NVD
7.8 (HIGH)
Patch released
Apr 27, 2026 - 20:29 nvd
Patch available
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
HIGH 7.8

DescriptionNVD

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

bcache: fix cached_dev.sb_bio use-after-free and crash

In our production environment, we have received multiple crash reports regarding libceph, which have caught our attention:

[6888366.280350] Call Trace:
[6888366.280452]  blk_update_request+0x14e/0x370
[6888366.280561]  blk_mq_end_request+0x1a/0x130
[6888366.280671]  rbd_img_handle_request+0x1a0/0x1b0 [rbd]
[6888366.280792]  rbd_obj_handle_request+0x32/0x40 [rbd]
[6888366.280903]  __complete_request+0x22/0x70 [libceph]
[6888366.281032]  osd_dispatch+0x15e/0xb40 [libceph]
[6888366.281164]  ? inet_recvmsg+0x5b/0xd0
[6888366.281272]  ? ceph_tcp_recvmsg+0x6f/0xa0 [libceph]
[6888366.281405]  ceph_con_process_message+0x79/0x140 [libceph]
[6888366.281534]  ceph_con_v1_try_read+0x5d7/0xf30 [libceph]
[6888366.281661]  ceph_con_workfn+0x329/0x680 [libceph]

After analyzing the coredump file, we found that the address of dc->sb_bio has been freed. We know that cached_dev is only freed when it is stopped.

Since sb_bio is a part of struct cached_dev, rather than an alloc every time. If the device is stopped while writing to the superblock, the released address will be accessed at endio.

This patch hopes to wait for sb_write to complete in cached_dev_free.

It should be noted that we analyzed the cause of the problem, then tell all details to the QWEN and adopted the modifications it made.

Executive ViewAI

Why It Matters

The Linux kernel bcache subsystem contains a use-after-free vulnerability (CVE-2026-31580) affecting organizations using bcache-backed block devices, particularly those running Ceph RBD workloads. The flaw allows local users to trigger kernel memory corruption or system crashes through device teardown operations, posing denial-of-service and privilege escalation risks to infrastructure availability. Organizations with these storage configurations require immediate patching to prevent system instability and potential unauthorized kernel-level access.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though vulnerable bcache path is opt-in
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High

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 Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
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

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

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