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

- 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.22%, higher than 13% of CVEs (2026-12-02)
- Published: 2025-12-30T12:03:22.909Z
- Modified: 2026-06-17T05:24:10.703Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 818cd91ab8c6e42c2658c8e61f8462637c6f586b before 12242bd13ce68acd571b2cce6ab302e154e8a4ee; from 818cd91ab8c6e42c2658c8e61f8462637c6f586b before 640075400c7c577b0f5369b935e22a588773fafa; from 818cd91ab8c6e42c2658c8e61f8462637c6f586b before 8ff64edf9d16e8c277dcc8189794763624e6b4b8; from 818cd91ab8c6e42c2658c8e61f8462637c6f586b before ff27800c0a6d81571671b33f696109804d015409; from 818cd91ab8c6e42c2658c8e61f8462637c6f586b before 09c1fbbe532758e4046c20829f4c0c50b99332dc; from 818cd91ab8c6e42c2658c8e61f8462637c6f586b before bd1b72f0c39a0d791a087b4e643701a48328ba8e; from 818cd91ab8c6e42c2658c8e61f8462637c6f586b before d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b; 3.16 (not affected: before 3.16; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.87 up to 5.15.*; from 6.0.18 up to 6.0.*; from 6.1.4 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/12242bd13ce68acd571b2cce6ab302e154e8a4ee>
- <https://git.kernel.org/stable/c/640075400c7c577b0f5369b935e22a588773fafa>
- <https://git.kernel.org/stable/c/8ff64edf9d16e8c277dcc8189794763624e6b4b8>
- <https://git.kernel.org/stable/c/ff27800c0a6d81571671b33f696109804d015409>
- <https://git.kernel.org/stable/c/09c1fbbe532758e4046c20829f4c0c50b99332dc>
- <https://git.kernel.org/stable/c/bd1b72f0c39a0d791a087b4e643701a48328ba8e>
- <https://git.kernel.org/stable/c/d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b>

## Sources

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

---

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