Double Free Vulnerability in ocxl

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1002729: misc: ocxl: fix possible double free in ocxl_file_register_afu. Affects Kernel versions >= 75ca758adbafc81804c39b2c200ecdc819a6c042, < 9e9087cf34ee69f4e95d146ac29385d6e367a97b. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

ocxl is a component in the Linux Kernel that provides support for Open Coherent Accelerator Processor Interfaces (OpenCAPI). It allows users to register Accelerator Function Units (AFUs) and communicate with them. The ocxl_file_register_afu function is responsible for registering an AFU file. However, a vulnerability has been discovered in this function that could lead to a double free issue.

Vulnerability Detail

The vulnerability in ocxl_file_register_afu arises from a possible double free scenario. When registering an AFU file, there is a chance that memory is freed twice, leading to undefined behavior. This vulnerability could potentially be exploited by an attacker to execute arbitrary code or cause a denial of service.

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 provided fix by updating the Linux Kernel to a patched version.

Conclusion

The double free vulnerability in ocxl_file_register_afu can be mitigated by updating the Linux Kernel to a patched version. It is crucial to apply this fix to ensure the security and stability of systems utilizing ocxl. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ocxl is a component in the Linux Kernel that provides support for Open Coherent Accelerator Processor Interfaces (OpenCAPI). It allows users to register Accelerator Function Units (AFUs) and communicate with them.

ocxl_file_register_afu is a function in ocxl that is responsible for registering an AFU file. It is used to establish communication with an AFU.

A double free vulnerability occurs when a program attempts to free the same memory location twice. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial of service.

This vulnerability could potentially be exploited by an attacker to execute arbitrary code or cause a denial of service.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.18.3 or later. This update includes the necessary patch to address the double free issue in ocxl_file_register_afu.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback