# CVE-2022-50742: misc: ocxl: fix possible refcount leak in afu\_ioctl()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T13:05:39.566Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 060146614643ddc5978c73ffac0329762b4651c9, \< fc797285c40a9cc441357abb3521d3e51c743f67; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 843433a02e344d30fbb62dfd834c60631baaa527; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 66032c43291672bae8b93184d2806f05be3e16df; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< c3b69ba5114c860d730870c03ab4ee45276e5e35
- Anyone running Linux 5.2

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

- Linux: \>= 060146614643ddc5978c73ffac0329762b4651c9, \< fc797285c40a9cc441357abb3521d3e51c743f67; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 843433a02e344d30fbb62dfd834c60631baaa527; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< 66032c43291672bae8b93184d2806f05be3e16df; \>= 060146614643ddc5978c73ffac0329762b4651c9, \< c3b69ba5114c860d730870c03ab4ee45276e5e35 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50742>

HTML: <https://flawdb.com/CVE-2022-50742> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50742>
