Linux
nfc: hci: shdlc: Stop timers and work before freeing context
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4a61cd6687fc6348d08724676d34e38160d6cf9b, < c60f41022eaad2a1dafecd3ae6f249a3bd6d4b6e
- >= 4a61cd6687fc6348d08724676d34e38160d6cf9b, < a24a676329d40481b2331bfa1418a679577dfd3a
- >= 4a61cd6687fc6348d08724676d34e38160d6cf9b, < 77eef9f2eef045c3c37a3df82d3e661afb866b98
- >= 4a61cd6687fc6348d08724676d34e38160d6cf9b, < cf70cedce327833296ebe6043364d1e44b76a2ab
- >= 4a61cd6687fc6348d08724676d34e38160d6cf9b, < 276820278e9717cc7d4bb32381892dd3ddf418d4
- >= 4a61cd6687fc6348d08724676d34e38160d6cf9b, < 1cb97b1225450af3f7b728777929ba50c6a58ced
- >= 4a61cd6687fc6348d08724676d34e38160d6cf9b, < c9efde1e537baed7648a94022b43836a348a074f
Fixed in c60f41022eaad2a1dafecd3ae6f249a3bd6d4b6e, a24a676329d40481b2331bfa1418a679577dfd3a, 77eef9f2eef045c3c37a3df82d3e661afb866b98, cf70cedce327833296ebe6043364d1e44b76a2ab, 276820278e9717cc7d4bb32381892dd3ddf418d4, 1cb97b1225450af3f7b728777929ba50c6a58ced, c9efde1e537baed7648a94022b43836a348a074f
- 3.7
Fixed in 0, 5.15.202, 6.1.165, 6.6.128, 6.12.75, 6.18.14, 6.19.4, 7.0
Mitigation
Upgrade Linux to c60f41022eaad2a1dafecd3ae6f249a3bd6d4b6e or a24a676329d40481b2331bfa1418a679577dfd3a or 77eef9f2eef045c3c37a3df82d3e661afb866b98 or cf70cedce327833296ebe6043364d1e44b76a2ab or 276820278e9717cc7d4bb32381892dd3ddf418d4 or 1cb97b1225450af3f7b728777929ba50c6a58ced or c9efde1e537baed7648a94022b43836a348a074f or later.
Upgrade Linux to 0 or 5.15.202 or 6.1.165 or 6.6.128 or 6.12.75 or 6.18.14 or 6.19.4 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.