CVE-2026-98605: drm/bridge: samsung-dsim: fix TE GPIO lifetime for host attach
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/bridge: samsung-dsim: fix TE GPIO lifetime for host attach
When the Exynos DSI driver was generalized into samsung-dsim, the TE GPIO acquisition was switched from gpiod_get_optional() to devm_gpiod_get_optional() while keeping the matching gpiod_put() calls. That combination is wrong for a managed descriptor.
However, dropping the puts and keeping the managed get is also wrong:samsung_dsim_register_te_irq() runs from the DSI host attach callback, and host detach/reattach can happen without destroying the device that owns the managed action. A second attach would then request the GPIO again without having released it.
Switch back to a non-managed gpiod_get_optional() and keep the explicit gpiod_put() on the request_irq() error path and in samsung_dsim_unregister_te_irq().
[Luca: remove unnecessary comment]
The Linux kernel CVE team has assigned CVE-2026-98605 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4 with commit e7447128ca4a250374d6721ee98e3e3cf99551a6 and fixed in 6.6.158 with commit 77a43e00c57486a5212ef22d4665cafad62a5d4b Issue introduced in 6.4 with commit e7447128ca4a250374d6721ee98e3e3cf99551a6 and fixed in 6.12.112 with commit 5759bbef951c39d264ac0f47daa4137d01403aea Issue introduced in 6.4 with commit e7447128ca4a250374d6721ee98e3e3cf99551a6 and fixed in 6.18.55 with commit ebffd70e4877bb7554974cf975a27872f2bb225f Issue introduced in 6.4 with commit e7447128ca4a250374d6721ee98e3e3cf99551a6 and fixed in 7.2.9 with commit 9b796251c3cca45a33a5c859c6818c58aa982277 Issue introduced in 6.4 with commit e7447128ca4a250374d6721ee98e3e3cf99551a6 and fixed in 7.3-rc5 with commit ada667890773e033d2f40dc94176e3beb930b516
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-98605
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/bridge/samsung-dsim.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/77a43e00c57486a5212ef22d4665cafad62a5d4b https://git.kernel.org/stable/c/5759bbef951c39d264ac0f47daa4137d01403aea https://git.kernel.org/stable/c/ebffd70e4877bb7554974cf975a27872f2bb225f https://git.kernel.org/stable/c/9b796251c3cca45a33a5c859c6818c58aa982277 https://git.kernel.org/stable/c/ada667890773e033d2f40dc94176e3beb930b516