{"id":"CVE-2026-143235","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:18:02.570","lastModified":"2026-12-03T10:18:02.570","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/block/ublk_drv.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"71f28f3136aff5890cd56de78abc673f8393cad9","lessThan":"452b083495cea3546d8b1b5413ec56443ff08505","versionType":"git","status":"affected"},{"version":"71f28f3136aff5890cd56de78abc673f8393cad9","lessThan":"6b3a2e0f8843b233a98ebdd82099bb34d474cf5d","versionType":"git","status":"affected"},{"version":"71f28f3136aff5890cd56de78abc673f8393cad9","lessThan":"6c96e3284dfcfbc64fdd8ff37fe0c7bfb1060261","versionType":"git","status":"affected"},{"version":"71f28f3136aff5890cd56de78abc673f8393cad9","lessThan":"e5c463e5074a940c644d54d8fc29aba06709aab0","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/block/ublk_drv.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/452b083495cea3546d8b1b5413ec56443ff08505","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6b3a2e0f8843b233a98ebdd82099bb34d474cf5d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6c96e3284dfcfbc64fdd8ff37fe0c7bfb1060261","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e5c463e5074a940c644d54d8fc29aba06709aab0","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}