0.0
NA
CVE-2026-142797
media: s5p-mfc: use timer_shutdown_sync() for the self-rearming watchdog
Description

In 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.

INFO

Published Date :

Dec. 3, 2026, 4:18 a.m.

Last Modified :

Dec. 3, 2026, 4:18 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-142797 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Use timer_shutdown_sync and cancel_work_sync to fix potential use-after-free.
  • Use timer_shutdown_sync for watchdog timer.
  • Replace flush_work() with cancel_work_sync().
  • Prevent timer re-arming after shutdown.
  • Ensure no callback fires after device removal.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-142797 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-142797 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-142797 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-142797 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 03, 2026

    Action Type Old Value New Value
    Added Description In 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.
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/142xxx/CVE-2026-142797.json">CVE-2026-142797</a>
    Added Reference https://git.kernel.org/stable/c/15791df50a873f772128f35a6b85e92eb6f62851
    Added Reference https://git.kernel.org/stable/c/63069b5917cba2e15b1a78b3f4ff99e45102c56f
    Added Reference https://git.kernel.org/stable/c/a8b38867e2a25d82647716ded6a008dcc54869a3
    Added Reference https://git.kernel.org/stable/c/b465be8e5dd8ec8aa08658c8c43dcd80b20ed160
    Added Reference https://git.kernel.org/stable/c/b81d7da262d9c13b3997966536fa73b9a8252832
    Added Reference https://git.kernel.org/stable/c/e848c0bd189bd41189f20249a4d71895ff884f40
    Added Reference https://git.kernel.org/stable/c/e95e9efdbe0d0da90f9582396aefed921d2133bb
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.