Double Free Vulnerability in ocxl
Summary
GSD-2022-1003344: misc: ocxl: fix possible double free in ocxl_file_register_afu. Affects Kernel versions >= 75ca758adbafc81804c39b2c200ecdc819a6c042, < 8fb674216835e1f0c143762696d645facebb4685. 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 ocxl package is a component of the Linux Kernel that provides support for Open Coherent Accelerator Processor Interface (OpenCAPI) devices. OpenCAPI is a high-performance bus interface that allows accelerators, such as Field Programmable Gate Arrays (FPGAs), to be connected to the CPU. The ocxl_file_register_afu function in ocxl is responsible for registering an Accelerator Function Unit (AFU) with the kernel. This function is vulnerable to a double free issue, which can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service.
Vulnerability Detail
The double free vulnerability in ocxl_file_register_afu occurs when the function attempts to free a previously allocated memory block twice. This can be exploited by an attacker to manipulate the freed memory and potentially execute arbitrary code. The vulnerability was introduced in version v5.2 of the Linux Kernel and was fixed in version v5.15.46. 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 known workaround for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel.
Conclusion
The double free vulnerability in ocxl_file_register_afu can lead to memory corruption and potential code execution. It is crucial to update the Linux Kernel to version v5.15.46 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
ocxl is a component of the Linux Kernel that provides support for Open Coherent Accelerator Processor Interface (OpenCAPI) devices. It allows accelerators, such as FPGAs, to be connected to the CPU.
The double free vulnerability in ocxl can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service.
To fix this vulnerability, update the Linux Kernel to version v5.15.46 or later, which includes the necessary fix for ocxl_file_register_afu.
There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel.
Users can obtain the updated Linux Kernel from the official Linux Kernel repository: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.