CVE-2026-139680

md/raid5: setup_conf: Fix null-ptr-def in error handling path

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

md/raid5: setup_conf: Fix null-ptr-def in error handling path

For raid5 setup_conf, if an error(eg. bioset_init fails) happens before
'conf->mddev = mddev', following error handling path could trigger a
null-ptr-def problem:

free_conf
log_exit
raid5_has_ppl
test_bit(MD_HAS_PPL, &conf->mddev->flags) // conf->mddev is NULL !

Fix it by initializing conf->mddev in advance.

Analysis

AI-generated

Technical impact

The Linux kernel’s RAID5 configuration routine can trigger a null‑pointer dereference when an error occurs before the configuration structure’s mddev field is assigned. The code later attempts to read flags from an uninitialized mddev pointer, causing a kernel panic. This results in a complete loss of service on the affected host, but does not provide attackers the ability to execute arbitrary code or exfiltrate data.

Affected Systems

All Linux kernel builds that contain the md/raid5 setup_conf bug prior to the commit that initializes conf->mddev are affected. This includes the core kernel used by most Linux distributions, so any system running an unpatched kernel version is vulnerable.

Risk and Exploitability

The CVSS score of 4.1 places the issue in the medium severity range. The EPSS score of less than 1% indicates a very low probability of public exploitation. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local; an attacker must have the ability to trigger a RAID5 configuration error, such as write access to block devices or permission to create or modify RAID5 arrays. If an attacker can force the error path, the kernel will panic, effectively denying service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the recent fix, which initializes conf->mddev before error handling in raid5 setup_conf.
  • If a kernel update cannot be performed immediately, restrict the creation or modification of RAID5 arrays—either by removing write permissions on /dev/md or by unloading the mdraid5 kernel module, provided the system can operate without RAID5.
  • Audit any scripts or automation that create RAID5 arrays and adjust or disable them until the patch is applied.

Generated by OpenCVE AI on December 1, 2026 at 17:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: md/raid5: setup_conf: Fix null-ptr-def in error handling path For raid5 setup_conf, if an error(eg. bioset_init fails) happens before 'conf->mddev = mddev', following error handling path could trigger a null-ptr-def problem: free_conf log_exit raid5_has_ppl test_bit(MD_HAS_PPL, &conf->mddev->flags) // conf->mddev is NULL ! Fix it by initializing conf->mddev in advance.
Title md/raid5: setup_conf: Fix null-ptr-def in error handling path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

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