CVE-2026-80658: drm/rockchip: dw_dp: Fix null-ptr-deref in dw_dp_remove()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/rockchip: dw_dp: Fix null-ptr-deref in dw_dp_remove()
Attempting to access driver data in the platform driver ->remove() callback may lead to a null pointer dereference since there is no guaranty that the component ->bind() callback invoking platform_set_drvdata() was executed.
A common scenario is when Rockchip DRM driver didn't manage to run component_bind_all() because of an (unrelated) error causing early return from rockchip_drm_bind().
Drop the unnecessary call to platform_get_drvdata() and, instead, reference the target device structure via platform_device.
The Linux kernel CVE team has assigned CVE-2026-80658 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit d68ba7bac9555d05e2f5b310c898b2a5c7eff174 and fixed in 6.18.40 with commit b3ec263a719e0d499bd95d20012d90d7e8641655 Issue introduced in 6.18 with commit d68ba7bac9555d05e2f5b310c898b2a5c7eff174 and fixed in 7.1.5 with commit 33bc9fba3ae05863fabe3436ddca2ca4f4939c5e Issue introduced in 6.18 with commit d68ba7bac9555d05e2f5b310c898b2a5c7eff174 and fixed in 7.2 with commit 9456381d8b60bb7dd42f2f04afe5ee4ce6e0bc12
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-80658
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/rockchip/dw_dp-rockchip.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/b3ec263a719e0d499bd95d20012d90d7e8641655 https://git.kernel.org/stable/c/33bc9fba3ae05863fabe3436ddca2ca4f4939c5e https://git.kernel.org/stable/c/9456381d8b60bb7dd42f2f04afe5ee4ce6e0bc12