8.8high
net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8f50020ed9b81ba909ce9573f9d05263cdebf502 before e863f5720a5680e50c4cecf12424d7cc31b3eb0a, from 8f50020ed9b81ba909ce9573f9d05263cdebf502 before 7adcf014bda16cdbf804af5c164d94d5d025db2d, from 8f50020ed9b81ba909ce9573f9d05263cdebf502 before 6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9, from 8f50020ed9b81ba909ce9573f9d05263cdebf502 before d888d3f70b0de32b4f51534175f039ddab15eef8, from 8f50020ed9b81ba909ce9573f9d05263cdebf502 before e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc, from 8f50020ed9b81ba909ce9573f9d05263cdebf502 before d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c, from 8f50020ed9b81ba909ce9573f9d05263cdebf502 before 31c07dffafce914c1d1543c135382a11ff058d93, 3.6 Not affected: before 3.6, from 4.19.297 up to 4.19.*, from 5.4.259 up to 5.4.*, from 5.10.199 up to 5.10.*, from 5.15.136 up to 5.15.*, from 6.1.59 up to 6.1.* | CVE List |
| linux linux_kernel | from 3.6 before 4.19.297, from 4.20 before 5.4.259, from 5.5 before 5.10.199, from 5.11 before 5.15.136, from 5.16 before 6.1.59, from 6.2 before 6.5.8, 6.6 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: net: nfc: corrige ejecucións en nfc_llcp_sock_get() y nfc_llcp_sock_get_sn() Sili Luo informó una ejecución en nfc_llcp_sock_get(), lo que llevó a UAF. Obtener una referencia en el enchufe encontrado en una búsqueda mientras se mantiene un candado debe ocurrir antes de liberar el candado. nfc_llcp_sock_get_sn() tiene un problema similar. Finalmente, nfc_llcp_recv_snl() necesita asegurarse de que el socket encontrado por nfc_llcp_sock_from_sn() no desaparezca.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52502 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2023-52502 changed 2026-08-04 | Public domain |