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

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

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

BUG: kernel NULL pointer dereference, address: 0000000000000070 RIP: 0010:waitbarrier+0x2f/0x250 Call Trace: raid1makerequest+0x150/0xf50 mdhandlerequest+0x104/0x530 mdsubmitbio+0x76/0x130 submitbio+0xdd/0x250 submitbiowait+0x1f/0x40 blkdevdirectIOsimple+0x1f6/0x370 blkdevwriteiter+0x3b2/0x520 ksyswrite+0x7d/0x190

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

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

The sysfs stopping paths are protected by mddevsetclosingandsyncblockdev(). 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/showbug.cgi?id=222020

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=2.6.12<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux*
debian/linux<7.3.6-1
7.3.6-1
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1, <=6.12.118-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  5. Compensating control

    In md_handle_request(), fail I/O when mddev->pers is NULL before accessing mddev->private.

  6. Compensating control

    Protect both sysfs clear and inactive transitions with the reconfiguration lock, including when the array is read-only, so teardown waits for active I/O references to drain.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
Data Sourced
via OSV·01:35 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

Which RAID configurations are affected?

The race affects MD arrays using the raid0, raid1, raid10, and raid5 personalities.

2

What conditions are needed to trigger the crash?

I/O must be submitted through an open file while another process, potentially a forked process sharing that file, issues STOP_ARRAY. Because the open check occurred only once, the stop operation can clear mddev->private while I/O enters the RAID personality request callback.

3

What is the impact of successful exploitation?

The race can cause a kernel NULL pointer dereference during I/O submission, resulting in a kernel crash or denial of service.

4

Are sysfs-based array stopping operations covered by the described fix?

Yes. The description states that sysfs stopping paths are protected by mddev_set_closing_and_sync_blockdev().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203