CVE-2022-50742

published 24 Dec 2025 · updated 12 Nov 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fc797285c40a9cc441357abb3521d3e51c743f67, Kernel 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07, Kernel 66032c43291672bae8b93184d2806f05be3e16df and 8 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=060146614643ddc5978c73ffac0329762b4651c9 <fc797285c40a9cc441357abb3521d3e51c743f67, >=060146614643ddc5978c73ffac0329762b4651c9 <11bd8bbdf8f6f5c1145bb158793107a57e3a1f07, >=060146614643ddc5978c73ffac0329762b4651c9 <66032c43291672bae8b93184d2806f05be3e16df, >=060146614643ddc5978c73ffac0329762b4651c9 <7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1, >=060146614643ddc5978c73ffac0329762b4651c9 <843433a02e344d30fbb62dfd834c60631baaa527, >=060146614643ddc5978c73ffac0329762b4651c9 <c3b69ba5114c860d730870c03ab4ee45276e5e35, =5.2fc797285c40a9cc441357abb3521d3e51c743f67, 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07, 66032c43291672bae8b93184d2806f05be3e16df, 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1, 843433a02e344d30fbb62dfd834c60631baaa527, c3b69ba5114c860d730870c03ab4ee45276e5e35
linux-kernel: Kernel>=5.16.0 <5.19.17, >=5.2.0 <5.4.220, >=5.20.0 <6.0.3, >=5.5.0 <5.10.150, >=5.11.0 <5.15.755.19.17, 5.4.220, 6.0.3, 5.10.150, 5.15.75

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50742 severity on Zeptric[![CVE-2022-50742](https://zeptric.io/badge/cve/CVE-2022-50742.svg)](https://zeptric.io/cve/CVE-2022-50742)