CVE-2026-46310: media: renesas: vsp1: Fix NULL pointer deref on module unload
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: renesas: vsp1: Fix NULL pointer deref on module unload
When unloading the module on gen 4, we hit a NULL pointer dereference. This is caused by the cleanup code calling vsp1_drm_cleanup() where it should be calling vsp1_vspx_cleanup().
Fix this by checking the IP version and calling the drm or vspx function accordingly, the same way as the init code does.
The Linux kernel CVE team has assigned CVE-2026-46310 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit d06c1a9f348d22478c6bc5684f9c990e15ada1e9 and fixed in 6.18.32 with commit bfb2081ba00afbbd15a5ed1ed1acdc3edeea5a98 Issue introduced in 6.17 with commit d06c1a9f348d22478c6bc5684f9c990e15ada1e9 and fixed in 7.0.9 with commit c4bb1515b26663e5230603892e67f2cc7df9f0ca Issue introduced in 6.17 with commit d06c1a9f348d22478c6bc5684f9c990e15ada1e9 and fixed in 7.1-rc1 with commit 58b1e9664d8f74d55d8411cc7a7b275a76a6f24f
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-46310
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/media/platform/renesas/vsp1/vsp1_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/bfb2081ba00afbbd15a5ed1ed1acdc3edeea5a98 https://git.kernel.org/stable/c/c4bb1515b26663e5230603892e67f2cc7df9f0ca https://git.kernel.org/stable/c/58b1e9664d8f74d55d8411cc7a7b275a76a6f24f