CVE-2020-25671
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2020-25671) was discovered in the Linux Kernel's NFC LLCP protocol implementation, specifically a refcount leak in the llcpsockconnect() function that could lead to a use-after-free condition. The vulnerability was discovered by kiyin (尹亮) of TenCent and disclosed on November 1, 2020 (OSS Security).

Technical details

The vulnerability occurs in the llcpsockconnect() function where nfcllcplocalget() increases the refcount of local, but if nfcllcpgetlocalssap returns LLCPSAPMAX, the function returns without properly decreasing the refcount. This allows an attacker to repeatedly call llcpsock_connect() to keep increasing the refcount until it reaches problematic values. The CVSS v3.1 base score for this vulnerability is 7.8 (High), with the vector: AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

When successfully exploited, this vulnerability could lead to privilege escalations through use-after-free conditions. If the refcount reaches 0x80000000, it may cause a system panic, or if unhandled, continue to increment until wrapping around to 0, potentially leading to memory corruption when the freed memory is accessed (OSS Security).

Mitigation and workarounds

The vulnerability has been fixed in multiple Linux distributions. Ubuntu has released patches for various versions including 5.11.0-18.19 for Ubuntu 21.04, 5.8.0-59.66 for Ubuntu 20.10, and 5.4.0-74.83 for Ubuntu 20.04 LTS (Ubuntu). Debian has also released fixes in version 4.19.194-1~deb9u1 for Debian 9 stretch (Debian LTS).

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-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoYesDec 09, 2025

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