CVE-2022-49455

misc: ocxl: fix possible double free in ocxl_file_register_afu

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 02:13 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.465.16 ≤ v < 5.17.145.18 ≤ v < 5.18.35.2 ≤ v < 5.10.1215.2 ≤ v < 5.15.465.2 ≤ v < 5.17.145.2 ≤ v < 5.18.35.2 ≤ v < 5.195.2 ≤ v < 5.4.1985.5 ≤ v < 5.10.1215.275ca758adbafc81804c39b2c200ecdc819a6c042
Vendor states this is fixed in 252768d32e92c1214aeebb5fec0844ca479bcf5c (fixed)
Vendor states this is fixed in 8fb674216835e1f0c143762696d645facebb4685 (fixed)
Vendor states this is fixed in 950cf957fe34d40d63dfa3bf3968210430b6491e (fixed)
Vendor states this is fixed in 9e9087cf34ee69f4e95d146ac29385d6e367a97b (fixed)
Vendor states this is fixed in de65c32ace9aa70d51facc61ba986607075e3a25 (fixed)
Vendor states this is fixed in ee89d8dee55ab4b3b8ad8b70866b2841ba334767 (fixed)
Vendor states this is fixed in 5.10.121 (unaffected)
Vendor states this is fixed in 5.15.46 (unaffected)
Vendor states this is fixed in 5.17.14 (unaffected)
Vendor states this is fixed in 5.18.3 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.2 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/252768d32e92c1214aeebb5fec0844ca479bcf5c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8fb674216835e1f0c143762696d645facebb4685
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/950cf957fe34d40d63dfa3bf3968210430b6491e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9e9087cf34ee69f4e95d146ac29385d6e367a97b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/de65c32ace9aa70d51facc61ba986607075e3a25
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ee89d8dee55ab4b3b8ad8b70866b2841ba334767

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card