Bug 2347972 (CVE-2022-49455) - CVE-2022-49455 kernel: misc: ocxl: fix possible double free in ocxl_file_register_afu
Summary: CVE-2022-49455 kernel: misc: ocxl: fix possible double free in ocxl_file_regi...
Keywords:
Status: NEW
Alias: CVE-2022-49455
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:13 UTC by OSIDB Bzimport
Modified: 2025-02-26 15:59 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:13:09 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 11:28:41 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022600-CVE-2022-49455-a338@gregkh/T

Comment 2 Avinash Hanwate 2025-02-26 15:48:54 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022600-CVE-2022-49455-a338@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.