{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143235",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.361Z",
        "datePublished": "2026-12-03T09:20:49.893Z",
        "dateUpdated": "2026-12-03T09:20:49.893Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:20:49.893Z"
            },
            "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": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/block/ublk_drv.c"
                    ],
                    "versions": [
                        {
                            "version": "71f28f3136aff5890cd56de78abc673f8393cad9",
                            "lessThan": "452b083495cea3546d8b1b5413ec56443ff08505",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "71f28f3136aff5890cd56de78abc673f8393cad9",
                            "lessThan": "6b3a2e0f8843b233a98ebdd82099bb34d474cf5d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "71f28f3136aff5890cd56de78abc673f8393cad9",
                            "lessThan": "6c96e3284dfcfbc64fdd8ff37fe0c7bfb1060261",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "71f28f3136aff5890cd56de78abc673f8393cad9",
                            "lessThan": "e5c463e5074a940c644d54d8fc29aba06709aab0",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/block/ublk_drv.c"
                    ],
                    "versions": [
                        {
                            "version": "6.0",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.0",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.0",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.0",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.0",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.0",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/452b083495cea3546d8b1b5413ec56443ff08505"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6b3a2e0f8843b233a98ebdd82099bb34d474cf5d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6c96e3284dfcfbc64fdd8ff37fe0c7bfb1060261"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e5c463e5074a940c644d54d8fc29aba06709aab0"
                }
            ],
            "title": "ublk: publish a new device by its id only once it is set up",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}