{"id":"CVE-2026-139025","state":"PUBLISHED","title":"media: vivid: cancel svid ctrl work on release","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vivid: cancel svid ctrl work on release\n\nvivid_dev_release() cancels update_hdmi_ctrl_work but not its sibling\nupdate_svid_ctrl_work, which vivid_vid_cap_s_ctrl() queues on\nupdate_svid_ctrls_workqueue when a VIVID_CID_SVID_IS_CONNECTED_TO_OUTPUT\ncontrol is changed. The two work items were added together, but only\none of them is cancelled on release.\n\nIf the svid work is still pending or running when the last v4l2_device\nreference is dropped, update_svid_ctrls_work_handler() runs after\nkfree(dev): the handler iterates the global vivid_devs[] array and\ncalls v4l2_ctrl_modify_range() on every vivid_dev instance, including\nthis one after it has been freed.\n\nAdd the missing cancel_work_sync() next to the hdmi sibling, before\nvivid_free_controls() releases the control handlers the work uses.\n\nThis issue was found by an in-house static analysis tool.","publishedAt":"2026-11-30T13:27:10.508Z","updatedAt":"2026-11-30T13:27:10.508Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"285eb18ef6cfd494d9a41a98635779dd29c73f29","versionType":"git"},{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"f16b697c94756db9a3bddc41c30f00b3b2332977","versionType":"git"},{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"8ae62dd7e3b933862b34216c3f832a0c278f4be3","versionType":"git"},{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"1adaefca7111235ff0a2219dd4899ac24601d6e8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/test-drivers/vivid/vivid-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/test-drivers/vivid/vivid-core.c"]}],"references":["https://git.kernel.org/stable/c/285eb18ef6cfd494d9a41a98635779dd29c73f29","https://git.kernel.org/stable/c/f16b697c94756db9a3bddc41c30f00b3b2332977","https://git.kernel.org/stable/c/8ae62dd7e3b933862b34216c3f832a0c278f4be3","https://git.kernel.org/stable/c/1adaefca7111235ff0a2219dd4899ac24601d6e8"],"weaknesses":[],"ingestedAt":"2026-11-30T13:40:04.421Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139025.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139025","state":"PUBLISHED","datePublished":"2026-11-30T13:27:10.508Z","dateUpdated":"2026-11-30T13:27:10.508Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.909Z"},"containers":{"cna":{"title":"media: vivid: cancel svid ctrl work on release","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vivid: cancel svid ctrl work on release\n\nvivid_dev_release() cancels update_hdmi_ctrl_work but not its sibling\nupdate_svid_ctrl_work, which vivid_vid_cap_s_ctrl() queues on\nupdate_svid_ctrls_workqueue when a VIVID_CID_SVID_IS_CONNECTED_TO_OUTPUT\ncontrol is changed. The two work items were added together, but only\none of them is cancelled on release.\n\nIf the svid work is still pending or running when the last v4l2_device\nreference is dropped, update_svid_ctrls_work_handler() runs after\nkfree(dev): the handler iterates the global vivid_devs[] array and\ncalls v4l2_ctrl_modify_range() on every vivid_dev instance, including\nthis one after it has been freed.\n\nAdd the missing cancel_work_sync() next to the hdmi sibling, before\nvivid_free_controls() releases the control handlers the work uses.\n\nThis issue was found by an in-house static analysis tool."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"285eb18ef6cfd494d9a41a98635779dd29c73f29","versionType":"git"},{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"f16b697c94756db9a3bddc41c30f00b3b2332977","versionType":"git"},{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"8ae62dd7e3b933862b34216c3f832a0c278f4be3","versionType":"git"},{"version":"d7c969f37515d78dc1a026d12b94b90e319a5a61","status":"affected","lessThan":"1adaefca7111235ff0a2219dd4899ac24601d6e8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/test-drivers/vivid/vivid-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/test-drivers/vivid/vivid-core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/285eb18ef6cfd494d9a41a98635779dd29c73f29"},{"url":"https://git.kernel.org/stable/c/f16b697c94756db9a3bddc41c30f00b3b2332977"},{"url":"https://git.kernel.org/stable/c/8ae62dd7e3b933862b34216c3f832a0c278f4be3"},{"url":"https://git.kernel.org/stable/c/1adaefca7111235ff0a2219dd4899ac24601d6e8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:10.508Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}