media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog

Summary

CVECVE-2026-142797
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 04:18:13 UTC
Updated2026-12-03 04:18:13 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog The MFC watchdog timer (s5p_mfc_watchdog) is self-rearming: every callback re-arms itself with add_timer() and, on a timeout, schedules watchdog_work. s5p_mfc_remove() tears this down with timer_delete_sync() followed by flush_work(). timer_delete_sync() dequeues the timer and waits for a callback that is already running, but it does not prevent a subsequent re-arm. Because the watchdog callback re-arms via add_timer(), this is the wrong shutdown primitive: once the wait returns nothing guarantees a just-queued re-arm will not fire later, dereferencing dev (clock on/off, deinit_hw, load_firmware, init_hw) after video_unregister_device(), DMA teardown and s5p_mfc_final_pm() have run, a potential use-after-free. Use timer_shutdown_sync(), which puts the timer into a shutdown state so that any add_timer()/mod_timer() from the callback becomes a no-op and no later firing is possible. Switch flush_work() to cancel_work_sync() so any watchdog_work that was already queued before the timer was stopped is cancelled rather than allowed to run to completion against the torn-down device. This issue was found by an in-house static analysis tool. No runtime reproducer is available.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected af935746781088f28904601469671d244d2f653b 15791df50a873f772128f35a6b85e92eb6f62851 git Not specified
CNA Linux Linux affected af935746781088f28904601469671d244d2f653b a8b38867e2a25d82647716ded6a008dcc54869a3 git Not specified
CNA Linux Linux affected af935746781088f28904601469671d244d2f653b b465be8e5dd8ec8aa08658c8c43dcd80b20ed160 git Not specified
CNA Linux Linux affected af935746781088f28904601469671d244d2f653b e95e9efdbe0d0da90f9582396aefed921d2133bb git Not specified
CNA Linux Linux affected af935746781088f28904601469671d244d2f653b e848c0bd189bd41189f20249a4d71895ff884f40 git Not specified
CNA Linux Linux affected af935746781088f28904601469671d244d2f653b b81d7da262d9c13b3997966536fa73b9a8252832 git Not specified
CNA Linux Linux affected af935746781088f28904601469671d244d2f653b 63069b5917cba2e15b1a78b3f4ff99e45102c56f git Not specified
CNA Linux Linux affected 3.1 Not specified
CNA Linux Linux unaffected 3.1 semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.61 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.2 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/63069b5917cba2e15b1a78b3f4ff99e45102c56f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a8b38867e2a25d82647716ded6a008dcc54869a3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e95e9efdbe0d0da90f9582396aefed921d2133bb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b465be8e5dd8ec8aa08658c8c43dcd80b20ed160 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e848c0bd189bd41189f20249a4d71895ff884f40 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/15791df50a873f772128f35a6b85e92eb6f62851 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b81d7da262d9c13b3997966536fa73b9a8252832 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report