CVE-2023-52502

published 2 Mar 2024 · updated 5 Aug 2026

net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 31c07dffafce914c1d1543c135382a11ff058d93, Kernel 6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9, Kernel 7adcf014bda16cdbf804af5c164d94d5d025db2d and 4 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=3.6, >=8f50020ed9b81ba909ce9573f9d05263cdebf502 <31c07dffafce914c1d1543c135382a11ff058d93, >=8f50020ed9b81ba909ce9573f9d05263cdebf502 <6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9, >=8f50020ed9b81ba909ce9573f9d05263cdebf502 <7adcf014bda16cdbf804af5c164d94d5d025db2d, >=8f50020ed9b81ba909ce9573f9d05263cdebf502 <d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c, >=8f50020ed9b81ba909ce9573f9d05263cdebf502 <d888d3f70b0de32b4f51534175f039ddab15eef8, >=8f50020ed9b81ba909ce9573f9d05263cdebf502 <e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc, >=8f50020ed9b81ba909ce9573f9d05263cdebf502 <e863f5720a5680e50c4cecf12424d7cc31b3eb0a31c07dffafce914c1d1543c135382a11ff058d93, 6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9, 7adcf014bda16cdbf804af5c164d94d5d025db2d, d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c, d888d3f70b0de32b4f51534175f039ddab15eef8, e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc, e863f5720a5680e50c4cecf12424d7cc31b3eb0a

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-52502 severity on Zeptric[![CVE-2023-52502](https://zeptric.io/badge/cve/CVE-2023-52502.svg)](https://zeptric.io/cve/CVE-2023-52502)