# CVE-2022-50786: media: s5p-mfc: Clear workbit to handle error condition

> 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-30T12:03:22.909Z
- **Modified:** 2026-06-17T05:24:10.703Z

## Who should check

- Anyone running Linux \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 12242bd13ce68acd571b2cce6ab302e154e8a4ee; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 640075400c7c577b0f5369b935e22a588773fafa; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 8ff64edf9d16e8c277dcc8189794763624e6b4b8; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< ff27800c0a6d81571671b33f696109804d015409; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 09c1fbbe532758e4046c20829f4c0c50b99332dc; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< bd1b72f0c39a0d791a087b4e643701a48328ba8e; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b
- Anyone running Linux 3.16

## Description

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

media: s5p-mfc: Clear workbit to handle error condition

During error on CLOSE\_INSTANCE command, ctx\_work\_bits was not getting
cleared. During consequent mfc execution NULL pointer dereferencing of
this context led to kernel panic. This patch fixes this issue by making
sure to clear ctx\_work\_bits always.

## Affected and fixed versions

- Linux: \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 12242bd13ce68acd571b2cce6ab302e154e8a4ee; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 640075400c7c577b0f5369b935e22a588773fafa; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 8ff64edf9d16e8c277dcc8189794763624e6b4b8; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< ff27800c0a6d81571671b33f696109804d015409; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 09c1fbbe532758e4046c20829f4c0c50b99332dc; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< bd1b72f0c39a0d791a087b4e643701a48328ba8e; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b (cvelist)
- Linux: 3.16 (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-50786. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50786.md
Affected: Linux >= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, < 12242bd13ce68acd571b2cce6ab302e154e8a4ee; >= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, < 640075400c7c577b0f5369b935e22a588773fafa; >= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, < 8ff64edf9d16e8c277dcc8189794763624e6b4b8; >= 818cd91ab8c6e42c2658c8e…
Fixed in: Linux 12242bd13ce68acd571b2cce6ab302e154e8a4ee, Linux 640075400c7c577b0f5369b935e22a588773fafa, Linux 8ff64edf9d16e8c277dcc8189794763624e6b4b8, Linux 09c1fbbe532758e4046c20829f4c0c50b99332dc

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-50786 being exploited?

There is no confirmed exploitation: CVE-2022-50786 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-50786?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50786?

Linux \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 12242bd13ce68acd571b2cce6ab302e154e8a4ee; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 640075400c7c577b0f5369b935e22a588773fafa; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 8ff64edf9d16e8c277dcc8189794763624e6b4b8; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< ff27800c0a6d81571671b33f696109804d015409; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< 09c1fbbe532758e4046c20829f4c0c50b99332dc; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< bd1b72f0c39a0d791a087b4e643701a48328ba8e; \>= 818cd91ab8c6e42c2658c8e61f8462637c6f586b, \< d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b; Linux 3.16.

### Is there a fix for CVE-2022-50786?

Yes. Fixed in Linux 12242bd13ce68acd571b2cce6ab302e154e8a4ee, Linux 640075400c7c577b0f5369b935e22a588773fafa, Linux 8ff64edf9d16e8c277dcc8189794763624e6b4b8, Linux 09c1fbbe532758e4046c20829f4c0c50b99332dc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50786?

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/12242bd13ce68acd571b2cce6ab302e154e8a4ee>
- other: <https://git.kernel.org/stable/c/640075400c7c577b0f5369b935e22a588773fafa>
- other: <https://git.kernel.org/stable/c/8ff64edf9d16e8c277dcc8189794763624e6b4b8>
- other: <https://git.kernel.org/stable/c/ff27800c0a6d81571671b33f696109804d015409>
- other: <https://git.kernel.org/stable/c/09c1fbbe532758e4046c20829f4c0c50b99332dc>
- other: <https://git.kernel.org/stable/c/bd1b72f0c39a0d791a087b4e643701a48328ba8e>
- other: <https://git.kernel.org/stable/c/d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b>

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

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