# CVE-2026-23067: iommu/io-pgtable-arm: fix size_t signedness bug in unmap path

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-02-04T16:07:48.457Z
- Modified: 2026-11-05T22:18:01.100Z
- Weaknesses: CWE-617
- 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/io-pgtable-arm: fix size_t signedness bug in unmap path

__arm_lpae_unmap() returns size_t but was returning -ENOENT (negative
error code) when encountering an unmapped PTE. Since size_t is unsigned,
-ENOENT (typically -2) becomes a huge positive value (0xFFFFFFFFFFFFFFFE
on 64-bit systems).

This corrupted value propagates through the call chain:
  __arm_lpae_unmap() returns -ENOENT as size_t
  -> arm_lpae_unmap_pages() returns it
  -> __iommu_unmap() adds it to iova address
  -> iommu_pgsize() triggers BUG_ON due to corrupted iova

This can cause IOVA address overflow in __iommu_unmap() loop and
trigger BUG_ON in iommu_pgsize() from invalid address alignment.

Fix by returning 0 instead of -ENOENT. The WARN_ON already signals
the error condition, and returning 0 (meaning "nothing unmapped")
is the correct semantic for size_t return type. This matches the
behavior of other io-pgtable implementations (io-pgtable-arm-v7s,
io-pgtable-dart) which return 0 on error conditions.

(As written by CVE List.)

## Affected

- Linux Linux: from 3318f7b5cefbff96b1bb49584ac38d2c9997a830 before 41ec6988547819756fb65e94fc24f3e0dddf84ac; from 3318f7b5cefbff96b1bb49584ac38d2c9997a830 before 374e7af67d9d9d6103c2cfc8eb32abfecf3a2fd8; 6.16 (not affected: before 6.16; from 6.18.8 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.16 before 6.18.8; 6.19

## References

- <https://git.kernel.org/stable/c/41ec6988547819756fb65e94fc24f3e0dddf84ac> (patch)
- <https://git.kernel.org/stable/c/374e7af67d9d9d6103c2cfc8eb32abfecf3a2fd8> (patch)

## Sources

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

---

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