net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8f50020ed9b81ba909ce9573f9d05263cdebf502 · < d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
Sili Luo reported a race in nfc_llcp_sock_get(), leading to UAF.
Getting a reference on the socket found in a lookup while holding a lock should happen before releasing the lock.
nfc_llcp_sock_get_sn() has a similar problem.
Finally nfc_llcp_recv_snl() needs to make sure the socket found by nfc_llcp_sock_from_sn() does not disappear.
From the CVE record · Linux
The Linux kernel has races in NFC LLCP socket lookup and receive paths that can lead to use-after-free. An attacker may be able to trigger the race, but the input does not specify whether this requires local or network access, authentication, or user interaction.
Teams running Linux kernels with the affected NFC LLCP code should check their versions; the affected versions are not specified.