# CVE-2022-49455: misc: ocxl: fix possible double free in ocxl_file_register_afu

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:04.116Z
- Modified: 2026-06-17T05:18:06.070Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 75ca758adbafc81804c39b2c200ecdc819a6c042 before de65c32ace9aa70d51facc61ba986607075e3a25; from 75ca758adbafc81804c39b2c200ecdc819a6c042 before ee89d8dee55ab4b3b8ad8b70866b2841ba334767; from 75ca758adbafc81804c39b2c200ecdc819a6c042 before 8fb674216835e1f0c143762696d645facebb4685; from 75ca758adbafc81804c39b2c200ecdc819a6c042 before 252768d32e92c1214aeebb5fec0844ca479bcf5c; from 75ca758adbafc81804c39b2c200ecdc819a6c042 before 9e9087cf34ee69f4e95d146ac29385d6e367a97b; from 75ca758adbafc81804c39b2c200ecdc819a6c042 before 950cf957fe34d40d63dfa3bf3968210430b6491e; 5.2 (not affected: before 5.2; from 5.4.198 up to 5.4.*; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.2 before 5.4.198; from 5.5 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/de65c32ace9aa70d51facc61ba986607075e3a25> (patch)
- <https://git.kernel.org/stable/c/ee89d8dee55ab4b3b8ad8b70866b2841ba334767> (patch)
- <https://git.kernel.org/stable/c/8fb674216835e1f0c143762696d645facebb4685> (patch)
- <https://git.kernel.org/stable/c/252768d32e92c1214aeebb5fec0844ca479bcf5c> (patch)
- <https://git.kernel.org/stable/c/9e9087cf34ee69f4e95d146ac29385d6e367a97b> (patch)
- <https://git.kernel.org/stable/c/950cf957fe34d40d63dfa3bf3968210430b6491e> (patch)

## Sources

- CVE List: [CVE-2022-49455](https://www.cve.org/CVERecord?id=CVE-2022-49455), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49455](https://nvd.nist.gov/vuln/detail/CVE-2022-49455), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49455 · Whole record: https://cve.day/CVE-2022-49455.json · Rebuilt by cve.day 2026-11-25T22:58:20.668Z
