CVE-2026-139025

media: vivid: cancel svid ctrl work on release

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

media: vivid: cancel svid ctrl work on release

vivid_dev_release() cancels update_hdmi_ctrl_work but not its sibling
update_svid_ctrl_work, which vivid_vid_cap_s_ctrl() queues on
update_svid_ctrls_workqueue when a VIVID_CID_SVID_IS_CONNECTED_TO_OUTPUT
control is changed. The two work items were added together, but only
one of them is cancelled on release.

If the svid work is still pending or running when the last v4l2_device
reference is dropped, update_svid_ctrls_work_handler() runs after
kfree(dev): the handler iterates the global vivid_devs[] array and
calls v4l2_ctrl_modify_range() on every vivid_dev instance, including
this one after it has been freed.

Add the missing cancel_work_sync() next to the hdmi sibling, before
vivid_free_controls() releases the control handlers the work uses.

This issue was found by an in-house static analysis tool.

Analysis

AI-generated

Technical impact

The affected kernel media driver fails to cancel a background work item that manipulates HDMI/SVID control states when a device is released. Because the work handler runs after the device structure has been freed, it performs a control range modification on an invalid pointer. This classic use‑after‑free condition can corrupt kernel memory and, in the worst case, allow an attacker to execute arbitrary code with kernel privileges. The weakness originates from missing synchronization between device release and background work completion.

Affected Systems

All Linux kernel implementations that ship the VIVID media driver before the patch is applied. The issue is present in the generic Linux kernel vendor and does not affect application‑level software directly beyond those systems that load the kernel module.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA KEV, but the nature of the flaw—kernel memory corruption via a use‑after‑free—suggests high severity. The attack vector would involve manipulating VIVID_CID_SVID_IS_CONNECTED_TO_OUTPUT controls, which can be exercised by any user with access to the device node or by a compromised application. No public exploit is known yet, however, the required conditions are readily achievable on affected systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Obtain and apply the kernel update that adds a cancel_work_sync call for the SVID control work item (the fix is distributed in the upstream commit series referenced in the advisory).
  • Reboot the system into the updated kernel version to ensure the patch takes effect.
  • After reboot, exercise typical VIVID driver operations—particularly toggling the SVID connection controls—to verify that no use‑after‑free errors occur and monitor system logs for any related warnings.

Generated by OpenCVE AI on November 30, 2026 at 18:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: vivid: cancel svid ctrl work on release vivid_dev_release() cancels update_hdmi_ctrl_work but not its sibling update_svid_ctrl_work, which vivid_vid_cap_s_ctrl() queues on update_svid_ctrls_workqueue when a VIVID_CID_SVID_IS_CONNECTED_TO_OUTPUT control is changed. The two work items were added together, but only one of them is cancelled on release. If the svid work is still pending or running when the last v4l2_device reference is dropped, update_svid_ctrls_work_handler() runs after kfree(dev): the handler iterates the global vivid_devs[] array and calls v4l2_ctrl_modify_range() on every vivid_dev instance, including this one after it has been freed. Add the missing cancel_work_sync() next to the hdmi sibling, before vivid_free_controls() releases the control handlers the work uses. This issue was found by an in-house static analysis tool.
Title media: vivid: cancel svid ctrl work on release
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM