# CVE-2023-52980: block: ublk: extending queue\_size to fix overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-03-27T16:43:19.493Z
- **Modified:** 2026-06-17T06:44:02.847Z

## Who should check

- Anyone running Linux \>= 71f28f3136aff5890cd56de78abc673f8393cad9, \< ee1e3fe4b4579f856997190a00ea4db0307b4332; \>= 71f28f3136aff5890cd56de78abc673f8393cad9, \< 29baef789c838bd5c02f50c88adbbc6b955aaf61
- Anyone running Linux 6.0

## 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".

## Affected and fixed versions

- Linux: \>= 71f28f3136aff5890cd56de78abc673f8393cad9, \< ee1e3fe4b4579f856997190a00ea4db0307b4332; \>= 71f28f3136aff5890cd56de78abc673f8393cad9, \< 29baef789c838bd5c02f50c88adbbc6b955aaf61 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 29baef789c838bd5c02f50c88adbbc6b955aaf61 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52980. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52980.md
Affected: Linux >= 71f28f3136aff5890cd56de78abc673f8393cad9, < ee1e3fe4b4579f856997190a00ea4db0307b4332; >= 71f28f3136aff5890cd56de78abc673f8393cad9, < 29baef789c838bd5c02f50c88adbbc6b955aaf61; Linux 6.0
Fixed in: Linux 29baef789c838bd5c02f50c88adbbc6b955aaf61

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52980 being exploited?

There is no confirmed exploitation: CVE-2023-52980 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52980?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52980?

Linux \>= 71f28f3136aff5890cd56de78abc673f8393cad9, \< ee1e3fe4b4579f856997190a00ea4db0307b4332; \>= 71f28f3136aff5890cd56de78abc673f8393cad9, \< 29baef789c838bd5c02f50c88adbbc6b955aaf61; Linux 6.0.

### Is there a fix for CVE-2023-52980?

Yes. Fixed in Linux 29baef789c838bd5c02f50c88adbbc6b955aaf61. Upgrade Linux to 29baef789c838bd5c02f50c88adbbc6b955aaf61 or later.

### How do I check if I'm affected by CVE-2023-52980?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52980>

HTML: <https://flawdb.com/CVE-2023-52980> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52980>
