{"id":"CVE-2026-142797","summary":"media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog\n\nThe MFC watchdog timer (s5p_mfc_watchdog) is self-rearming: every\ncallback re-arms itself with add_timer() and, on a timeout, schedules\nwatchdog_work. s5p_mfc_remove() tears this down with timer_delete_sync()\nfollowed by flush_work().\n\ntimer_delete_sync() dequeues the timer and waits for a callback that is\nalready running, but it does not prevent a subsequent re-arm. Because the\nwatchdog callback re-arms via add_timer(), this is the wrong shutdown\nprimitive: once the wait returns nothing guarantees a just-queued re-arm\nwill not fire later, dereferencing dev (clock on/off, deinit_hw,\nload_firmware, init_hw) after video_unregister_device(), DMA teardown and\ns5p_mfc_final_pm() have run, a potential use-after-free.\n\nUse timer_shutdown_sync(), which puts the timer into a shutdown state so\nthat any add_timer()/mod_timer() from the callback becomes a no-op and no\nlater firing is possible. Switch flush_work() to cancel_work_sync() so any\nwatchdog_work that was already queued before the timer was stopped is\ncancelled rather than allowed to run to completion against the torn-down\ndevice.\n\nThis issue was found by an in-house static analysis tool. No runtime\nreproducer is available.","modified":"2026-12-03T05:00:40.900559711Z","published":"2026-12-03T03:11:28.804Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142797.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/15791df50a873f772128f35a6b85e92eb6f62851"},{"type":"WEB","url":"https://git.kernel.org/stable/c/63069b5917cba2e15b1a78b3f4ff99e45102c56f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8b38867e2a25d82647716ded6a008dcc54869a3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b465be8e5dd8ec8aa08658c8c43dcd80b20ed160"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b81d7da262d9c13b3997966536fa73b9a8252832"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e848c0bd189bd41189f20249a4d71895ff884f40"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e95e9efdbe0d0da90f9582396aefed921d2133bb"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142797.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142797"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"af935746781088f28904601469671d244d2f653b"},{"fixed":"15791df50a873f772128f35a6b85e92eb6f62851"},{"fixed":"a8b38867e2a25d82647716ded6a008dcc54869a3"},{"fixed":"b465be8e5dd8ec8aa08658c8c43dcd80b20ed160"},{"fixed":"e95e9efdbe0d0da90f9582396aefed921d2133bb"},{"fixed":"e848c0bd189bd41189f20249a4d71895ff884f40"},{"fixed":"b81d7da262d9c13b3997966536fa73b9a8252832"},{"fixed":"63069b5917cba2e15b1a78b3f4ff99e45102c56f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142797.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142797.json"}}],"schema_version":"1.9.2"}