CVE-2026-99004
drm/imagination: Size page table preallocation by device address
Description
In the Linux kernel, the following vulnerability has been resolved: drm/imagination: Size page table preallocation by device address Commit 0a8224058a58 ("drm/imagination: Fix page count for page table for map() interface") passed the device address to pvr_mmu_op_context_create(), but the preallocation is still sized from device_addr + sgt_offset with an exclusive end. The offset into the object's pages has no place in a device-virtual range, and the exclusive end allocates one table too many when the range ends on a table boundary. Count the tables from device_addr and the inclusive end of the range. The new calculation does not take page table indices into account. This fixes another issue with the previous implementation, where the difference between start and end indices could underflow when a mapping crossed a page table boundary. This would lead to the driver preallocating a huge number of MMU pages, exhausting system memory and triggering an out of memory panic. [Alessio: add paragraph to point out OOM bug being fixed, cc stable]
Affected products and packages
CNA (CVE.org)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | affected: ff5f643de0bf27874c4033cd57a0bd034b5c7d11 … < 51b56bad96fd20127034f660b337c00317c65151 affected: ff5f643de0bf27874c4033cd57a0bd034b5c7d11 … < f9b215b3e37a5047c406545de51bf8a2aeb4cd1c affected: ff5f643de0bf27874c4033cd57a0bd034b5c7d11 … < 7f73da0facf864fe796371ebaccacb1fee678aaf affected: ff5f643de0bf27874c4033cd57a0bd034b5c7d11 … < 789f290b2e81d42820bddcb4010ffbc2ae2ded54 default: unaffected |
| Linux | Linux | affected: 6.8 unaffected: 0 … < 6.8 unaffected: 6.12.113 … <= 6.12.* unaffected: 6.18.57 … <= 6.18.* unaffected: 7.2.11 … <= 7.2.* unaffected: 7.3 … <= * default: affected |
Open-source packages (GitHub Advisory / OSV)
drm/imagination: Size page table preallocation by device address
| Ecosystem | Package | Affected versions | Fixed in |
|---|---|---|---|
| >= ff5f643de0bf27874c4033cd57a0bd034b5c7d11, < 51b56bad96fd20127034f660b337c00317c65151; < f9b215b3e37a5047c406545de51bf8a2aeb4cd1c; < 7f73da0facf864fe796371ebaccacb1fee678aaf; < 789f290b2e81d42820bddcb4010ffbc2ae2ded54 | 51b56bad96fd20127034f660b337c00317c65151, f9b215b3e37a5047c406545de51bf8a2aeb4cd1c, 7f73da0facf864fe796371ebaccacb1fee678aaf, 789f290b2e81d42820bddcb4010ffbc2ae2ded54 | ||
| Linux | Kernel | >= 6.8.0, < 6.12.113; >= 6.13.0, < 6.18.57; >= 6.19.0, < 7.2.11 | 6.12.113, 6.18.57, 7.2.11 |
Linux distribution status
References (7)
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git OSV
- https://git.kernel.org/stable/c/51b56bad96fd20127034f660b337c00317c65151 NVD, CNA, OSV
- https://git.kernel.org/stable/c/789f290b2e81d42820bddcb4010ffbc2ae2ded54 NVD, CNA, OSV
- https://git.kernel.org/stable/c/7f73da0facf864fe796371ebaccacb1fee678aaf NVD, CNA, OSV
- https://git.kernel.org/stable/c/f9b215b3e37a5047c406545de51bf8a2aeb4cd1c NVD, CNA, OSV
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99004.json OSV
- https://nvd.nist.gov/vuln/detail/CVE-2026-99004 OSV