Skip to main content

Linux Kernel CVE-2025-38445

HIGH
Out-of-bounds Read (CWE-125)
2025-07-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain local RAID-admin privileges (CAP_SYS_ADMIN)
  2. Delivery
    Trigger reshape of active RAID1 array
  3. Exploit
    conf->r1bio_pool.wait.head left on returned stack frame
  4. Execution
    mempool_alloc failure invokes wake_up on stale address
  5. Impact
    Kernel panic (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

Requires local access with privileges to administer the Linux software-RAID (md) subsystem and an active RAID1 array that is being reshaped via raid1_reshape(); this is operator/admin-dependent (CAP_SYS_ADMIN), not remote or unauthenticated. The fault is reached only after the reshape reassigns conf->r1bio_pool from a stack-allocated newpool and a later r1bio mempool_alloc failure pushes curr_nr below min_nr, so mempool_free() calls wake_up() on the stale stack address. Limiting factors: local vector only (AV:L), privileged RAID management, dependence on a memory-allocation-failure path the attacker does not directly control, and applicability only to kernels carrying the vulnerable md/raid1 code (notably 6.16-rc1 through rc3 and unpatched stable backports).

Impact

This is a locally-triggered, privilege-dependent denial-of-service in the Linux kernel md/raid1 driver, not a broadly exploitable remote threat. The input CVSS of 7.1 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H) already reflects local access and some privilege requirement; the real-world signals reinforce low urgency: EPSS is only 0.20% (10th percentile), there is no CISA KEV listing, and no public exploit or PoC reference appears in the sources. The vuln.today decision label is 'this_week', consistent with a fixable kernel bug rather than an emergency. One conflict worth flagging: the input vector asserts C:H, but the described mechanism is a stack use-after-return in raid1_reshape() where conf->r1bio_pool.wait.head is left pointing at a returned stack frame, and a later wake_up() on that stale address causes a kernel panic - that is an availability impact, so the C:H rating appears overstated relative to the described behavior (CWE-125 out-of-bounds read is the assigned weakness, but the documented outcome is a crash). Also note the input uses PR:L, whereas initiating a RAID1 reshape realistically requires RAID administration privileges (CAP_SYS_ADMIN), arguing for PR:H. The affected CPEs center on 6.16 release candidates (rc1-rc3), which are not production-deployed, further lowering practical risk; patched stable backports exist (eight kernel.org commits). Net: a genuine stability bug that administrators should patch on schedule, but not a priority emergency.

Exploit ScenarioDerived

A local actor with privileges to manage the software-RAID subsystem initiates a reshape of an active RAID1 array; afterwards, conf->r1bio_pool.wait.head references a freed stack address. When a subsequent r1bio mempool allocation fails and mempool_free() drives curr_nr below min_nr, wake_up() dereferences the stale stack pointer and panics the kernel. No public exploit code is identified in the sources, and the path depends on an allocation-failure condition rather than a directly controllable input.

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

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

Alert me

AnalysisAIv1 – Nov 05, 2026

Local, privilege-dependent denial of service in the Linux kernel md/raid1 driver: raid1_reshape() creates a mempool_t on the stack and copies it into conf->r1bio_pool, so the pool's wait-queue head keeps pointing at reclaimed stack memory. When a later r1bio allocation fails and mempool_free() takes the wake_up() path, the kernel dereferences that stale address and panics, meaning an operator with privileges to administer Linux software RAID (CAP_SYS_ADMIN) can crash a system that is reshaping a RAID1 array. Exploitation requires local access and administrator-level RAID control, and the fault additionally depends on a memory-allocation-failure path the attacker does not directly control; no public exploit code was identified at time of analysis, EPSS is 0.20% (10th percentile), and the issue is not in CISA KEV.

RemediationAI

Patch available per vendor advisory: update to a kernel build that contains the upstream md/raid1 corrections listed in the references (the Linux stable commits 12b00ec99624f8da8c325f2dd6e807df26df0025, 48da050b4f54ed639b66278d0ae6f4107b2c4e2d, 5f35e48b76655e45522df338876dfef88dafcc71, 61fd5e93006cf82ec8ee5c115ab5cf4bbd104bdb, 776e6186dc9ecbdb8a1b706e989166c8a99bbf64, d67ed2ccd2d1dcfda9292c0ea8697a9d0f2f0d98, d8a6853d00fbaa810765c8ed2f452a5832273968 and df5894014a92ff0196dbc212a7764e97366fd2b7); released patched version numbers for each distribution are not independently confirmed here, so apply the kernel update published by your vendor, with Debian LTS guidance at https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html and https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html. Until the fixed kernel is running, the practical compensating control is to defer RAID1 reshape operations on affected hosts, since the stale wait-queue pointer is only consumed after raid1_reshape() has reassigned conf->r1bio_pool - the trade-off is that intended capacity, layout or redundancy reconfiguration stays pending. Restrict who can administer md arrays (mdadm/ioctl access gated by CAP_SYS_ADMIN), which reduces exposure to the privileged local actor the assessed vector requires but does not remove the latent defect for legitimate operators. Note that a reshape already in progress should be allowed to complete before patching, as interrupting it carries its own array-synchronization risk.

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

The md/raid1 personality of the Linux kernel's software RAID (md) subsystem allocates its r1bio mempool during raid1_reshape(). In the vulnerable code the replacement mempool (newpool) is declared as a stack local, initialized with mempool_init(), and then assigned by value into the persistent conf->r1bio_pool. The mempool_t embeds a wait_queue_head_t, so the assignment leaves conf->r1bio_pool.wait.head pointing at an address inside raid1_reshape()'s stack frame that is invalid once the function returns - a stack use-after-return that maps to the CWE-125 out-of-bounds/out-of-scope read class, since the kernel later reads memory it no longer owns. The stale pointer is only consumed on the error path: if mempool_alloc() fails during alloc_r1bio() from raid1_read_request() or raid1_write_request(), remove_element() decrements curr_nr below min_nr, and a subsequent mempool_free() enters the branch that calls wake_up() on the corrupted wait queue, producing a kernel panic. The upstream fix reinitializes conf->r1bio_pool.wait after the newpool assignment so the wait queue references valid, heap-resident kernel memory. Consistent with the assessed vector, impact is availability-only denial of service for kernels carrying the vulnerable md/raid1 code, including the 6.16-rc1 through 6.16-rc3 development snapshots and unpatched stable backports; the trigger depends on reshape administration plus an allocation failure, and is not a data-confidentiality issue despite the CWE-125 classification and the buffer-overflow/information-disclosure tags attached to the CVE record.

Know when Debian Linux gets its next vulnerability

  • 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.1 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 4.1 MEDIUM

Reshape requires RAID-admin privileges (PR:H) and the panic depends on an allocation-failure path not attacker-controlled (AC:H); impact is a kernel panic, so A:H with C:N/I:N.

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

Primary rating from NVD.

CVSS VectorNVD

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

DescriptionNVD

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

md/raid1: Fix stack memory use after return in raid1_reshape

In the raid1_reshape function, newpool is allocated on the stack and assigned to conf->r1bio_pool. This results in conf->r1bio_pool.wait.head pointing to a stack address. Accessing this address later can lead to a kernel panic.

Example access path:

raid1_reshape() { // newpool is on the stack mempool_t newpool, oldpool; // initialize newpool.wait.head to stack address mempool_init(&newpool, ...); conf->r1bio_pool = newpool; }

raid1_read_request() or raid1_write_request() { alloc_r1bio() { mempool_alloc() { // if pool->alloc fails remove_element() { --pool->curr_nr; } } } }

mempool_free() { if (pool->curr_nr < pool->min_nr) { // pool->wait.head is a stack address // wake_up() will try to access this invalid address // which leads to a kernel panic return; wake_up(&pool->wait); } }

Fix: reinit conf->r1bio_pool.wait after assigning newpool.

Executive ViewAI

Why It Matters

A high-severity vulnerability in the Linux kernel's md/raid1 driver can cause system crashes during RAID1 reshape operations. Only administrators with local access and specific privileges can trigger the flaw, and exploitation depends on a memory allocation failure that is not under attacker control. While the impact is limited to availability and requires privileged access, any unplanned downtime of critical Linux servers could disrupt business operations.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
Linux kernel ubiquitous, but only recent/RC versions with md/raid1 reshape affected
Data Quality
3 sources
Confidence: Low

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.2%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
CVE-2021-44228 CRITICAL POC
10.0 Dec 10

Apache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2022-30333 HIGH POC
7.5 May 09

RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) o

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2020-1938 CRITICAL POC
9.8 Feb 24

When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate

CVE-2018-7602 CRITICAL POC
9.8 Jul 19

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Rated critical severity (

Vendor StatusVendor

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