CVE-2023-52502

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

HIGH
8.8
CVSS Score
Published: March 2, 2024 at 09:52 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.6 ≤ v < 4.19.2973.6 ≤ v < 5.10.1993.6 ≤ v < 5.15.1363.6 ≤ v < 5.4.2593.6 ≤ v < 6.1.593.6 ≤ v < 6.5.83.6 ≤ v < 6.64.20 ≤ v < 5.4.2595.11 ≤ v < 5.15.1365.16 ≤ v < 6.1.595.5 ≤ v < 5.10.1996.2 ≤ v < 6.5.86.6 rc16.6 rc26.6 rc36.6 rc46.6 rc58f50020ed9b81ba909ce9573f9d05263cdebf502
Vendor states this is fixed in 31c07dffafce914c1d1543c135382a11ff058d93 (fixed)
Vendor states this is fixed in 6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9 (fixed)
Vendor states this is fixed in 7adcf014bda16cdbf804af5c164d94d5d025db2d (fixed)
Vendor states this is fixed in d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c (fixed)
Vendor states this is fixed in d888d3f70b0de32b4f51534175f039ddab15eef8 (fixed)
Vendor states this is fixed in e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc (fixed)
Vendor states this is fixed in e863f5720a5680e50c4cecf12424d7cc31b3eb0a (fixed)
Vendor states this is fixed in 3.6 (unaffected)
Vendor states this is fixed in 4.19.297 (unaffected)
Vendor states this is fixed in 5.10.199 (unaffected)
Vendor states this is fixed in 5.15.136 (unaffected)
Vendor states this is fixed in 5.4.259 (unaffected)
Vendor states this is fixed in 6.1.59 (unaffected)
Vendor states this is fixed in 6.5.8 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/31c07dffafce914c1d1543c135382a11ff058d93
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7adcf014bda16cdbf804af5c164d94d5d025db2d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d888d3f70b0de32b4f51534175f039ddab15eef8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e863f5720a5680e50c4cecf12424d7cc31b3eb0a

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card