USB cdnsp: NULL pointer dereference in cdnsp_endpoint_init()
Summary
GSD-2021-1002578: usb: cdnsp: Fix a NULL pointer dereference in cdnsp_endpoint_init(). Affects Kernel versions >= 3d82904559f4f5a2622db1b21de3edf2eded7664, < 7d94bc8e335cb33918e52efdbe192c36707bfa24. 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 USB cdnsp package is a component of the Linux Kernel, which is responsible for handling USB communication. It provides functionality for initializing and managing USB endpoints. Endpoints are logical channels through which USB devices exchange data with the host system. The cdnsp_endpoint_init() function is a critical part of the package that initializes a USB endpoint. However, a vulnerability exists in this function that can lead to a NULL pointer dereference.
Vulnerability Detail
The vulnerability in cdnsp_endpoint_init() occurs when a NULL pointer is dereferenced, meaning that the code tries to access or modify data using a pointer that points to nothing. This can result in a system crash or other unexpected behavior. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) attack by sending specially crafted USB packets to the affected system. The vulnerability was introduced in version v5.12 of the Linux Kernel and has been fixed in version v5.15.7.
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 known workaround for this vulnerability. It is essential to apply the fix by updating the Linux Kernel to a patched version.
Conclusion
The USB cdnsp package in the Linux Kernel is vulnerable to a NULL pointer dereference in the cdnsp_endpoint_init() function. This vulnerability can lead to system crashes and potential denial-of-service attacks. It is crucial to update the Linux Kernel to version v5.15.7 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a system crash or other unexpected behavior, potentially causing a denial-of-service (DoS) attack.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
Yes, an attacker can exploit this vulnerability remotely by sending specially crafted USB packets to the affected system.
Yes, the vulnerability has been fixed in version v5.15.7 of the Linux Kernel. It is recommended to update to this version or a later one.
There are no known instances of this vulnerability being exploited in the wild. However, it is still important to apply the fix to ensure the security and stability of the system.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.