Fix error handling path in idxd_cdev_register() in dmaengine: idxd
Summary
GSD-2022-1003564: dmaengine: idxd: Fix the error handling path in idxd_cdev_register(). Affects Kernel versions >= 42d279f9137ab7d5503836baec2739284b278d8f, < 6073af78156b8c3fc1198f8bcc190b7ac3ac0143. 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 dmaengine: idxd package is a component of the Linux Kernel that provides support for Intel Data Streaming Accelerator (Intel DSA) devices. These devices are used for high-performance data movement in various applications. The idxd_cdev_register() function is responsible for registering a character device for the idxd driver. This allows user-space applications to interact with the driver and utilize the capabilities of the Intel DSA devices.
Vulnerability Detail
The vulnerability in dmaengine: idxd lies in the error handling path of the idxd_cdev_register() function. When an error occurs during the registration process, the function fails to properly clean up resources, leading to a potential resource leak. This vulnerability could be exploited by an attacker to exhaust system resources and potentially cause a denial-of-service 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
There is no specific workaround provided for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel to the latest version.
Conclusion
In conclusion, the vulnerability in dmaengine: idxd's idxd_cdev_register() function can lead to resource leaks and potential denial-of-service conditions. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.10.121 or later. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
dmaengine: idxd is a component of the Linux Kernel that provides support for Intel Data Streaming Accelerator (Intel DSA) devices. These devices are used for high-performance data movement in various applications.
idxd_cdev_register() is a function in dmaengine: idxd that is responsible for registering a character device for the idxd driver. This allows user-space applications to interact with the driver and utilize the capabilities of the Intel DSA devices.
The impact of this vulnerability is the potential for resource leaks, which could lead to system resource exhaustion and a denial-of-service condition.
To fix this vulnerability, update the Linux Kernel to version v5.10.121 or later, which includes the necessary fix for the error handling path in idxd_cdev_register().
No specific workaround is provided for this vulnerability. It is recommended to update the Linux Kernel to the latest version.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.