CVE-2023-52980 Details
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".
A vulnerability in the Linux kernel's ublk driver has been identified, where an overflow occurs in the queue depth management of multiqueue ublk devices. The issue arises because the maximum queue depth can be set to 4096, but when this depth is assigned to a ublk device, the calculated queue size can exceed 65535, causing an overflow. This overflow leads to the ublk_get_queue() function referencing an incorrect pointer, allowing for out-of-bounds memory access. The vulnerability has been addressed by extending the queue_size parameter in the ublk_device structure to an unsigned int.
Users can update to the latest version of the Linux kernel where this vulnerability has been patched. Instructions for updating the Linux kernel can be found in the official Linux documentation or through the package manager for your Linux distribution.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/29baef789c838bd5c02f50c88adbbc6b955aaf61 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ee1e3fe4b4579f856997190a00ea4db0307b4332 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.0, < 6.1.11 6.2 rc1 6.2 rc2 6.2 rc3 6.2 rc4 6.2 rc5 6.2 rc6 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 28, 2025 | Initial Analysis | [email protected] |
| Mar 27, 2025 | New CVE Received | kernel.org |