# CVE-2023-52980: block: ublk: extending queue_size to fix overflow

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-03-27T16:43:19.493Z
- Modified: 2026-06-17T06:44:02.847Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: ublk: extending queue_size to fix overflow

When validating drafted SPDK ublk target, in a case that
assigning large queue depth to multiqueue ublk device,
ublk target would run into a weird incorrect state. During
rounds of review and debug, An overflow bug was found
in ublk driver.

In ublk_cmd.h, UBLK_MAX_QUEUE_DEPTH is 4096 which means
each ublk queue depth can be set as large as 4096. But
when setting qd for a ublk device,
sizeof(struct ublk_queue) + depth * sizeof(struct ublk_io)
will be larger than 65535 if qd is larger than 2728.
Then queue_size is overflowed, and ublk_get_queue()
references a wrong pointer position. The wrong content of
ublk_queue elements will lead to out-of-bounds memory
access.

Extend queue_size in ublk_device as "unsigned int".

(As written by CVE List.)

## Affected

- Linux Linux: from 71f28f3136aff5890cd56de78abc673f8393cad9 before ee1e3fe4b4579f856997190a00ea4db0307b4332; from 71f28f3136aff5890cd56de78abc673f8393cad9 before 29baef789c838bd5c02f50c88adbbc6b955aaf61; 6.0 (not affected: before 6.0; from 6.1.11 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 6.0 before 6.1.11; 6.2

## References

- <https://git.kernel.org/stable/c/ee1e3fe4b4579f856997190a00ea4db0307b4332> (patch)
- <https://git.kernel.org/stable/c/29baef789c838bd5c02f50c88adbbc6b955aaf61> (patch)

## Sources

- CVE List: [CVE-2023-52980](https://www.cve.org/CVERecord?id=CVE-2023-52980), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52980](https://nvd.nist.gov/vuln/detail/CVE-2023-52980), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52980 · Whole record: https://cve.day/CVE-2023-52980.json · Rebuilt by cve.day 2026-11-25T22:58:34.584Z
