{"id":"CVE-2023-52980","published":"2025-03-27T16:43:19Z","modified":"2026-05-11T19:36:18Z","title":"block: ublk: extending queue_size to fix overflow","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: ublk: extending queue_size to fix overflow\n\nWhen validating drafted SPDK ublk target, in a case that\nassigning large queue depth to multiqueue ublk device,\nublk target would run into a weird incorrect state. During\nrounds of review and debug, An overflow bug was found\nin ublk driver.\n\nIn ublk_cmd.h, UBLK_MAX_QUEUE_DEPTH is 4096 which means\neach ublk queue depth can be set as large as 4096. But\nwhen setting qd for a ublk device,\nsizeof(struct ublk_queue) + depth * sizeof(struct ublk_io)\nwill be larger than 65535 if qd is larger than 2728.\nThen queue_size is overflowed, and ublk_get_queue()\nreferences a wrong pointer position. The wrong content of\nublk_queue elements will lead to out-of-bounds memory\naccess.\n\nExtend queue_size in ublk_device as \"unsigned int\".","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00249,"percentile":0.16082,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ee1e3fe4b4579f856997190a00ea4db0307b4332","tags":[]},{"url":"https://git.kernel.org/stable/c/29baef789c838bd5c02f50c88adbbc6b955aaf61","tags":[]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.22}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 71f28f3136aff5890cd56de78abc673f8393cad9, < ee1e3fe4b4579f856997190a00ea4db0307b4332",">= 71f28f3136aff5890cd56de78abc673f8393cad9, < 29baef789c838bd5c02f50c88adbbc6b955aaf61"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"euvd":{"id":"EUVD-2023-59740","exploited":false,"provenance":"source"}}