CVE-2023-52502
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-52502 is a vulnerability in the Linux kernel's NFC (Near Field Communication) subsystem, specifically affecting the LLCP (Logical Link Control Protocol) socket handling. The vulnerability was discovered by Sili Luo and reported in October 2023. The issue involves race conditions in the nfc_llcp_sock_get() and nfc_llcp_sock_get_sn() functions that could lead to a Use-After-Free (UAF) vulnerability (Kernel Git).

Technical details

The vulnerability stems from a race condition where a reference to a socket found during lookup was not properly handled while holding a lock. Specifically, the issue occurs in the Linux kernel's NFC subsystem where the socket reference counting in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn() functions was performed after releasing the lock, creating a potential Use-After-Free condition. The CVSS v3.1 base score is 6.3 (Medium) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H (NVD).

Impact

The vulnerability could allow an attacker to potentially cause a Use-After-Free condition in the kernel's NFC subsystem. This could lead to high confidentiality and availability impacts, though no integrity impact has been identified. The vulnerability requires local access and high complexity to exploit (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel by modifying the nfc_llcp_sock_get() and nfc_llcp_sock_get_sn() functions to properly handle socket references while holding the lock. The fix ensures that socket reference counting is performed before releasing the lock and adds proper socket cleanup in nfc_llcp_recv_snl(). Users should update their Linux kernel to a version containing the fix (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-31427HIGH7.8
  • Linux KernelLinux Kernel
  • libperf
NoYesApr 13, 2026
CVE-2025-54510MEDIUM5.9
  • Linux KernelLinux Kernel
  • kernel-devel-matched
NoNoApr 16, 2026
CVE-2026-31428MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesApr 13, 2026
CVE-2026-31430N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules
NoNoApr 20, 2026
CVE-2026-31429N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoApr 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management