CVE-2026-46267: nfc: hci: shdlc: Stop timers and work before freeing context
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nfc: hci: shdlc: Stop timers and work before freeing context
llc_shdlc_deinit() purges SHDLC skb queues and frees the llc_shdlc structure while its timers and state machine work may still be active.
Timer callbacks can schedule sm_work, and sm_work accesses SHDLC state and the skb queues. If teardown happens in parallel with a queued/running work item, it can lead to UAF and other shutdown races.
Stop all SHDLC timers and cancel sm_work synchronously before purging the queues and freeing the context.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
The Linux kernel CVE team has assigned CVE-2026-46267 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.7 with commit 4a61cd6687fc6348d08724676d34e38160d6cf9b and fixed in 5.15.202 with commit c60f41022eaad2a1dafecd3ae6f249a3bd6d4b6e Issue introduced in 3.7 with commit 4a61cd6687fc6348d08724676d34e38160d6cf9b and fixed in 6.1.165 with commit a24a676329d40481b2331bfa1418a679577dfd3a Issue introduced in 3.7 with commit 4a61cd6687fc6348d08724676d34e38160d6cf9b and fixed in 6.6.128 with commit 77eef9f2eef045c3c37a3df82d3e661afb866b98 Issue introduced in 3.7 with commit 4a61cd6687fc6348d08724676d34e38160d6cf9b and fixed in 6.12.75 with commit cf70cedce327833296ebe6043364d1e44b76a2ab Issue introduced in 3.7 with commit 4a61cd6687fc6348d08724676d34e38160d6cf9b and fixed in 6.18.14 with commit 276820278e9717cc7d4bb32381892dd3ddf418d4 Issue introduced in 3.7 with commit 4a61cd6687fc6348d08724676d34e38160d6cf9b and fixed in 6.19.4 with commit 1cb97b1225450af3f7b728777929ba50c6a58ced Issue introduced in 3.7 with commit 4a61cd6687fc6348d08724676d34e38160d6cf9b and fixed in 7.0 with commit c9efde1e537baed7648a94022b43836a348a074f
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-46267
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:
net/nfc/hci/llc_shdlc.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/c60f41022eaad2a1dafecd3ae6f249a3bd6d4b6e https://git.kernel.org/stable/c/a24a676329d40481b2331bfa1418a679577dfd3a https://git.kernel.org/stable/c/77eef9f2eef045c3c37a3df82d3e661afb866b98 https://git.kernel.org/stable/c/cf70cedce327833296ebe6043364d1e44b76a2ab https://git.kernel.org/stable/c/276820278e9717cc7d4bb32381892dd3ddf418d4 https://git.kernel.org/stable/c/1cb97b1225450af3f7b728777929ba50c6a58ced https://git.kernel.org/stable/c/c9efde1e537baed7648a94022b43836a348a074f