{"id":"CVE-2026-43364","published":"2026-05-08T14:21:17Z","modified":"2026-05-11T22:23:09Z","title":"ublk: fix NULL pointer dereference in ublk_ctrl_set_size()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nublk: fix NULL pointer dereference in ublk_ctrl_set_size()\n\nublk_ctrl_set_size() unconditionally dereferences ub->ub_disk via\nset_capacity_and_notify() without checking if it is NULL.\n\nub->ub_disk is NULL before UBLK_CMD_START_DEV completes (it is only\nassigned in ublk_ctrl_start_dev()) and after UBLK_CMD_STOP_DEV runs\n(ublk_detach_disk() sets it to NULL). Since the UBLK_CMD_UPDATE_SIZE\nhandler performs no state validation, a user can trigger a NULL pointer\ndereference by sending UPDATE_SIZE to a device that has been added but\nnot yet started, or one that has been stopped.\n\nFix this by checking ub->ub_disk under ub->mutex before dereferencing\nit, and returning -ENODEV if the disk is not available.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00121,"percentile":0.01874,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f13fe6794726755a43090cb680c4c58cea6aa5f1","tags":[]},{"url":"https://git.kernel.org/stable/c/c28d945bfa92e15147e93b73f95345b9bec979b0","tags":[]},{"url":"https://git.kernel.org/stable/c/25966fc097691e5c925ad080f64a2f19c5fd940a","tags":[]}],"priority":{"score":0.4,"factors":[{"name":"EPSS percentile","points":0.37}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 98b995660bff011d8e00af03abd74ac7d1ac1390, < f13fe6794726755a43090cb680c4c58cea6aa5f1",">= 98b995660bff011d8e00af03abd74ac7d1ac1390, < c28d945bfa92e15147e93b73f95345b9bec979b0",">= 98b995660bff011d8e00af03abd74ac7d1ac1390, < 25966fc097691e5c925ad080f64a2f19c5fd940a"]},{"vendor":"Linux","product":"Linux","versions":["6.16"]}],"euvd":{"id":"EUVD-2026-28670","exploited":false,"provenance":"source"}}