CVE-2026-139539
publishedmd: Fix the null-ptr-deref of 'mddev->private' while submitting IO
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 06fabe491efbb533d2023f38556ae414bb7bf828 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 292435bd67e2e91483d1ba2427a21edf528c9e3c · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9768d577d9a417b9437b9cee504b771f219d3552 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4c90b76e0198deb89376988daa8d96b48bea7fcf · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 06fabe491efbb533d2023f38556ae414bb7bf828 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 292435bd67e2e91483d1ba2427a21edf528c9e3c (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9768d577d9a417b9437b9cee504b771f219d3552 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4c90b76e0198deb89376988daa8d96b48bea7fcf (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
md: Fix the null-ptr-deref of 'mddev->private' while submitting IO
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5b24797d4a1d9feb4cd59e41d87ad459093387714a9da6c5651810ec18d8550b
- Ingested
- 30 Nov 2026, 13:42:24 UTC
- Source record
- Official CVE record