nfc: hci: shdlc: Stop timers and work before freeing context
CVE-2026-46267
What is CVE-2026-46267?
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.
Affected Version(s)
Linux 4a61cd6687fc6348d08724676d34e38160d6cf9b
Linux 4a61cd6687fc6348d08724676d34e38160d6cf9b
Linux 4a61cd6687fc6348d08724676d34e38160d6cf9b < 77eef9f2eef045c3c37a3df82d3e661afb866b98