CVE-2026-139541

md/raid5: drain released_stripes before destroying the cache

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

md/raid5: drain released_stripes before destroying the cache

grow_one_stripe() calls raid5_release_stripe() for each new stripe.
When mddev->thread is already set, that queues the stripe on
conf->released_stripes and wakes the thread. Only raid5d moves that
list onto inactive_list.

Takeover calls setup_conf() while mddev->thread still belongs to the
previous personality, so those stripes stay on released_stripes. If
setup_conf() then fails, shrink_stripes() only frees inactive_list and
kmem_cache_destroy() warns that objects remain.

Move stripes still queued on released_stripes onto inactive_list
before shrink_stripes() frees them.

Analysis

AI-generated

Technical impact

The vulnerability stems from improper management of RAID5 stripes in the Linux kernel. When a RAID5 configuration fails, stripes that should be moved to an inactive list remain on a released list, and the cache is destroyed only after a different list is freed. This mismatch causes memory leaks and, in some cases, warnings about leaked objects during the kernel’s cleanup path. The kernel may then crash or become unstable. The underlying weakness is a misuse of memory allocation and deallocation routines within kernel space, and if an attacker could force a config failure while RAID5 arrays are active, it could lead to instability, memory corruption, or denial of service. The likely impact is a kernel panic or degraded system performance. The description does not specify an attack vector explicitly; however, we infer that the vector requires privileged manipulation of the RAID5 subsystem, such as an attacker with local root or the ability to change RAID controller state to trigger a configuration failure. The CVSS score is not provided and the EPSS score is not available, suggesting no publicly known exploitation data. The issue is not listed in CISA KEV, indicating it is not a known exploited vulnerability as of the last assessment. The risk is considered low to moderate because it relies on local root privileges or direct hardware manipulation, which is typically restricted to trusted administrators. Overall, the vulnerability represents a kernel memory management defect that could be leveraged by a privileged user to cause a denial of service in systems running unpatched Linux kernels where RAID5 arrays are configured.

Affected Systems

It affects the md/raid5 component of the Linux kernel. Any distribution shipping a kernel that predates the commit series that introduced the fix (between commits 2611b1 and c1f190) is vulnerable. All kernel versions prior to the latest stable release containing the patch are potentially exposed. The flaw is not tied to a particular vendor; rather, it affects all systems running the affected kernel code. Users of Linux kernel 5.10 and newer should verify that the commits are included in their distribution’s kernel package and upgrade if necessary.

Risk and Exploitability

The vulnerability lacks a CVSS score and EPSS data, and it is not listed in the CISA KEV catalog, indicating no known exploitation. Because the flaw is a kernel memory management issue, exploitation would require either local root or direct control over RAID controller configuration to force a configuration failure while active RAID5 devices exist. With such privileges, an attacker could trigger a kernel panic or cause memory corruption leading to denial of service. In environments where privileged access is not available, the risk remains low.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the raid5 memory management fix as submitted in commits 2611b1, 312e83, 445240, 557a61, 9c102f, af560e, b092be, and c1f190
  • If an upgrade is not immediately possible, ensure that no active RAID5 arrays are present during system reboot or when the patch is scheduled; this reduces the attack window
  • In environments where RAID5 is unused, disable the md RAID subsystem entirely to eliminate the attack surface until patching can occur

Generated by OpenCVE AI on December 1, 2026 at 18:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CWE-668
Type Values Removed Values Added
Weaknesses CWE-416
CWE-668
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: md/raid5: drain released_stripes before destroying the cache grow_one_stripe() calls raid5_release_stripe() for each new stripe. When mddev->thread is already set, that queues the stripe on conf->released_stripes and wakes the thread. Only raid5d moves that list onto inactive_list. Takeover calls setup_conf() while mddev->thread still belongs to the previous personality, so those stripes stay on released_stripes. If setup_conf() then fails, shrink_stripes() only frees inactive_list and kmem_cache_destroy() warns that objects remain. Move stripes still queued on released_stripes onto inactive_list before shrink_stripes() frees them.
Title md/raid5: drain released_stripes before destroying the cache
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM