{"id":"CVE-2026-43364","aliases":["CVE-2026-43364"],"related":[],"kind":"vulnerability","state":"published","title":"ublk: fix NULL pointer dereference in ublk_ctrl_set_size()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nublk: corregir desreferencia de puntero NULL en ublk_ctrl_set_size()\n\nublk_ctrl_set_size() desreferencia incondicionalmente ub  ->  ub_disk a través de set_capacity_and_notify() sin comprobar si es NULL.\n\nub  ->  ub_disk es NULL antes de que UBLK_CMD_START_DEV se complete (solo se asigna en ublk_ctrl_start_dev()) y después de que UBLK_CMD_STOP_DEV se ejecute (ublk_detach_disk() lo establece en NULL). Dado que el gestor UBLK_CMD_UPDATE_SIZE no realiza validación de estado, un usuario puede desencadenar una desreferencia de puntero NULL enviando UPDATE_SIZE a un dispositivo que ha sido añadido pero aún no ha sido iniciado, o uno que ha sido detenido.\n\nCorregir esto comprobando ub  ->  ub_disk bajo ub  ->  mutex antes de desreferenciarlo, y devolviendo -ENODEV si el disco no está disponible.","source":"nvd"}],"published":"2026-05-08T14:21:17.654Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"98b995660bff011d8e00af03abd74ac7d1ac1390","fixed":"f13fe6794726755a43090cb680c4c58cea6aa5f1","status":"affected"},{"type":"git","introduced":"98b995660bff011d8e00af03abd74ac7d1ac1390","fixed":"c28d945bfa92e15147e93b73f95345b9bec979b0","status":"affected"},{"type":"git","introduced":"98b995660bff011d8e00af03abd74ac7d1ac1390","fixed":"25966fc097691e5c925ad080f64a2f19c5fd940a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.20","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.16","fixed":"6.18.20"},{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f13fe6794726755a43090cb680c4c58cea6aa5f1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c28d945bfa92e15147e93b73f95345b9bec979b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25966fc097691e5c925ad080f64a2f19c5fd940a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43364","url":"https://www.cve.org/CVERecord?id=CVE-2026-43364","licence":"CVE Terms of Use","modified":"2026-05-11T22:23:09.555Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43364","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43364","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.030Z","epss":{"score":0.00121,"percentile":0.02074,"date":"2026-12-01T12:00:22.000Z"}}