Menu

Star on GitHub · 3.2k

CVE-2025-38445

7.1 · HIGH

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

Published Jul 25, 2025CWE-125EPSS 0.19%

Overview

CVE-2025-38445 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38445?

CVE-2025-38445 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2025-38445?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38445?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38445?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38445 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all