{"api_version":"1","generated_at":"2026-12-01T13:08:02+00:00","cve":"CVE-2026-139539","urls":{"html":"https://cve.report/CVE-2026-139539","api":"https://cve.report/api/cve/CVE-2026-139539.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139539","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139539"},"summary":{"title":"md: Fix the null-ptr-deref of 'mddev->private' while submitting IO","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: Fix the null-ptr-deref of 'mddev->private' while submitting IO\n\nConcurrent processes md_stop and IO submission can trigger a NULL\npointer dereference of mddev->private:\n\n BUG: kernel NULL pointer dereference, address: 0000000000000070\n RIP: 0010:_wait_barrier+0x2f/0x250\n Call Trace:\n  raid1_make_request+0x150/0xf50\n  md_handle_request+0x104/0x530\n  md_submit_bio+0x76/0x130\n  submit_bio+0xdd/0x250\n  submit_bio_wait+0x1f/0x40\n  __blkdev_direct_IO_simple+0x1f6/0x370\n  blkdev_write_iter+0x3b2/0x520\n  ksys_write+0x7d/0x190\n\nOne process can submit I/O through an open file while a forked process\nuses the same file to issue STOP_ARRAY. The opener check permits this\nbecause md_open() was called only once. do_md_stop() can then clear\nmddev->private while the I/O is entering the personality make_request\ncallback.\n\nThis affects raid0, raid1, raid10, and raid5. Suspend STOP_ARRAY while\nholding the reconfiguration lock so teardown waits for active_io\nreferences to drain. Fail I/O in md_handle_request() if mddev->pers is\nNULL after the array resumes.\n\nThe sysfs stopping paths are protected by\nmddev_set_closing_and_sync_blockdev(). Apply that protection to both\nclear and inactive transitions even when the array is read-only.\ndm-raid teardown is already invoked with the device suspended.\n\nFetch a reproducer in\nhttps://bugzilla.kernel.org/show_bug.cgi?id=222020","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:30","updated_at":"2026-11-30 14:19:30"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9768d577d9a417b9437b9cee504b771f219d3552","name":"https://git.kernel.org/stable/c/9768d577d9a417b9437b9cee504b771f219d3552","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/292435bd67e2e91483d1ba2427a21edf528c9e3c","name":"https://git.kernel.org/stable/c/292435bd67e2e91483d1ba2427a21edf528c9e3c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/06fabe491efbb533d2023f38556ae414bb7bf828","name":"https://git.kernel.org/stable/c/06fabe491efbb533d2023f38556ae414bb7bf828","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4c90b76e0198deb89376988daa8d96b48bea7fcf","name":"https://git.kernel.org/stable/c/4c90b76e0198deb89376988daa8d96b48bea7fcf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139539","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139539","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 06fabe491efbb533d2023f38556ae414bb7bf828 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 292435bd67e2e91483d1ba2427a21edf528c9e3c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 9768d577d9a417b9437b9cee504b771f219d3552 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 4c90b76e0198deb89376988daa8d96b48bea7fcf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/md/md.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"06fabe491efbb533d2023f38556ae414bb7bf828","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"292435bd67e2e91483d1ba2427a21edf528c9e3c","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"9768d577d9a417b9437b9cee504b771f219d3552","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"4c90b76e0198deb89376988daa8d96b48bea7fcf","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/md/md.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.12"},{"lessThan":"2.6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: Fix the null-ptr-deref of 'mddev->private' while submitting IO\n\nConcurrent processes md_stop and IO submission can trigger a NULL\npointer dereference of mddev->private:\n\n BUG: kernel NULL pointer dereference, address: 0000000000000070\n RIP: 0010:_wait_barrier+0x2f/0x250\n Call Trace:\n  raid1_make_request+0x150/0xf50\n  md_handle_request+0x104/0x530\n  md_submit_bio+0x76/0x130\n  submit_bio+0xdd/0x250\n  submit_bio_wait+0x1f/0x40\n  __blkdev_direct_IO_simple+0x1f6/0x370\n  blkdev_write_iter+0x3b2/0x520\n  ksys_write+0x7d/0x190\n\nOne process can submit I/O through an open file while a forked process\nuses the same file to issue STOP_ARRAY. The opener check permits this\nbecause md_open() was called only once. do_md_stop() can then clear\nmddev->private while the I/O is entering the personality make_request\ncallback.\n\nThis affects raid0, raid1, raid10, and raid5. Suspend STOP_ARRAY while\nholding the reconfiguration lock so teardown waits for active_io\nreferences to drain. Fail I/O in md_handle_request() if mddev->pers is\nNULL after the array resumes.\n\nThe sysfs stopping paths are protected by\nmddev_set_closing_and_sync_blockdev(). Apply that protection to both\nclear and inactive transitions even when the array is read-only.\ndm-raid teardown is already invoked with the device suspended.\n\nFetch a reproducer in\nhttps://bugzilla.kernel.org/show_bug.cgi?id=222020"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:41.801Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/06fabe491efbb533d2023f38556ae414bb7bf828"},{"url":"https://git.kernel.org/stable/c/292435bd67e2e91483d1ba2427a21edf528c9e3c"},{"url":"https://git.kernel.org/stable/c/9768d577d9a417b9437b9cee504b771f219d3552"},{"url":"https://git.kernel.org/stable/c/4c90b76e0198deb89376988daa8d96b48bea7fcf"}],"title":"md: Fix the null-ptr-deref of 'mddev->private' while submitting IO","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139539","datePublished":"2026-11-30T13:35:41.801Z","dateReserved":"2026-11-30T13:22:15.939Z","dateUpdated":"2026-11-30T13:35:41.801Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:30","lastModifiedDate":"2026-11-30 14:19:30","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139539","Ordinal":"1","Title":"md: Fix the null-ptr-deref of 'mddev->private' while submitting ","CVE":"CVE-2026-139539","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139539","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: Fix the null-ptr-deref of 'mddev->private' while submitting IO\n\nConcurrent processes md_stop and IO submission can trigger a NULL\npointer dereference of mddev->private:\n\n BUG: kernel NULL pointer dereference, address: 0000000000000070\n RIP: 0010:_wait_barrier+0x2f/0x250\n Call Trace:\n  raid1_make_request+0x150/0xf50\n  md_handle_request+0x104/0x530\n  md_submit_bio+0x76/0x130\n  submit_bio+0xdd/0x250\n  submit_bio_wait+0x1f/0x40\n  __blkdev_direct_IO_simple+0x1f6/0x370\n  blkdev_write_iter+0x3b2/0x520\n  ksys_write+0x7d/0x190\n\nOne process can submit I/O through an open file while a forked process\nuses the same file to issue STOP_ARRAY. The opener check permits this\nbecause md_open() was called only once. do_md_stop() can then clear\nmddev->private while the I/O is entering the personality make_request\ncallback.\n\nThis affects raid0, raid1, raid10, and raid5. Suspend STOP_ARRAY while\nholding the reconfiguration lock so teardown waits for active_io\nreferences to drain. Fail I/O in md_handle_request() if mddev->pers is\nNULL after the array resumes.\n\nThe sysfs stopping paths are protected by\nmddev_set_closing_and_sync_blockdev(). Apply that protection to both\nclear and inactive transitions even when the array is read-only.\ndm-raid teardown is already invoked with the device suspended.\n\nFetch a reproducer in\nhttps://bugzilla.kernel.org/show_bug.cgi?id=222020","Type":"Description","Title":"md: Fix the null-ptr-deref of 'mddev->private' while submitting "}]}}}