CVE-2026-97899: drm/i915: Fix memory leak in query_perf_config_list()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/i915: Fix memory leak in query_perf_config_list()
When krealloc() fails, free the original oa_config_ids before returning to avoid a memory leak.
(cherry picked from commit 9977e9d84f46d4f12ad35fbbc0ec4638554bce87)
The Linux kernel CVE team has assigned CVE-2026-97899 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit 4f6ccc74a85cbb4cdd373c374dc76398dc7603a1 and fixed in 6.12.111 with commit d004303557924077a327d71c80f5863b1b9ff1d7 Issue introduced in 5.5 with commit 4f6ccc74a85cbb4cdd373c374dc76398dc7603a1 and fixed in 6.18.53 with commit 9ac6db531abe98adfd395fea25c00fee37de8154 Issue introduced in 5.5 with commit 4f6ccc74a85cbb4cdd373c374dc76398dc7603a1 and fixed in 7.2.7 with commit 59e0a04d95e160547065ab3704bd809ddf3f0e1e Issue introduced in 5.5 with commit 4f6ccc74a85cbb4cdd373c374dc76398dc7603a1 and fixed in 7.3-rc3 with commit cbd3dafc2003db679ccd2f6c6a2551db79657049
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-97899
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/i915/i915_query.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/d004303557924077a327d71c80f5863b1b9ff1d7 https://git.kernel.org/stable/c/9ac6db531abe98adfd395fea25c00fee37de8154 https://git.kernel.org/stable/c/59e0a04d95e160547065ab3704bd809ddf3f0e1e https://git.kernel.org/stable/c/cbd3dafc2003db679ccd2f6c6a2551db79657049