Skip to contentSkip to conversation

CVE-2026-97969: watchdog: msc313e: Fix clock leak and spurious timer in settimeout()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

watchdog: msc313e: Fix clock leak and spurious timer in settimeout()

msc313e_wdt_settimeout() unconditionally calls msc313e_wdt_start() which introduces two severe bugs:

1. If the watchdog is already active, calling start() again will increase the reference count of the clock again. However stop() is only called once, the reference count is unbalance.
2. If the watchdog is stopped, calling settimeout() will start the hardware timer accidentally.

Factor out the register-writing logic into a helper function. Only call it in settimeout() if the watchdog is running. Otherwise, simply update wdev->timeout.

The Linux kernel CVE team has assigned CVE-2026-97969 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 6.12.111 with commit 2152a13ee2a9af09a668ebd053a8dbf771dadb80
	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 6.18.53 with commit 2abf99a57b0b71b2b97745981f4039370ab78044
	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 7.2.7 with commit faf1eb2895c87a8c0fb920439dddc7e0d97c6a69
	Issue introduced in 5.14 with commit e9800b7994642a794afd4894f072541c14277ce8 and fixed in 7.3-rc3 with commit 3db30f315935c2fb0d95f46b7a593b5b4d3ec3d0

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-97969

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/watchdog/msc313e_wdt.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/2152a13ee2a9af09a668ebd053a8dbf771dadb80
	https://git.kernel.org/stable/c/2abf99a57b0b71b2b97745981f4039370ab78044
	https://git.kernel.org/stable/c/faf1eb2895c87a8c0fb920439dddc7e0d97c6a69
	https://git.kernel.org/stable/c/3db30f315935c2fb0d95f46b7a593b5b4d3ec3d0