Skip to contentSkip to conversation

CVE-2026-99004: drm/imagination: Size page table preallocation by device address

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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]

The Linux kernel CVE team has assigned CVE-2026-99004 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.8 with commit ff5f643de0bf27874c4033cd57a0bd034b5c7d11 and fixed in 6.12.113 with commit 51b56bad96fd20127034f660b337c00317c65151
	Issue introduced in 6.8 with commit ff5f643de0bf27874c4033cd57a0bd034b5c7d11 and fixed in 6.18.57 with commit f9b215b3e37a5047c406545de51bf8a2aeb4cd1c
	Issue introduced in 6.8 with commit ff5f643de0bf27874c4033cd57a0bd034b5c7d11 and fixed in 7.2.11 with commit 7f73da0facf864fe796371ebaccacb1fee678aaf
	Issue introduced in 6.8 with commit ff5f643de0bf27874c4033cd57a0bd034b5c7d11 and fixed in 7.3 with commit 789f290b2e81d42820bddcb4010ffbc2ae2ded54

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99004

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/imagination/pvr_mmu.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/51b56bad96fd20127034f660b337c00317c65151
	https://git.kernel.org/stable/c/f9b215b3e37a5047c406545de51bf8a2aeb4cd1c
	https://git.kernel.org/stable/c/7f73da0facf864fe796371ebaccacb1fee678aaf
	https://git.kernel.org/stable/c/789f290b2e81d42820bddcb4010ffbc2ae2ded54