CVE-2026-90158: m68k: nfcon: Do not call console_is_registered() in nfcon_device()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
m68k: nfcon: Do not call console_is_registered() in nfcon_device()
Since 7c2af0f634f1 ("tty: tty_io: use console_list_lock for list synchronization") show_cons_active() calls the .device() method under the console_list_lock, but console_is_registered() tries to acquire console_list_lock as well, causing a deadlock. It should not be necessary to check console_is_registered() here since the function should not be called in the fist place when the console is not registered.
The Linux kernel CVE team has assigned CVE-2026-90158 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 7c2af0f634f1bc761ca827310dc7e8e586af502f and fixed in 6.6.157 with commit 7d3f15a664d115584fc177b5f2cfbdb3e5a50d60 Issue introduced in 6.2 with commit 7c2af0f634f1bc761ca827310dc7e8e586af502f and fixed in 6.12.110 with commit e5e11274b5512e24a346ed83f8dd85e3389d2f4b Issue introduced in 6.2 with commit 7c2af0f634f1bc761ca827310dc7e8e586af502f and fixed in 6.18.52 with commit be98f92fc244688a6bdecbc834cf2cd243056d9d Issue introduced in 6.2 with commit 7c2af0f634f1bc761ca827310dc7e8e586af502f and fixed in 7.2.6 with commit d73441232f1f067eb659e94447b1353c16609711 Issue introduced in 6.2 with commit 7c2af0f634f1bc761ca827310dc7e8e586af502f and fixed in 7.3-rc1 with commit 2f8e3cad53b5c36ab0ed5d3195bfc55c59ea61a5
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-90158
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:
arch/m68k/emu/nfcon.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/7d3f15a664d115584fc177b5f2cfbdb3e5a50d60 https://git.kernel.org/stable/c/e5e11274b5512e24a346ed83f8dd85e3389d2f4b https://git.kernel.org/stable/c/be98f92fc244688a6bdecbc834cf2cd243056d9d https://git.kernel.org/stable/c/d73441232f1f067eb659e94447b1353c16609711 https://git.kernel.org/stable/c/2f8e3cad53b5c36ab0ed5d3195bfc55c59ea61a5