# CVE-2023-52790: swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:06.319Z
- Modified: 2026-08-05T09:11:25.655Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC

Limit the free list length to the size of the IO TLB. Transient pool can be
smaller than IO_TLB_SEGSIZE, but the free list is initialized with the
assumption that the total number of slots is a multiple of IO_TLB_SEGSIZE.
As a result, swiotlb_area_find_slots() may allocate slots past the end of
a transient IO TLB buffer.

(As written by CVE List.)

## Affected

- Linux Linux: from 79636caad3618e2b38457f6e298c9b31ba82b489 before ce7612496a4ba6068bc68aa1fa9d947dadb4ad9b; from 79636caad3618e2b38457f6e298c9b31ba82b489 before 53c87e846e335e3c18044c397cc35178163d7827; 6.6 (not affected: before 6.6; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 6.6 before 6.6.3

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/ce7612496a4ba6068bc68aa1fa9d947dadb4ad9b> (patch)
- <https://git.kernel.org/stable/c/53c87e846e335e3c18044c397cc35178163d7827> (patch)

## Sources

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

---

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