CVE-2026-139542

md: take reconfig_mutex when enabling PPL on an inactive array

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: take reconfig_mutex when enabling PPL on an inactive array

consistency_policy_store() sets MD_HAS_PPL for an external-metadata array
that is not running yet, without holding reconfig_mutex. But ->pers is
only assigned after pers->run() returns, so "not running" also covers an
md_run() that is in progress under the lock.

If the write lands inside raid5_run() after log_init() has decided not to
set up PPL, or after a failed ppl_init_log() has cleared the flag, the
flag ends up set with conf->log_private still NULL. The next idle pass
of raid5d() then does:

raid5d() -> handle_active_stripes() -> log_flush_stripe_to_raid()
-> ppl_write_stripe_run()

and dereferences the NULL ppl_conf:

Oops: general protection fault, probably for non-canonical address
0xdffffc0000000002
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
RIP: 0010:ppl_write_stripe_run+0x60/0x1320 drivers/md/raid5-ppl.c:538

Take reconfig_mutex around the update and refuse it with -EBUSY once the
array is running, in which case ->change_consistency_policy() is the
right interface.

Analysis

AI-generated

Technical impact

A missing lock acquisition in the Linux kernel RAID5 driver allows the MD_HAS_PPL flag to be set on an external‑metadata array while it is not running. This creates a scenario where the PPL configuration pointer is NULL during the next idle pass, leading to a null pointer dereference in ppl_write_stripe_run and a kernel panic. The impact is a compromise of system availability, as the crash requires a reboot.

Affected Systems

All Linux kernel releases that include the md RAID5 driver and have not yet applied the patch for the PPL reconfig_mutex bug are affected. The vendor is Linux; specific vulnerability details are tied to the generic Linux kernel product.

Risk and Exploitability

The CVSS score is 4.4. The EPSS score is < 1%. The vulnerability is not listed in the CISA KEV catalog, indicating limited public exploitation data. Based on the description, it is inferred that an attacker would need the ability to trigger PPL configuration on an inactive array, which requires privileged access to RAID device operations. Because the kernel panic cannot be mitigated by user‑space defenses, the primary risk is mitigated by patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the fix for the reconfig_mutex race condition in the RAID5 driver.
  • Continuously monitor kernel logs for KASAN messages or oops events related to raid5-driver operations and plan for a reboot or kernel recovery if a crash occurs.
  • If PPL is not required, disable it on affected arrays to eliminate the race condition until a patch is applied.

Generated by OpenCVE AI on December 1, 2026 at 18:54 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.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-362
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: md: take reconfig_mutex when enabling PPL on an inactive array consistency_policy_store() sets MD_HAS_PPL for an external-metadata array that is not running yet, without holding reconfig_mutex. But ->pers is only assigned after pers->run() returns, so "not running" also covers an md_run() that is in progress under the lock. If the write lands inside raid5_run() after log_init() has decided not to set up PPL, or after a failed ppl_init_log() has cleared the flag, the flag ends up set with conf->log_private still NULL. The next idle pass of raid5d() then does: raid5d() -> handle_active_stripes() -> log_flush_stripe_to_raid() -> ppl_write_stripe_run() and dereferences the NULL ppl_conf: Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002 KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] RIP: 0010:ppl_write_stripe_run+0x60/0x1320 drivers/md/raid5-ppl.c:538 Take reconfig_mutex around the update and refuse it with -EBUSY once the array is running, in which case ->change_consistency_policy() is the right interface.
Title md: take reconfig_mutex when enabling PPL on an inactive array
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-476

    NULL Pointer Dereference

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
Severity
Moderate
Public date
Nov 30, 2026, 1:35 PM