CVE-2022-50742
misc: ocxl: fix possible refcount leak in afu_ioctl()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 060146614643ddc5978c73ffac0329762b4651c9, < fc797285c40a9cc441357abb3521d3e51c743f67; >= 060146614643ddc5978c73ffac0329762b4651c9, < 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; >= 060146614643ddc5978c73ffac0329762b4651c9, < 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; >= 060146614643ddc5978c73ffac0329762b4651c9, < 843433a02e344d30fbb62dfd834c60631baaa527; >= 060146614643ddc5978c73ffac0329762b4651c9, < 66032c43291672bae8b93184d2806f05be3e16df; >= 060146614643ddc5978c73ffac0329762b4651c9, < c3b69ba5114c860d730870c03ab4ee45276e5e35
- Anyone running Linux 5.2
Vulnerability facts
- Affected
- Linux >= 060146614643ddc5978c73ffac0329762b4651c9, < fc797285c40a9cc441357abb3521d3e51c743f67; >= 060146614643ddc5978c73ffac0329762b4651c9, < 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; >= 060146614643ddc5978c73ffac0329762b4651c9, < 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; >= 060146614643ddc5978c73ffac0329762b4651c9, < 843433a02e344d30fbb62dfd834c60631baaa527; >= 060146614643ddc5978c73ffac0329762b4651c9, < 66032c43291672bae8b93184d2806f05be3e16df; >= 060146614643ddc5978c73ffac0329762b4651c9, < c3b69ba5114c860d730870c03ab4ee45276e5e35; Linux 5.2
- Fixed in
- Linux 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1, Linux 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07, Linux 843433a02e344d30fbb62dfd834c60631baaa527, Linux 66032c43291672bae8b93184d2806f05be3e16df
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 060146614643ddc5978c73ffac0329762b4651c9, < fc797285c40a9cc441357abb3521d3e51c743f67; >= 060146614643ddc5978c73ffac0329762b4651c9, < 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; >= 060146614643ddc5978c73ffac0329762b4651c9, < 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; >= 060146614643ddc5978c73ffac0329762b4651c9, < 843433a02e344d30fbb62dfd834c60631baaa527; >= 060146614643ddc5978c73ffac0329762b4651c9, < 66032c43291672bae8b93184d2806f05be3e16df; >= 060146614643ddc5978c73ffac0329762b4651c9, < c3b69ba5114c860d730870c03ab4ee45276e5e35 | — | cvelist |
| Linux | 5.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50742. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50742.md Affected: Linux >= 060146614643ddc5978c73ffac0329762b4651c9, < fc797285c40a9cc441357abb3521d3e51c743f67; >= 060146614643ddc5978c73ffac0329762b4651c9, < 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; >= 060146614643ddc5978c73ffac0329762b4651c9, < 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; >= 060146614643ddc5978c73f… Fixed in: Linux 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1, Linux 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07, Linux 843433a02e344d30fbb62dfd834c60631baaa527, Linux 66032c43291672bae8b93184d2806f05be3e16df Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- 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
FAQ
Is CVE-2022-50742 being exploited?
There is no confirmed exploitation: CVE-2022-50742 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50742?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2022-50742?
Linux >= 060146614643ddc5978c73ffac0329762b4651c9, < fc797285c40a9cc441357abb3521d3e51c743f67; >= 060146614643ddc5978c73ffac0329762b4651c9, < 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; >= 060146614643ddc5978c73ffac0329762b4651c9, < 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; >= 060146614643ddc5978c73ffac0329762b4651c9, < 843433a02e344d30fbb62dfd834c60631baaa527; >= 060146614643ddc5978c73ffac0329762b4651c9, < 66032c43291672bae8b93184d2806f05be3e16df; >= 060146614643ddc5978c73ffac0329762b4651c9, < c3b69ba5114c860d730870c03ab4ee45276e5e35; Linux 5.2.
Is there a fix for CVE-2022-50742?
Yes. Fixed in Linux 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1, Linux 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07, Linux 843433a02e344d30fbb62dfd834c60631baaa527, Linux 66032c43291672bae8b93184d2806f05be3e16df. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-50742?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.