UAF Vulnerability in nfc: nci Package

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1002165: nfc: nci: add flush_workqueue to prevent uaf. Affects Kernel versions >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < 5c63ad2b0a267a524c12c88acb1ba9c2d109a801. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The nfc: nci package is a component of the Linux Kernel, which is responsible for handling Near Field Communication (NFC) functionality. NFC enables communication between devices in close proximity, allowing for contactless data transfer. The nci module within the package implements the NFC Controller Interface (NCI) protocol, facilitating communication between the NFC controller and the host system. This vulnerability affects versions of the Linux Kernel from v3.2 to v5.4.190.

Vulnerability Detail

The identified vulnerability in the nfc: nci package is an use-after-free (UAF) issue. Specifically, the vulnerability arises due to a missing call to flush_workqueue, which can result in a use-after-free condition. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition. 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

As a workaround, users can manually apply the fix by adding the flush_workqueue call to the appropriate location in the code. Here is an example of the code change:

// Original code
...

// Vulnerable code
...

// Fixed code
...
flush_workqueue(workqueue);
...

Conclusion

In conclusion, the nfc: nci package in the Linux Kernel is vulnerable to a use-after-free (UAF) issue. This vulnerability can potentially be exploited to execute arbitrary code or cause a denial-of-service (DoS) condition. It is recommended to update the Linux Kernel to version v5.4.190 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

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

The impact of this vulnerability is not yet proven, but it could potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.

To fix this vulnerability, update the Linux Kernel to version v5.4.190 or later.

Yes, a workaround is available by manually adding the flush_workqueue call to the code.

For more information, refer to the provided references link and the vulnerability details in the Open Source Vulnerability format.

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