CVE-2026-93134: printk: Fix possible console use-after-free
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
printk: Fix possible console use-after-free
When emitting a record via legacy printing, it is possible that a handover to another legacy printing context occurs. When a context has performed a handover, the console SRCU read lock is released and the pointer to the console struct might now be invalid. Therefore, after calling nbcon_legacy_emit_next_record() or console_emit_next_record(), it is necessary to check if a handover occurred _before_ further @con usage.
Sashiko pointed out that console_flush_one_record() was not doing this.
In console_flush_one_record(), after emitting a record, move the further usage of @con after the handover check.
The Linux kernel CVE team has assigned CVE-2026-93134 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit c158834b223fbfab3a14855ac203b8d9cddbbefd and fixed in 6.12.110 with commit f0104a7b730de32eefb3d4a27279592b5504ad59 Issue introduced in 6.12 with commit c158834b223fbfab3a14855ac203b8d9cddbbefd and fixed in 6.18.52 with commit fbf9bb81b21537ede387a31cc586f1d2ce66a74e Issue introduced in 6.12 with commit c158834b223fbfab3a14855ac203b8d9cddbbefd and fixed in 7.2.6 with commit 8f194dee0c0d1223255bae1429e1939882f540fc Issue introduced in 6.12 with commit c158834b223fbfab3a14855ac203b8d9cddbbefd and fixed in 7.3-rc1 with commit 36630cafbeede0b64c370edb2f7b4094327ee1e0
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-93134
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:
kernel/printk/printk.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/f0104a7b730de32eefb3d4a27279592b5504ad59 https://git.kernel.org/stable/c/fbf9bb81b21537ede387a31cc586f1d2ce66a74e https://git.kernel.org/stable/c/8f194dee0c0d1223255bae1429e1939882f540fc https://git.kernel.org/stable/c/36630cafbeede0b64c370edb2f7b4094327ee1e0