NFC: Reordering Logic in nfc_{un,}register_device

Kernel Updated 02 Oct 2025

Summary

29/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002281: NFC: reorder the logic in nfc_{un,}register_device. Affects Kernel versions >= be055b2f89b5842f41363b5655a33dffb51a8294, < 73a0d12114b4bc1a9def79a623264754b9df698e. 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 NFC (Near Field Communication) functionality in the Linux Kernel is responsible for enabling communication between devices in close proximity. It allows for the exchange of data and commands between devices, such as smartphones and contactless payment terminals. The nfc_{un,}register_device functions are part of the NFC subsystem and are used to register and unregister NFC devices with the kernel. These functions play a crucial role in managing the NFC devices and their associated drivers.

Vulnerability Detail

The vulnerability identified as GSD-2021-1002281 in the Linux Kernel's NFC subsystem involves the incorrect ordering of logic in the nfc_{un,}register_device functions. This vulnerability was introduced in version v3.10 of the Linux Kernel and was fixed in version v5.10.82. The exact impact and attack plausibility of this vulnerability have not been proven yet. However, the incorrect ordering of logic can potentially lead to various security issues, such as memory corruption, privilege escalation, or denial-of-service attacks. It is important to address this vulnerability to ensure the secure operation of NFC devices and prevent potential exploitation.

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

No specific workaround has been provided for this vulnerability. The recommended approach is to apply the fix by updating the Linux Kernel to the latest version.

Conclusion

The vulnerability in the NFC subsystem of the Linux Kernel, identified as GSD-2021-1002281, involves the incorrect ordering of logic in the nfc_{un,}register_device functions. This vulnerability can potentially lead to security issues, such as memory corruption, privilege escalation, or denial-of-service attacks. It is crucial to update the Linux Kernel to version v5.10.82 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

NFC (Near Field Communication) is a technology that enables short-range wireless communication between devices, typically within a few centimeters. It allows for contactless data exchange and is commonly used in applications like mobile payments, access control, and data transfer between devices.

The nfc_{un,}register_device functions are part of the NFC subsystem in the Linux Kernel. They are responsible for registering and unregistering NFC devices with the kernel. These functions play a crucial role in managing the NFC devices and their associated drivers.

The incorrect ordering of logic in the nfc_{un,}register_device functions can lead to various security risks. These include memory corruption, privilege escalation, or denial-of-service attacks. The exact impact and attack plausibility of this vulnerability have not been proven yet.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software. You can visit the Vulert playground at Vulert Scanner to check if your application is affected without any signup.

You can find more information about this vulnerability, including the fix and its impact, in the official Linux Kernel repository. The vulnerability ID GSD-2021-1002281 provides specific details and references to the relevant commits in the repository.

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