{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "06fabe491efbb533d2023f38556ae414bb7bf828"
            },
            {
              "fixed": "292435bd67e2e91483d1ba2427a21edf528c9e3c"
            },
            {
              "fixed": "9768d577d9a417b9437b9cee504b771f219d3552"
            },
            {
              "fixed": "4c90b76e0198deb89376988daa8d96b48bea7fcf"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.12"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139539.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmd: Fix the null-ptr-deref of 'mddev-\u003eprivate' while submitting IO\n\nConcurrent processes md_stop and IO submission can trigger a NULL\npointer dereference of mddev-\u003eprivate:\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-\u003eprivate 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-\u003epers 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",
  "id": "CVE-2026-139539",
  "modified": "2026-11-30T14:45:14.842219750Z",
  "published": "2026-11-30T13:35:41.801Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/06fabe491efbb533d2023f38556ae414bb7bf828"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/292435bd67e2e91483d1ba2427a21edf528c9e3c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4c90b76e0198deb89376988daa8d96b48bea7fcf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9768d577d9a417b9437b9cee504b771f219d3552"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139539.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139539"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "md: Fix the null-ptr-deref of 'mddev-\u003eprivate' while submitting IO"
}