CVE-2022-49455 Details
Description
In the Linux kernel, the following vulnerability has been resolved: misc: ocxl: fix possible double free in ocxl_file_register_afu info_release() will be called in device_unregister() when info->dev's reference count is 0. So there is no need to call ocxl_afu_put() and kfree() again. Fix this by adding free_minor() and return to err_unregister error path.
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/252768d32e92c1214aeebb5fec0844ca479bcf5c | kernel.org | Patch |
| https://git.kernel.org/stable/c/8fb674216835e1f0c143762696d645facebb4685 | kernel.org | Patch |
| https://git.kernel.org/stable/c/950cf957fe34d40d63dfa3bf3968210430b6491e | kernel.org | Patch |
| https://git.kernel.org/stable/c/9e9087cf34ee69f4e95d146ac29385d6e367a97b | kernel.org | Patch |
| https://git.kernel.org/stable/c/de65c32ace9aa70d51facc61ba986607075e3a25 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ee89d8dee55ab4b3b8ad8b70866b2841ba334767 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-415 | Double Free | [email protected] |
| CWE-415 | Double Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.2, < 5.4.198 >= 5.5, < 5.10.121 >= 5.11, < 5.15.46 >= 5.16, < 5.17.14 >= 5.18, < 5.18.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 17, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |