{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "71f28f3136aff5890cd56de78abc673f8393cad9"
            },
            {
              "fixed": "452b083495cea3546d8b1b5413ec56443ff08505"
            },
            {
              "fixed": "6b3a2e0f8843b233a98ebdd82099bb34d474cf5d"
            },
            {
              "fixed": "6c96e3284dfcfbc64fdd8ff37fe0c7bfb1060261"
            },
            {
              "fixed": "e5c463e5074a940c644d54d8fc29aba06709aab0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.0.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143235.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: publish a new device by its id only once it is set up\n\nADD_DEV stores the device in ublk_index_idr when it allocates the id,\nand control commands find it there as soon as ublk_add_chdev() has\ninitialized its struct device, before the char device is added. If\ndev_set_name() or cdev_device_add() then fails, ublk_add_chdev() drops\nthe initial reference to free the device. A DEL_DEV that found the\ndevice meanwhile waits for ublk_ctl_mutex, then calls ublk_remove():\ncdev_device_del() of a device that was never added, and a second put of\nthe initial reference, which frees the device under the callers still\nholding references.\n\nReserve the id with a NULL entry, which idr_find() and the idr iterators\nskip, and store the device once ublk_add_chdev() succeeded.",
  "id": "CVE-2026-143235",
  "modified": "2026-12-03T10:45:39.808885859Z",
  "published": "2026-12-03T09:20:49.893Z",
  "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/452b083495cea3546d8b1b5413ec56443ff08505"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6b3a2e0f8843b233a98ebdd82099bb34d474cf5d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6c96e3284dfcfbc64fdd8ff37fe0c7bfb1060261"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e5c463e5074a940c644d54d8fc29aba06709aab0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143235.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143235"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ublk: publish a new device by its id only once it is set up"
}