{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52502","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-02-20T12:30:33.313Z","datePublished":"2024-03-02T21:52:17.218Z","dateUpdated":"2026-08-05T09:10:16.026Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T09:10:16.026Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()\n\nSili Luo reported a race in nfc_llcp_sock_get(), leading to UAF.\n\nGetting a reference on the socket found in a lookup while\nholding a lock should happen before releasing the lock.\n\nnfc_llcp_sock_get_sn() has a similar problem.\n\nFinally nfc_llcp_recv_snl() needs to make sure the socket\nfound by nfc_llcp_sock_from_sn() does not disappear."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The vulnerable lookups run in the NFC LLCP receive path (nfc_llcp_data_received → nfc_llcp_rx_skb → CONNECT/SNL/UI/I/DISC handlers) on frames from an NFC peer over a DEP link, requiring same-segment NFC proximity like Bluetooth adjacent attacks.\nAC:L - The attacker drives the lookup side by sending concurrent LLCP PDUs and can drive socket teardown via connect/disconnect and session churn; nfc_llcp_recv_snl also used the socket with no reference across a wide window, so the race is attacker-influenced and retryable.\nPR:N - Crafted LLCP frames are processed in-kernel from an unauthenticated NFC peer with no account or capabilities on the victim; AF_NFC STREAM/DGRAM sockets need no CAP_NET_RAW and phones commonly already have NFC/LLCP active.\nUI:N - Exploitation does not require a deliberate victim action beyond NFC already being enabled; a peer can bring up target/DEP mode and exchange LLCP PDUs without an interactive confirm step.\nS:U - This is a kernel heap UAF in the host NFC stack that escalates within the same OS security authority, with no VM/IOMMU or other cross-boundary escape.\nC:H - The race yields a use-after-free on struct sock/nfc_llcp_sock, which can be reclaimed and read to disclose arbitrary kernel memory.\nI:H - UAF on the socket object enables heap spray and corrupted sock state/function pointers, providing arbitrary write and control-flow hijack primitives in kernel context.\nA:H - The same UAF reliably causes kernel oops/panic or memory corruption crashes when the freed socket is accessed or when sock_hold runs on freed memory."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/llcp_core.c"],"versions":[{"version":"8f50020ed9b81ba909ce9573f9d05263cdebf502","lessThan":"e863f5720a5680e50c4cecf12424d7cc31b3eb0a","status":"affected","versionType":"git"},{"version":"8f50020ed9b81ba909ce9573f9d05263cdebf502","lessThan":"7adcf014bda16cdbf804af5c164d94d5d025db2d","status":"affected","versionType":"git"},{"version":"8f50020ed9b81ba909ce9573f9d05263cdebf502","lessThan":"6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9","status":"affected","versionType":"git"},{"version":"8f50020ed9b81ba909ce9573f9d05263cdebf502","lessThan":"d888d3f70b0de32b4f51534175f039ddab15eef8","status":"affected","versionType":"git"},{"version":"8f50020ed9b81ba909ce9573f9d05263cdebf502","lessThan":"e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc","status":"affected","versionType":"git"},{"version":"8f50020ed9b81ba909ce9573f9d05263cdebf502","lessThan":"d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c","status":"affected","versionType":"git"},{"version":"8f50020ed9b81ba909ce9573f9d05263cdebf502","lessThan":"31c07dffafce914c1d1543c135382a11ff058d93","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/llcp_core.c"],"versions":[{"version":"3.6","status":"affected"},{"version":"0","lessThan":"3.6","status":"unaffected","versionType":"semver"},{"version":"4.19.297","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.259","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.199","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.136","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.59","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.5.8","lessThanOrEqual":"6.5.*","status":"unaffected","versionType":"semver"},{"version":"6.6","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.6","versionEndExcluding":"4.19.297"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.6","versionEndExcluding":"5.4.259"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.6","versionEndExcluding":"5.10.199"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.6","versionEndExcluding":"5.15.136"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.6","versionEndExcluding":"6.1.59"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.6","versionEndExcluding":"6.5.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.6","versionEndExcluding":"6.6"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e863f5720a5680e50c4cecf12424d7cc31b3eb0a"},{"url":"https://git.kernel.org/stable/c/7adcf014bda16cdbf804af5c164d94d5d025db2d"},{"url":"https://git.kernel.org/stable/c/6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9"},{"url":"https://git.kernel.org/stable/c/d888d3f70b0de32b4f51534175f039ddab15eef8"},{"url":"https://git.kernel.org/stable/c/e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc"},{"url":"https://git.kernel.org/stable/c/d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c"},{"url":"https://git.kernel.org/stable/c/31c07dffafce914c1d1543c135382a11ff058d93"}],"title":"net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-noinfo Not enough information"}]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":6.3,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-03-05T20:30:02.589366Z","id":"CVE-2023-52502","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-11-05T14:59:47.087Z"}},{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T23:03:20.409Z"},"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/e863f5720a5680e50c4cecf12424d7cc31b3eb0a","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7adcf014bda16cdbf804af5c164d94d5d025db2d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d888d3f70b0de32b4f51534175f039ddab15eef8","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/31c07dffafce914c1d1543c135382a11ff058d93","tags":["x_transferred"]}]}]}}