CVE-2026-89826: drm/panthor: harden firmware build-info bounds checks
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: harden firmware build-info bounds checks
panthor_fw_read_build_info() checks whether the metadata range fits in the firmware image with hdr.meta_start + hdr.meta_size. Both fields are u32, so the addition can wrap and let an out-of-bounds range pass validation.
The function also reads the "git_sha: " prefix without first checking that the metadata is long enough, and meta_size == 0 can underflow the NULL terminator index.
Use subtraction-based bounds checking and reject metadata that is too short to contain the expected prefix and trailing NULL byte.
The Linux kernel CVE team has assigned CVE-2026-89826 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 2718d91816eeed03c09c8abe872e45f59078768c and fixed in 6.18.51 with commit 5516f1acfd07564361cf306cc90a8e513df0f096 Issue introduced in 6.10 with commit 2718d91816eeed03c09c8abe872e45f59078768c and fixed in 7.2.5 with commit 6ae19dce3e8c13ae73590b3f4311abe9f96bbae8 Issue introduced in 6.10 with commit 2718d91816eeed03c09c8abe872e45f59078768c and fixed in 7.3-rc1 with commit 8321b093fa6c297b80586460ce6914d9655df170
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-89826
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/panthor/panthor_fw.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/5516f1acfd07564361cf306cc90a8e513df0f096 https://git.kernel.org/stable/c/6ae19dce3e8c13ae73590b3f4311abe9f96bbae8 https://git.kernel.org/stable/c/8321b093fa6c297b80586460ce6914d9655df170