# CVE-2026-53164: iommu/dma: Do not try to iommu_map a 0 length region in swiotlb

- 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.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-25T08:38:44.770Z
- Modified: 2026-11-06T17:18:12.060Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

iommu/dma: Do not try to iommu_map a 0 length region in swiotlb

iommu_dma_iova_link_swiotlb() processes a mapping that is unaligned in three
parts, the head, middle and trailer. If the middle is empty because there
are no aligned pages it will call down to iommu_map() with a 0 size
which the iommupt implementation will fail as illegal.

It then tries to do an error unwind and starts from the wrong spot
corrupting the mapping so the eventual destruction triggers a WARN_ON.

Check for 0 length and avoid mapping and use offset not 0 as the starting
point to unlink.

This is frequently triggered by using some kinds of thunderbolt NVMe
drives that trigger forced SWIOTLB for unaligned memory. NVMe seems to
pass in oddly aligned buffers for the passthrough commands from smartctl
that hit this condition.

(As written by CVE List.)

## Affected

- Linux Linux: from 433a76207dcf5facc0183acb790f6e8398585258 before ab61c990a87d084f5565ee70340543e3a5394697; from 433a76207dcf5facc0183acb790f6e8398585258 before b16f8d40bac9ced838d24c9842707af9ecae92e2; from 433a76207dcf5facc0183acb790f6e8398585258 before 6ec91df8aff77e2e8fe3179c1f3fc15b43a40ba3; 6.16 (not affected: before 6.16; from 6.18.36 up to 6.18.*; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.16 before 6.18.36; from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/ab61c990a87d084f5565ee70340543e3a5394697> (patch)
- <https://git.kernel.org/stable/c/b16f8d40bac9ced838d24c9842707af9ecae92e2> (patch)
- <https://git.kernel.org/stable/c/6ec91df8aff77e2e8fe3179c1f3fc15b43a40ba3> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-53164 · Whole record: https://cve.day/CVE-2026-53164.json · Rebuilt by cve.day 2026-11-25T22:59:25.856Z
