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-1000403: net/nfc: fix use-after-free llcp_sock_bind/connect. Affects Kernel versions >= 6fb003e5ae18d8cda4c8a1175d9dd8db12bec049, < 6b7021ed36dabf29e56842e3408781cd3b82ef6e. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The net/nfc package is a part of the Linux Kernel ecosystem and is responsible for handling Near Field Communication (NFC) functionality. NFC enables communication between devices in close proximity, allowing for contactless data transfer. The package provides various features and protocols for NFC communication, including the Logical Link Control Protocol (LLCP).

Vulnerability Detail

The use-after-free vulnerability in the net/nfc package specifically affects the LLCP socket binding and connecting functionality. This vulnerability allows an attacker to exploit a use-after-free condition, where a reference to a memory object is used after it has been freed. By manipulating this vulnerability, an attacker may be able to execute arbitrary code or cause a denial-of-service (DoS) condition. The vulnerability was introduced in Linux Kernel version v5.10.30 and was fixed in version v5.10.37.

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.

Conclusion

The use-after-free vulnerability in the net/nfc package's LLCP socket binding and connecting functionality can pose a significant security risk. It is crucial to update the Linux Kernel to version v5.10.37 or later to mitigate this vulnerability. For further support and assistance in 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 ecosystem that handles Near Field Communication (NFC) functionality.

A use-after-free vulnerability occurs when a program continues to use a memory object after it has been freed. This can lead to various security issues, including code execution or denial-of-service (DoS) attacks.

An attacker can exploit this vulnerability by manipulating the use-after-free condition in the net/nfc package's LLCP socket binding and connecting functionality. This can potentially allow them to execute arbitrary code or cause a DoS condition.

The vulnerability was introduced in Linux Kernel version v5.10.30 and was fixed in version v5.10.37. Therefore, versions between v5.10.30 and v5.10.36 are affected.

The fix for this vulnerability can be found in the Linux Kernel version v5.10.37 or later. Users can obtain the updated kernel from the official Linux Kernel repository.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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