CVE-2026-139681

md/raid5: reject raid4/5 arrays with too few disks

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

md/raid5: reject raid4/5 arrays with too few disks

raid4 and raid5 require at least two disks, while raid6 requires at least
four disks. setup_conf() only rejects raid6 arrays with fewer than four
disks. As a result, an invalid raid4 or raid5 array can be assembled with
no data disks and later reach raid5_set_limits().

Reject such arrays before the r5conf is created. This prevents the invalid
geometry from reaching queue limit setup, where roundup_pow_of_two() can be
called with a zero stripe size.

Analysis

AI-generated

Technical impact

An error in the Linux kernel module that manages advanced disk arrays allows a software component to accept a RAID‑4 or RAID‑5 configuration that consists of too few disks. The validation routine rejects RAID‑6 arrays with fewer than four disks, but it incorrectly permits RAID‑4 and RAID‑5 arrays that contain zero data disks. When such an invalid geometry later reaches the queue size calculation routine, the kernel attempts to compute a power‑of‑two roundup of a zero stripe size, which can trigger a division by zero or an out‑of‑bounds memory access. This leads to a kernel panic and a crash of the entire operating system, which is effectively a denial‑of‑service condition for all users that depend on the affected node. The flaw is an example of improper input validation leading to invalid memory operations.

Affected Systems

Any operating system that runs a Linux kernel built from source code prior to the application of this security update is affected. The vulnerability applies universally to all Linux distributions that include the upstream kernel and have not yet patched the raid management code. No specific vendor or version list is supplied, so any system relying on the legacy raid drivers is potentially vulnerable.

Risk and Exploitability

With a CVSS score of 4.4, this privilege‑based flaw is classified as low‑to‑moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. Although no public exploit has been disclosed, an attacker must influence or craft a RAID configuration that bypasses the kernel’s sanity checks, typically requiring local privilege or access to storage administration tools. Because the flaw arises from improper validation of the array geometry, the primary impact is a kernel panic and system crash, effectively rendering the affected system unavailable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the system to a kernel version that includes the fix for CVE‑2026‑139681
  • Reinitialize any existing RAID‑4 or RAID‑5 arrays that were created with fewer disks than required
  • Avoid creating new RAID‑4 or RAID‑5 arrays with fewer than the minimum disk count required by the kernel

Generated by OpenCVE AI on December 1, 2026 at 16:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-20
CWE-469
CWE-680
Type Values Removed Values Added
Weaknesses CWE-1284
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-20
CWE-469
CWE-680
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: md/raid5: reject raid4/5 arrays with too few disks raid4 and raid5 require at least two disks, while raid6 requires at least four disks. setup_conf() only rejects raid6 arrays with fewer than four disks. As a result, an invalid raid4 or raid5 array can be assembled with no data disks and later reach raid5_set_limits(). Reject such arrays before the r5conf is created. This prevents the invalid geometry from reaching queue limit setup, where roundup_pow_of_two() can be called with a zero stripe size.
Title md/raid5: reject raid4/5 arrays with too few disks
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM