Linux Kernel OCXL Double Free Vulnerability in AFU Info Release Handling

Vulnerability

A double free vulnerability has been identified in the Linux kernel's OCXL (OpenCAPI Express Layer) component. The issue arises in the 'ocxl_file_register_afuinfo_release' function, which is called during device unregistration when the reference count of 'info->dev' is zero. This situation creates an unnecessary double free condition, as 'ocxl_afu_put()' and 'kfree()' are called redundantly. The vulnerability has been addressed by modifying the error handling path to include a call to 'free_minor()' before returning, preventing the double free scenario.

Impact

Exploitation of this vulnerability could lead to memory corruption issues, commonly associated with double free vulnerabilities, which can be exploited to execute arbitrary code or cause a denial of service by crashing the system.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.