CVE-2023-52790
published high CVSS 3.1 · 8.8swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux79636caad3618e2b38457f6e298c9b31ba82b489 to < ce7612496a4ba6068bc68aa1fa9d947dadb4ad9b · 79636caad3618e2b38457f6e298c9b31ba82b489 to < 53c87e846e335e3c18044c397cc35178163d7827 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 6.6.3 through 6.6.* (unaffected · semver) · 6.7 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is in the kernel DMA/swiotlb allocator, reached when drivers call dma_map/swiotlb_tbl_map_single for I/O (including NIC RX/TX on untrusted PCI devices), which requires local ability to stimulate device DMA rather than a network-bound protocol parser. AC:L - Once CONFIG_SWIOTLB_DYNAMIC is enabled and SWIOTLB is under pressure, the reporter showed TCP/IP workloads on an untrusted VF reliably create transient pools and hit the unaligned >=PAGE_SIZE path that overruns the buffer; the attacker can induce that load. PR:L - An unprivileged local user can trigger DMA mapping through ordinary network or storage I/O that causes drivers to bounce via swiotlb; no root or CAP_* beyond normal user access is required. UI:N - Exploitation does not require a victim to perform any action such as mounting a filesystem or opening a crafted file; generating I/O is sufficient. S:C - On the iommu_dma_map_page path for untrusted PCI devices, an overrun bounce address is passed to iommu_map, mapping physical pages outside the SWIOTLB pool into the device IOVA space and bypassing the IOMMU/DMA isolation boundary. C:H - Out-of-bounds slot metadata writes and bounce/DMA access past the transient pool expose adjacent kernel or host physical memory, yielding a high-impact disclosure primitive. I:H - The bug is a confirmed out-of-bounds write (CWE-787) into slots[] and past the TLB buffer, and device DMA to wrongly IOMMU-mapped pages enables arbitrary modification of adjacent memory and control-flow corruption. A:H - Overrunning the transient pool corrupts kernel memory and can crash or hang the system, as seen when the mis-sized bounce buffer is used for DMA and CPU-side bounce/memset.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 79636caad3618e2b38457f6e298c9b31ba82b489 to < ce7612496a4ba6068bc68aa1fa9d947dadb4ad9b (affected · git)79636caad3618e2b38457f6e298c9b31ba82b489 to < 53c87e846e335e3c18044c397cc35178163d7827 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)6.6.3 through 6.6.* (unaffected · semver)6.7 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7d358f5f023cef9bbb397d315e5ac5c19fe5076c86db9fa796dff62ee1358244
- Ingested
- 23 Sep 2026, 08:14:33 UTC
- Source record
- Official CVE record