VYPR
Unrated severityNVD Advisory· Published Dec 30, 2025· Updated Apr 15, 2026

CVE-2022-50786

CVE-2022-50786

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

In the Linux kernel's s5p-mfc driver, an error during CLOSE_INSTANCE leaves ctx_work_bits set, leading to a NULL pointer dereference and kernel panic.

Root

Cause

In the Linux kernel's s5p-mfc (Samsung Multi Format Codec ) driver, when a CLOSE_INSTANCE command fails, the ctx_work_bits flag was not cleared. This oversight means that the driver's work queue still believes the context has pending work, even though the context itself may have been freed or invalidated [1][2].

Exploitation

An attacker with the ability to trigger a CLOSE_INSTANCE error on a vulnerable system can cause the driver to later attempt to process work on a stale or freed context. No special privileges beyond local access to the media device are required; the attack surface is the MFC device interface exposed to user space [3][4].

Impact

When the driver subsequently tries to execute work for the un-cleared context, it dereferences a NULL pointer, resulting in a kernel panic. This constitutes a denial-of-service condition can crash the entire system, making it unavailable until reboot [1][4].

Mitigation

The fix, already merged into the stable kernel tree, ensures that ctx_work_bits is always cleared, even on error paths. Users should apply the latest kernel updates from their distribution or directly cherry-pick the commit [2][3].

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

7

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.