{"api_version":"1","generated_at":"2026-12-03T05:32:30+00:00","cve":"CVE-2026-142797","urls":{"html":"https://cve.report/CVE-2026-142797","api":"https://cve.report/api/cve/CVE-2026-142797.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142797","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142797"},"summary":{"title":"media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:13","updated_at":"2026-12-03 04:18:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/63069b5917cba2e15b1a78b3f4ff99e45102c56f","name":"https://git.kernel.org/stable/c/63069b5917cba2e15b1a78b3f4ff99e45102c56f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a8b38867e2a25d82647716ded6a008dcc54869a3","name":"https://git.kernel.org/stable/c/a8b38867e2a25d82647716ded6a008dcc54869a3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e95e9efdbe0d0da90f9582396aefed921d2133bb","name":"https://git.kernel.org/stable/c/e95e9efdbe0d0da90f9582396aefed921d2133bb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b465be8e5dd8ec8aa08658c8c43dcd80b20ed160","name":"https://git.kernel.org/stable/c/b465be8e5dd8ec8aa08658c8c43dcd80b20ed160","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e848c0bd189bd41189f20249a4d71895ff884f40","name":"https://git.kernel.org/stable/c/e848c0bd189bd41189f20249a4d71895ff884f40","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/15791df50a873f772128f35a6b85e92eb6f62851","name":"https://git.kernel.org/stable/c/15791df50a873f772128f35a6b85e92eb6f62851","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b81d7da262d9c13b3997966536fa73b9a8252832","name":"https://git.kernel.org/stable/c/b81d7da262d9c13b3997966536fa73b9a8252832","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142797","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142797","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected af935746781088f28904601469671d244d2f653b 15791df50a873f772128f35a6b85e92eb6f62851 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected af935746781088f28904601469671d244d2f653b a8b38867e2a25d82647716ded6a008dcc54869a3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected af935746781088f28904601469671d244d2f653b b465be8e5dd8ec8aa08658c8c43dcd80b20ed160 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected af935746781088f28904601469671d244d2f653b e95e9efdbe0d0da90f9582396aefed921d2133bb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected af935746781088f28904601469671d244d2f653b e848c0bd189bd41189f20249a4d71895ff884f40 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected af935746781088f28904601469671d244d2f653b b81d7da262d9c13b3997966536fa73b9a8252832 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected af935746781088f28904601469671d244d2f653b 63069b5917cba2e15b1a78b3f4ff99e45102c56f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"15791df50a873f772128f35a6b85e92eb6f62851","status":"affected","version":"af935746781088f28904601469671d244d2f653b","versionType":"git"},{"lessThan":"a8b38867e2a25d82647716ded6a008dcc54869a3","status":"affected","version":"af935746781088f28904601469671d244d2f653b","versionType":"git"},{"lessThan":"b465be8e5dd8ec8aa08658c8c43dcd80b20ed160","status":"affected","version":"af935746781088f28904601469671d244d2f653b","versionType":"git"},{"lessThan":"e95e9efdbe0d0da90f9582396aefed921d2133bb","status":"affected","version":"af935746781088f28904601469671d244d2f653b","versionType":"git"},{"lessThan":"e848c0bd189bd41189f20249a4d71895ff884f40","status":"affected","version":"af935746781088f28904601469671d244d2f653b","versionType":"git"},{"lessThan":"b81d7da262d9c13b3997966536fa73b9a8252832","status":"affected","version":"af935746781088f28904601469671d244d2f653b","versionType":"git"},{"lessThan":"63069b5917cba2e15b1a78b3f4ff99e45102c56f","status":"affected","version":"af935746781088f28904601469671d244d2f653b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.1"},{"lessThan":"3.1","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"3.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"3.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"3.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"3.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"3.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:11:28.804Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/15791df50a873f772128f35a6b85e92eb6f62851"},{"url":"https://git.kernel.org/stable/c/a8b38867e2a25d82647716ded6a008dcc54869a3"},{"url":"https://git.kernel.org/stable/c/b465be8e5dd8ec8aa08658c8c43dcd80b20ed160"},{"url":"https://git.kernel.org/stable/c/e95e9efdbe0d0da90f9582396aefed921d2133bb"},{"url":"https://git.kernel.org/stable/c/e848c0bd189bd41189f20249a4d71895ff884f40"},{"url":"https://git.kernel.org/stable/c/b81d7da262d9c13b3997966536fa73b9a8252832"},{"url":"https://git.kernel.org/stable/c/63069b5917cba2e15b1a78b3f4ff99e45102c56f"}],"title":"media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142797","datePublished":"2026-12-03T03:11:28.804Z","dateReserved":"2026-12-03T03:10:28.329Z","dateUpdated":"2026-12-03T03:11:28.804Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:13","lastModifiedDate":"2026-12-03 04:18:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142797","Ordinal":"1","Title":"media: s5p-mfc: use timer_shutdown_sync() for the self-rearming ","CVE":"CVE-2026-142797","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142797","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"media: s5p-mfc: use timer_shutdown_sync() for the self-rearming "}]}}}