Memory Leak in NFC: st21nfca Package

Kernel Updated 02 Oct 2025

Summary

10/01/2022
N/A
No i
Unrated
Not published

GSD-2022-1000029: NFC: st21nfca: Fix memory leak in device probe and remove. Affects Kernel versions >= 68957303f44a501af5cf37913208a2acaa6bcdf1, < 1cd4063dbc91cf7965d73a6a3855e2028cd4613b. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The NFC: st21nfca package is a component of the Linux Kernel, which is responsible for handling Near Field Communication (NFC) functionality. NFC allows devices to communicate wirelessly over short distances, enabling various applications such as contactless payments and data transfer. The st21nfca driver specifically supports STMicroelectronics' ST21NFCA NFC controller. This vulnerability in the package leads to a memory leak issue during device probe and removal processes.

Vulnerability Detail

The vulnerability in the NFC: st21nfca package results in a memory leak during device probe and removal operations. When the driver is initialized or removed, it fails to release allocated memory, leading to a gradual depletion of system resources. This can eventually cause system instability, performance degradation, and potential denial-of-service conditions. The vulnerability was introduced in version v3.16 of the Linux Kernel and is fixed in version v5.4.170 by commit 1cd4063dbc91cf7965d73a6a3855e2028cd4613b.

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 unload and reload the st21nfca module manually to release the allocated memory. This can be achieved using the following commands:

$ sudo modprobe -r st21nfca $ sudo modprobe st21nfca

However, this workaround only provides a temporary solution and does not address the root cause of the vulnerability. It is strongly recommended to apply the official fix by updating the Linux Kernel.

Conclusion

The memory leak vulnerability in the NFC: st21nfca package can have severe consequences on system stability and performance. It is crucial to update the Linux Kernel to version v5.4.170 or later to mitigate this issue. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a memory leak, causing system instability, performance degradation, and potential denial-of-service conditions.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the playground will provide real-time alerts for open-source vulnerabilities.

Yes, a temporary workaround is to unload and reload the st21nfca module manually. However, it is recommended to apply the official fix by updating the Linux Kernel.

The vulnerability was introduced in version v3.16 of the Linux Kernel and is fixed in version v5.4.170 or later.

You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) entry GSD-2022-1000029 at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000029.json

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