# CVE-2023-52762: virtio-blk: fix implicit overflow on virtio_max_dma_size

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T15:30:47.724Z
- Modified: 2026-12-01T07:17:13.027Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

virtio-blk: fix implicit overflow on virtio_max_dma_size

The following codes have an implicit conversion from size_t to u32:
(u32)max_size = (size_t)virtio_max_dma_size(vdev);

This may lead overflow, Ex (size_t)4G -> (u32)0. Once
virtio_max_dma_size() has a larger size than U32_MAX, use U32_MAX
instead.

(As written by CVE List.)

## Affected

- Linux Linux: from fd1068e1860e44aaaa337b516df4518d1ce98da1 before ea02a64659b37d73a5cddd0378cabb58ba4f070c; from fd1068e1860e44aaaa337b516df4518d1ce98da1 before 72775cad7f572bb2501f9ea609e1d20e68f0b38b; from fd1068e1860e44aaaa337b516df4518d1ce98da1 before 472bd4787406bef2e8b41ee4c74d960a06a49a48; from fd1068e1860e44aaaa337b516df4518d1ce98da1 before 017278f141141367f7d14b203e930b45b6ffffb9; from fd1068e1860e44aaaa337b516df4518d1ce98da1 before d667fe301dcbcb12d1d6494fc4b8abee2cb75d90; from fd1068e1860e44aaaa337b516df4518d1ce98da1 before fafb51a67fb883eb2dde352539df939a251851be; 5.1 (not affected: before 5.1; from 5.10.276 up to 5.10.*; from 5.15.140 up to 5.15.*; from 6.1.64 up to 6.1.*; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: before 5.15.140; from 5.16 before 6.1.64; from 6.2 before 6.5.13; from 6.6 before 6.6.3

## References

- <https://git.kernel.org/stable/c/ea02a64659b37d73a5cddd0378cabb58ba4f070c>
- <https://git.kernel.org/stable/c/72775cad7f572bb2501f9ea609e1d20e68f0b38b> (patch)
- <https://git.kernel.org/stable/c/472bd4787406bef2e8b41ee4c74d960a06a49a48> (patch)
- <https://git.kernel.org/stable/c/017278f141141367f7d14b203e930b45b6ffffb9> (patch)
- <https://git.kernel.org/stable/c/d667fe301dcbcb12d1d6494fc4b8abee2cb75d90> (patch)
- <https://git.kernel.org/stable/c/fafb51a67fb883eb2dde352539df939a251851be> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-52762 · Whole record: https://cve.day/CVE-2023-52762.json · Rebuilt by cve.day 2026-12-01T07:32:13.359Z
