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

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000754: nfc: fix NULL ptr dereference in llcp_sock_getname() after failed connect. Affects Kernel versions >= d646960f7986fefb460a2b062d5ccc8ccfeacc3a, < 5d4c4b06ed9fb7a69d0b2e2a73fc73226d25ab70. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system, responsible for managing system resources and providing an interface between hardware and software. It is a critical part of the system's functionality and security. This vulnerability specifically affects the Kernel's NFC (Near Field Communication) module. NFC allows devices to communicate wirelessly over short distances, enabling various applications such as contactless payments and data transfer. The llcp_sock_getname() function in the NFC module is susceptible to a NULL pointer dereference after a failed connect operation.

Vulnerability Detail

The vulnerability arises due to a programming error in the llcp_sock_getname() function of the NFC module. When a connect operation fails, the function does not properly handle the NULL pointer, leading to a dereference issue. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code with kernel privileges. The impact and attack plausibility of this vulnerability have not been proven yet.

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

There is no specific workaround mentioned for this vulnerability. It is advised to apply the fix by updating the Kernel to the recommended version.

Conclusion

In conclusion, this vulnerability in the Kernel's NFC module can lead to a NULL pointer dereference after a failed connect operation. It is recommended to update the Kernel to version v5.4.125 or later to mitigate the risk. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system, responsible for managing system resources and providing an interface between hardware and software.

NFC (Near Field Communication) is a technology that allows devices to communicate wirelessly over short distances, enabling various applications such as contactless payments and data transfer.

A NULL pointer dereference occurs when a program attempts to access or manipulate memory using a pointer that has not been assigned a valid memory address (i.e., it points to NULL). This can lead to crashes, unexpected behavior, or security vulnerabilities.

A denial-of-service (DoS) attack is an attempt to disrupt the normal functioning of a system or network by overwhelming it with a flood of illegitimate requests or malicious activities. In the context of this vulnerability, an attacker could potentially exploit it to cause a DoS condition in the Kernel.

To update the Linux Kernel, you can follow the instructions provided by your Linux distribution. Typically, it involves using package management tools or manually compiling and installing the latest Kernel version.

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