CVE-2026-99605: drm/etnaviv: Fix NULL dereference on unbind without PPU flop reset
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/etnaviv: Fix NULL dereference on unbind without PPU flop reset
flop_reset_data_ppu is only allocated on GPUs that need the PPU flop reset. However, etnaviv_unbind(..) frees it unconditionally, and etnaviv_cmdbuf_free(..) dereferences cmdbuf->suballoc before checking whether cmdbuf is NULL.
As a result, unloading the driver on GPUs that do not need the PPU flop reset causes a NULL pointer dereference at address 0.
The Linux kernel CVE team has assigned CVE-2026-99605 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.0 with commit 85ba57ad88cf96b2fb4cf6c81639c7907bf3cd94 and fixed in 7.3.5 with commit 1fc4d88bb5398d9687993220effd7d79364e7a13 Issue introduced in 7.0 with commit 85ba57ad88cf96b2fb4cf6c81639c7907bf3cd94 and fixed in 7.4-rc2 with commit a0560a12d8c1a03e925c5d9be8479da75663a40f
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-99605
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/etnaviv/etnaviv_drv.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/1fc4d88bb5398d9687993220effd7d79364e7a13 https://git.kernel.org/stable/c/a0560a12d8c1a03e925c5d9be8479da75663a40f