
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-52980 is a vulnerability discovered in the Linux kernel's block subsystem, specifically in the ublk (userspace block) driver. The issue was identified when validating drafted SPDK ublk target with large queue depth configurations for multiqueue ublk devices (NVD).
The vulnerability stems from an overflow bug in the ublk driver where UBLKMAXQUEUEDEPTH is set to 4096 in ublkcmd.h. When setting queue depth (qd) for a ublk device, if qd is larger than 2728, the calculation of sizeof(struct ublkqueue) + depth * sizeof(struct ublkio) exceeds 65535, causing queuesize to overflow. This overflow results in ublkget_queue() referencing an incorrect pointer position (NVD).
The vulnerability can lead to out-of-bounds memory access due to incorrect pointer referencing caused by the queuesize overflow. This occurs when the wrong content of ublkqueue elements is accessed (NVD).
The fix involves extending the queuesize variable in ublkdevice to 'unsigned int' type to prevent the overflow condition (NVD).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."