Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 4a61cd6687fc6348d08724676d34e38160d6cf9b before c60f41022eaad2a1dafecd3ae6f249a3bd6d4b6e; affected 4a61cd6687fc6348d08724676d34e38160d6cf9b before a24a676329d40481b2331bfa1418a679577dfd3a; affected 4a61cd6687fc6348d08724676d34e38160d6cf9b before 77eef9f2eef045c3c37a3df82d3e661afb866b98; affected 4a61cd6687fc6348d08724676d34e38160d6cf9b before cf70cedce327833296ebe6043364d1e44b76a2ab; affected 4a61cd6687fc6348d08724676d34e38160d6cf9b before 276820278e9717cc7d4bb32381892dd3ddf418d4; affected 4a61cd6687fc6348d08724676d34e38160d6cf9b before 1cb97b1225450af3f7b728777929ba50c6a58ced; affected 4a61cd6687fc6348d08724676d34e38160d6cf9b before c9efde1e537baed7648a94022b43836a348a074f |
| Linux / Linux | affected 3.7; unaffected 0 before 3.7; unaffected 5.15.202 through 5.15.*; unaffected 6.1.165 through 6.1.*; unaffected 6.6.128 through 6.6.*; unaffected 6.12.75 through 6.12.*; unaffected 6.18.14 through 6.18.*; unaffected 6.19.4 through 6.19.*; unaffected 7.0 through * |
CWE
No CWE identifiers supplied.
References
- 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