CVE-2026-139539

md: Fix the null-ptr-deref of 'mddev->private' while submitting IO

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

md: Fix the null-ptr-deref of 'mddev->private' while submitting IO

Concurrent processes md_stop and IO submission can trigger a NULL
pointer dereference of mddev->private:

BUG: kernel NULL pointer dereference, address: 0000000000000070
RIP: 0010:_wait_barrier+0x2f/0x250
Call Trace:
raid1_make_request+0x150/0xf50
md_handle_request+0x104/0x530
md_submit_bio+0x76/0x130
submit_bio+0xdd/0x250
submit_bio_wait+0x1f/0x40
__blkdev_direct_IO_simple+0x1f6/0x370
blkdev_write_iter+0x3b2/0x520
ksys_write+0x7d/0x190

One process can submit I/O through an open file while a forked process
uses the same file to issue STOP_ARRAY. The opener check permits this
because md_open() was called only once. do_md_stop() can then clear
mddev->private while the I/O is entering the personality make_request
callback.

This affects raid0, raid1, raid10, and raid5. Suspend STOP_ARRAY while
holding the reconfiguration lock so teardown waits for active_io
references to drain. Fail I/O in md_handle_request() if mddev->pers is
NULL after the array resumes.

The sysfs stopping paths are protected by
mddev_set_closing_and_sync_blockdev(). Apply that protection to both
clear and inactive transitions even when the array is read-only.
dm-raid teardown is already invoked with the device suspended.

Fetch a reproducer in
https://bugzilla.kernel.org/show_bug.cgi?id=222020

Analysis

AI-generated

Technical impact

A NULL pointer dereference occurs in the Linux MD RAID subsystem when a device stop operation (STOP_ARRAY) is invoked concurrently with an I/O submission. The dereference of the field mddev->private leads to a kernel BUG and a system crash. The vulnerability exposes only integrity and availability impacts, resulting in a denial of service through a kernel panic.

Affected Systems

The defect exists in the Linux kernel's MD RAID implementation, affecting raid0, raid1, raid10, and raid5 array types. All kernel releases that include the MD RAID subsystem before the patch are vulnerable; specific affected version numbers are not listed in the advisory.

Risk and Exploitability

The excess risk is high because a kernel panic brings the entire system down, disrupting availability. EPSS information is not available and the vulnerability is not listed in CISA's KEV catalog. The CVSS score is not disclosed in the advisory, but null-pointer dereferences in core kernel code are generally considered severe. Exploitation requires local privileged access to trigger the STOP_ARRAY operation while I/O is in flight, as inferred from the description; remote exploitation is not indicated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the commit that resolves the NULL pointer dereference in the MD RAID subsystem.
  • If an immediate kernel update is not possible, isolate or disable concurrent STOP_ARRAY operations on RAID devices while I/O is active by ensuring the reconfiguration lock is held or by pausing array stop commands during critical I/O phases.
  • As a temporary protective measure, limit access to MD RAID devices to trusted users or services to reduce the likelihood of an accidental or malicious STOP_ARRAY invocation during active I/O.

Generated by OpenCVE AI on November 30, 2026 at 23:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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: Fix the null-ptr-deref of 'mddev->private' while submitting IO Concurrent processes md_stop and IO submission can trigger a NULL pointer dereference of mddev->private: BUG: kernel NULL pointer dereference, address: 0000000000000070 RIP: 0010:_wait_barrier+0x2f/0x250 Call Trace: raid1_make_request+0x150/0xf50 md_handle_request+0x104/0x530 md_submit_bio+0x76/0x130 submit_bio+0xdd/0x250 submit_bio_wait+0x1f/0x40 __blkdev_direct_IO_simple+0x1f6/0x370 blkdev_write_iter+0x3b2/0x520 ksys_write+0x7d/0x190 One process can submit I/O through an open file while a forked process uses the same file to issue STOP_ARRAY. The opener check permits this because md_open() was called only once. do_md_stop() can then clear mddev->private while the I/O is entering the personality make_request callback. This affects raid0, raid1, raid10, and raid5. Suspend STOP_ARRAY while holding the reconfiguration lock so teardown waits for active_io references to drain. Fail I/O in md_handle_request() if mddev->pers is NULL after the array resumes. The sysfs stopping paths are protected by mddev_set_closing_and_sync_blockdev(). Apply that protection to both clear and inactive transitions even when the array is read-only. dm-raid teardown is already invoked with the device suspended. Fetch a reproducer in https://bugzilla.kernel.org/show_bug.cgi?id=222020
Title md: Fix the null-ptr-deref of 'mddev->private' while submitting IO
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: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