Use-after-free vulnerability in net/nfc package

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

GSD-2021-1000462: net/nfc: fix use-after-free llcp_sock_bind/connect. Affects Kernel versions >= adbb1d218c5f56dbae052765da83c0f57fce2a31, < 48fba458fe54cc2a980a05c13e6c19b8b2cfb610. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The net/nfc package is a part of the Linux Kernel and is responsible for handling Near Field Communication (NFC) functionality. NFC allows devices to communicate and transfer data wirelessly over short distances. The net/nfc package provides the necessary protocols and drivers for NFC communication. However, a use-after-free vulnerability has been discovered in the llcp_sock_bind/connect functions of the net/nfc package.

Vulnerability Detail

The use-after-free vulnerability in the llcp_sock_bind/connect functions of the net/nfc package allows an attacker to exploit a freed memory region. This can lead to various consequences, including remote code execution, privilege escalation, or denial of service. The vulnerability was introduced in Linux Kernel version v4.19.187 and is fixed in version v4.19.191. The vulnerability occurs when the llcp_sock_bind/connect functions are called after the corresponding socket has been closed, resulting in a use-after-free scenario.

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

As a temporary workaround, users can avoid the use of the llcp_sock_bind/connect functions in the net/nfc package. This can be achieved by disabling NFC functionality or modifying the affected code to use alternative methods for socket binding and connection establishment.

Conclusion

The use-after-free vulnerability in the net/nfc package can have severe security implications. It is crucial to update the Linux Kernel to the latest version and regularly apply security patches to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The net/nfc package is a component of the Linux Kernel that handles Near Field Communication (NFC) functionality.

A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to various security issues, including remote code execution and denial of service.

The use-after-free vulnerability in the net/nfc package can potentially allow an attacker to execute arbitrary code, escalate privileges, or cause a denial of service.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.191 or later. Regularly updating the kernel is also advisable to ensure the latest security patches are applied.

As a temporary workaround, users can disable NFC functionality or modify the affected code to use alternative methods for socket binding and connection establishment.

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