NULL ptr dereference in llcp_sock_getname() after failed connect in Kernel

Kernel Updated 02 Oct 2025

Summary

25/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000780: nfc: fix NULL ptr dereference in llcp_sock_getname() after failed connect. Affects Kernel versions >= d646960f7986fefb460a2b062d5ccc8ccfeacc3a, < 48ee0db61c8299022ec88c79ad137f290196cac2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that provides core functionality and acts as a bridge between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The vulnerability in question affects the Kernel's NFC (Near Field Communication) subsystem, which enables communication between devices in close proximity.

Vulnerability Detail

The vulnerability arises from a NULL pointer dereference in the llcp_sock_getname() function after a failed connect operation in the NFC subsystem. This issue can be exploited by an attacker to cause a denial-of-service condition or potentially execute arbitrary code with kernel privileges. The vulnerability was introduced in version v3.3 of the Linux Kernel and has been fixed in version v5.10.43.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the Kernel is not immediately feasible, a possible workaround is to disable the NFC subsystem or restrict its usage to trusted devices only. This can be achieved by modifying the system configuration or using kernel command-line parameters. However, it is important to note that workarounds may have limitations and it is still recommended to apply the official fix as soon as possible.

Conclusion

The NULL pointer dereference vulnerability in llcp_sock_getname() in the Kernel's NFC subsystem can have serious security implications, potentially leading to a denial-of-service condition or arbitrary code execution. It is crucial to update the Linux Kernel to version v5.10.43 or later to mitigate this vulnerability. If immediate updating is not possible, consider applying the provided workaround or taking additional security measures. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a denial-of-service condition or potential execution of arbitrary code with kernel privileges, allowing an attacker to compromise the affected system.

You can use the Vulert playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known public exploit for this vulnerability. However, it is important to apply the fix or workaround as soon as possible to mitigate any potential risk.

Yes, this vulnerability can be exploited remotely if the affected system is accessible over a network. It is crucial to apply the necessary patches or updates to prevent any potential attacks.

To exploit this vulnerability, an attacker would need network access to the affected system and the ability to send specially crafted NFC packets. However, the exact prerequisites may vary depending on the specific configuration and environment.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback