# CVE-2023-52502: net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-03-02T21:52:17.218Z
- Modified: 2026-08-05T09:10:16.026Z
- Weaknesses: CWE-362, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 6.5.8 up to 6.5.*; from 6.6 up to *)
- 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

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e863f5720a5680e50c4cecf12424d7cc31b3eb0a> (patch)
- <https://git.kernel.org/stable/c/7adcf014bda16cdbf804af5c164d94d5d025db2d> (patch)
- <https://git.kernel.org/stable/c/6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9> (patch)
- <https://git.kernel.org/stable/c/d888d3f70b0de32b4f51534175f039ddab15eef8> (patch)
- <https://git.kernel.org/stable/c/e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc> (patch)
- <https://git.kernel.org/stable/c/d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c> (patch)
- <https://git.kernel.org/stable/c/31c07dffafce914c1d1543c135382a11ff058d93> (patch)

## Sources

- CVE List: [CVE-2023-52502](https://www.cve.org/CVERecord?id=CVE-2023-52502), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52502](https://nvd.nist.gov/vuln/detail/CVE-2023-52502), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52502 · Whole record: https://cve.day/CVE-2023-52502.json · Rebuilt by cve.day 2026-11-25T22:58:33.151Z
