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

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

The MFC watchdog timer (s5pmfcwatchdog) is self-rearming: every callback re-arms itself with addtimer() and, on a timeout, schedules watchdogwork. s5pmfcremove() tears this down with timerdeletesync() followed by flushwork().

timerdeletesync() 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 addtimer(), 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, deinithw, loadfirmware, inithw) after videounregisterdevice(), DMA teardown and s5pmfcfinalpm() have run, a potential use-after-free.

Use timershutdownsync(), which puts the timer into a shutdown state so that any addtimer()/modtimer() from the callback becomes a no-op and no later firing is possible. Switch flushwork() to cancelworksync() so any watchdogwork 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.

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=3.1.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2

Event History

Dec 3, 2026
CVE Published
via MITRE·03:11 AM
Data Sourced
via MITRE·03:11 AM
Description
Data Sourced
via OSV·03:11 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

When can the use-after-free occur?

It can occur during s5p_mfc device removal if the self-rearming watchdog callback queues the timer again after timer_delete_sync() has returned. The rearmed timer or previously queued watchdog work can then access device state after video device unregistration, DMA teardown, and final power-management cleanup.

2

What does the fix change to prevent the race?

The fix replaces timer_delete_sync() with timer_shutdown_sync(), which prevents later add_timer() or mod_timer() calls from rearming the watchdog. It also replaces flush_work() with cancel_work_sync() so watchdog work queued before timer shutdown is cancelled rather than allowed to execute.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203