NFC: digital: Fix Possible Memory Leak in digital_in_send_sdd_req()
Summary
GSD-2021-1001793: NFC: digital: fix possible memory leak in digital_in_send_sdd_req(). Affects Kernel versions >= 2c66daecc4092e6049673c281b2e6f0d5e59a94c, < fcce6e5255474ca33c27dda0cdf9bf5087278873. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The NFC (Near Field Communication) digital module is a component of the Linux Kernel. It provides support for digital communication with NFC devices. The digital_in_send_sdd_req() function is responsible for sending a Secure Digital Device (SDD) request. However, a vulnerability has been identified in this function that could lead to a memory leak.
Vulnerability Detail
The vulnerability in digital_in_send_sdd_req() function could result in a memory leak. When the function is called, it may allocate memory but fail to deallocate it properly, leading to a memory leak. This can cause memory exhaustion over time, potentially impacting system performance and stability. The vulnerability was introduced in version v3.13 of the Linux Kernel and has been fixed in version v4.14.252.
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 NFC digital module in the Linux Kernel is vulnerable to a memory leak issue in the digital_in_send_sdd_req() function. This vulnerability can be mitigated by updating to version v4.14.252 or later of the Linux Kernel. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a memory leak, potentially causing memory exhaustion and impacting system performance and stability.
You can use Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and it will provide real-time alerts for open-source vulnerabilities, including this one.
There is no known exploit for this vulnerability at the moment. However, it is still important to apply the recommended fix to prevent any potential memory leaks.
Manually deallocating the memory may not be a reliable solution as it requires modifying the Linux Kernel code. It is recommended to update to the fixed version of the Linux Kernel.
There may be other vulnerabilities in the NFC digital module, but this specific report focuses on the memory leak issue in digital_in_send_sdd_req(). It is important to keep the Linux Kernel up to date to address any potential vulnerabilities.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.