HIGH Introduced in 4.12
powerpc TceCheck Overflow
CVE-2026-98282
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
KernelScan AI9.3CRITICAL
01Description
In the Linux kernel, the following vulnerability has been resolved: powerpc/iommu: Fix the overflow validation in iommu_tce_check_ioba The commit b1af23d836f8 ("KVM: PPC: iommu: Unify TCE checking") unified IOBA parameter checking across KVM and VFIO into iommu_tce_check_ioba(). While doing so, the passed in argument npages is ignored and constant value '1' is used leaving out a possible overflow as the callers can legitimately be using npages > 1 for H_STUFF_TCE or H_PUT_TCE_INDIRECT cases. Fix this by accounting for 'npages', checking for arithmetic overflow, and verifying that the entire requested range (ioba - offset + npages) does not exceed the table capacity 'size'.
02KernelScan AI Analysis
Risk summary
A VM guest on a PowerPC KVM host can bypass IOMMU table bounds validation by issuing TCE update hypercalls with a large page count, causing the host kernel to access memory beyond the IOMMU table. This can lead to host kernel memory corruption, information disclosure, or a crash. The vulnerability requires no special guest privileges and is reachable from any guest configured with IOMMU/TCE access.
Vulnerability analysis
The IOMMU translation table bounds check on PowerPC ignores the page count parameter and validates only a single page, so a request spanning many pages can extend past the end of the table without being rejected. A malicious VM guest can exploit this by issuing TCE update hypercalls with a large page count, causing the host kernel to read or write memory beyond the IOMMU table boundary. The fix accounts for the full requested range, checks for arithmetic overflow in the address calculation, and rejects any request whose end exceeds the table capacity. This is reachable from a VM guest on a PowerPC KVM host without any special guest privileges, and also from a local process with VFIO device access.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.12 | 5.10.271 | 98d8dcc4ebd1 |
| 5.15 | 4.12 | 5.15.222 | 9fd9c9bbb054 |
| 6.1 | 4.12 | 6.1.189 | 3776bf56e069 |
| 6.12 | 4.12 | 6.12.112 | d48ceb6e1a69 |
| 6.18 | 4.12 | 6.18.54 | 0543813753ef |
| 6.6 | 4.12 | 6.6.158 | d6a1779129d9 |
| 7.2 | 4.12 | 7.2.8 | 314091243159 |
| mainline | 4.12 | 7.3 | 0b271f7d7f5e |
| cip/5.10 | 4.12 | 5.10.271-cip78 | 98d8dcc4ebd1 |
| cip/5.10-rt | 4.12 | 5.10.272-cip79-rt35 | 98d8dcc4ebd1 |
| cip/6.1 | 4.12 | 6.1.189-cip61 | 3776bf56e069 |
| cip/6.1-rt | 4.12 | 6.1.189-cip61-rt32 | 3776bf56e069 |
| cip/6.12 | 4.12 | 6.12.112-cip33 | d48ceb6e1a69 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |