{"id":"CVE-2026-143235","summary":"ublk: publish a new device by its id only once it is set up","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.","modified":"2026-12-03T11:01:49.082099699Z","published":"2026-12-03T09:20:49.893Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143235.json","cna_assigner":"Linux"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"71f28f3136aff5890cd56de78abc673f8393cad9"},{"fixed":"452b083495cea3546d8b1b5413ec56443ff08505"},{"fixed":"6b3a2e0f8843b233a98ebdd82099bb34d474cf5d"},{"fixed":"6c96e3284dfcfbc64fdd8ff37fe0c7bfb1060261"},{"fixed":"e5c463e5074a940c644d54d8fc29aba06709aab0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143235.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143235.json"}}],"schema_version":"1.9.2"}