Not scored
iommu/amd: Fix potential out-of-bounds read in iommu_mmio_show
- Severity
- Not scored
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Fix potential out-of-bounds read in iommu_mmio_show In iommu_mmio_write(), it validates the user-provided offset with the check: `iommu->dbg_mmio_offset > iommu->mmio_phys_end - 4`. This assumes a 4-byte access. However, the corresponding show handler, iommu_mmio_show(), uses readq() to perform an 8-byte (64-bit) read. If a user provides an offset equal to `mmio_phys_end - 4`, the check passes, and will lead to a 4-byte out-of-bounds read. Fix this by adjusting the boundary check to use sizeof(u64), which corresponds to the size of the readq() operation.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7a4ee419e8c144b747a8915856e91a034d7c8f34 before b959df804c33913dbfdb90750f2d693502b3d126, from 7a4ee419e8c144b747a8915856e91a034d7c8f34 before 0ec4aaf5f3f559716a6559f3d6d9616e9470bed6, from 7a4ee419e8c144b747a8915856e91a034d7c8f34 before a0c7005333f9a968abb058b1d77bbcd7fb7fd1e7, 6.17 Not affected: before 6.17, from 6.17.13 up to 6.17.*, from 6.18.2 up to 6.18.*, from 6.19 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Fix potential out-of-bounds read in iommu_mmio_show In iommu_mmio_write(), it validates the user-provided offset with the check: `iommu->dbg_mmio_offset > iommu->mmio_phys_end - 4`. This assumes a 4-byte access. However, the corresponding show handler, iommu_mmio_show(), uses readq() to perform an 8-byte (64-bit) read. If a user provides an offset equal to `mmio_phys_end - 4`, the check passes, and will lead to a 4-byte out-of-bounds read. Fix this by adjusting the boundary check to use sizeof(u64), which corresponds to the size of the readq() operation.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: iommu/amd: Corrige una posible lectura fuera de límites en iommu_mmio_show En iommu_mmio_write(), valida el desplazamiento proporcionado por el usuario con la comprobación: 'iommu -> dbg_mmio_offset > iommu -> mmio_phys_end - 4'. Esto asume un acceso de 4 bytes. Sin embargo, el controlador de visualización correspondiente, iommu_mmio_show(), usa readq() para realizar una lectura de 8 bytes (64 bits). Si un usuario proporciona un desplazamiento igual a 'mmio_phys_end - 4', la comprobación pasa y conducirá a una lectura fuera de límites de 4 bytes. Soluciona esto ajustando la comprobación de límites para usar sizeof(u64), lo que corresponde al tamaño de la operación readq().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68760 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68760 changed 2026-10-14 | Public domain |