# CVE-2022-50742: misc: ocxl: fix possible refcount leak in afu_ioctl()

- Severity: not scored yet
- 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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-12-24T13:05:39.566Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

misc: ocxl: fix possible refcount leak in afu_ioctl()

eventfd_ctx_put need to be called to put the refcount that gotten by
eventfd_ctx_fdget when ocxl_irq_set_handler fails.

(As written by CVE List.)

## Affected

- Linux Linux: from 060146614643ddc5978c73ffac0329762b4651c9 before fc797285c40a9cc441357abb3521d3e51c743f67; from 060146614643ddc5978c73ffac0329762b4651c9 before 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; from 060146614643ddc5978c73ffac0329762b4651c9 before 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; from 060146614643ddc5978c73ffac0329762b4651c9 before 843433a02e344d30fbb62dfd834c60631baaa527; from 060146614643ddc5978c73ffac0329762b4651c9 before 66032c43291672bae8b93184d2806f05be3e16df; from 060146614643ddc5978c73ffac0329762b4651c9 before c3b69ba5114c860d730870c03ab4ee45276e5e35; 5.2 (not affected: before 5.2; from 5.4.220 up to 5.4.*; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/fc797285c40a9cc441357abb3521d3e51c743f67>
- <https://git.kernel.org/stable/c/7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1>
- <https://git.kernel.org/stable/c/11bd8bbdf8f6f5c1145bb158793107a57e3a1f07>
- <https://git.kernel.org/stable/c/843433a02e344d30fbb62dfd834c60631baaa527>
- <https://git.kernel.org/stable/c/66032c43291672bae8b93184d2806f05be3e16df>
- <https://git.kernel.org/stable/c/c3b69ba5114c860d730870c03ab4ee45276e5e35>

## Sources

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

---

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