CVE-2022-50786

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

No CVSS score yet EPSS 0.22%

Published 30 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50786

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50786 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 818cd91ab8c6e42c2658c8e61f8462637c6f586b, before 12242bd13ce68acd571b2cce6ab302e154e8a4ee
affected from 818cd91ab8c6e42c2658c8e61f8462637c6f586b, before 640075400c7c577b0f5369b935e22a588773fafa
affected from 818cd91ab8c6e42c2658c8e61f8462637c6f586b, before 8ff64edf9d16e8c277dcc8189794763624e6b4b8
affected from 818cd91ab8c6e42c2658c8e61f8462637c6f586b, before ff27800c0a6d81571671b33f696109804d015409
affected from 818cd91ab8c6e42c2658c8e61f8462637c6f586b, before 09c1fbbe532758e4046c20829f4c0c50b99332dc
affected from 818cd91ab8c6e42c2658c8e61f8462637c6f586b, before bd1b72f0c39a0d791a087b4e643701a48328ba8e
affected from 818cd91ab8c6e42c2658c8e61f8462637c6f586b, before d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b
Other versions: unaffected
Linux
affected 3.16
unaffected before 3.16
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.87 up to and including 5.15.*
unaffected from 6.0.18 up to and including 6.0.*
unaffected from 6.1.4 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50786 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50786

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50786
trivy image --scanners vuln IMAGE | grep CVE-2022-50786

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50786 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.