CVE-2026-89899: media: cec: disable delayed work before freeing an interrupted transmit
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: cec: disable delayed work before freeing an interrupted transmit
cec_transmit_msg_fh() drops adap->lock to wait for a blocking transmit in wait_for_completion_killable(). If that wait is interrupted by a signal, cancel_delayed_work_sync() can run before the CEC kthread arms the reply timeout via schedule_delayed_work(&data->work) in cec_transmit_done_ts(). The work is then armed after the cancel, and the data is freed with its delayed_work still pending:
ODEBUG: free active (active state 0) object: ... hint: cec_wait_timeout
Use disable_delayed_work_sync(): it cancels the work and disables it, so the later schedule_delayed_work() becomes a no-op and the work cannot be re-armed. The data is freed right after, so it need not be re-enabled.
The Linux kernel CVE team has assigned CVE-2026-89899 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.20 with commit 490d84f6d73c12f4204241cff8651eed60aae914 and fixed in 6.12.110 with commit 9a951931d4b4084acd64fa55fc3672a9da45ddf9 Issue introduced in 4.20 with commit 490d84f6d73c12f4204241cff8651eed60aae914 and fixed in 6.18.51 with commit a3adb63b121937b97f7fdc51e96564c7c799538b Issue introduced in 4.20 with commit 490d84f6d73c12f4204241cff8651eed60aae914 and fixed in 7.2.5 with commit 9c6ceb0949227c1f0cf0e19393daec72d9889871 Issue introduced in 4.20 with commit 490d84f6d73c12f4204241cff8651eed60aae914 and fixed in 7.3-rc1 with commit 0fbd5c2327020858c45b2d1c65775d64cdeca523 Issue introduced in 4.18.19 with commit e448dfd6d3ec944411f6575bc24e4f8baa1e297f Issue introduced in 4.19.2 with commit 2781b86d7e45de09befa5ace296b66787146561f
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-89899
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/cec/core/cec-adap.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/9a951931d4b4084acd64fa55fc3672a9da45ddf9 https://git.kernel.org/stable/c/a3adb63b121937b97f7fdc51e96564c7c799538b https://git.kernel.org/stable/c/9c6ceb0949227c1f0cf0e19393daec72d9889871 https://git.kernel.org/stable/c/0fbd5c2327020858c45b2d1c65775d64cdeca523