AZL-117208: CVE-2026-139539 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What conditions are required to trigger the fault?
One process must submit I/O through an open file while another process, such as a forked process sharing that file, issues STOP_ARRAY. Because the device was opened only once, the opener check can permit the stop operation while I/O is entering the RAID personality request handler.
Which RAID configurations are affected?
The issue affects md arrays using the raid0, raid1, raid10, or raid5 personalities.
What is the operational impact of a successful trigger?
The race can clear mddev->private while I/O is being submitted, resulting in a kernel NULL-pointer dereference. The supplied trace shows the failure occurring in the RAID1 I/O path.
What can be done if the resolved kernel is not yet available?
Avoid issuing STOP_ARRAY concurrently with active I/O to the affected md array. In particular, ensure I/O users of an open array device have stopped before initiating array shutdown.