watchdog: msc313e: Fix clock leak and spurious timer in settimeout()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel faf1eb2895c87a8c0fb920439dddc7e0d97c6a69, Kernel 2152a13ee2a9af09a668ebd053a8dbf771dadb80, Kernel 2abf99a57b0b71b2b97745981f4039370ab78044 and 10 more.
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`.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e9800b7994642a794afd4894f072541c14277ce8 <faf1eb2895c87a8c0fb920439dddc7e0d97c6a69, >=e9800b7994642a794afd4894f072541c14277ce8 <2152a13ee2a9af09a668ebd053a8dbf771dadb80, >=e9800b7994642a794afd4894f072541c14277ce8 <2abf99a57b0b71b2b97745981f4039370ab78044, >=e9800b7994642a794afd4894f072541c14277ce8 <3db30f315935c2fb0d95f46b7a593b5b4d3ec3d0, >=e9800b7994642a794afd4894f072541c14277ce8 <68665016c7b777b44e27b6b0c1e6524c28ebe40a, >=e9800b7994642a794afd4894f072541c14277ce8 <77ef2aa8b46876ca9935f32dd874c517ccf5d880, >=e9800b7994642a794afd4894f072541c14277ce8 <a1dd0817776ea2a870ba2347001af13ddd4cb321, =5.14 | faf1eb2895c87a8c0fb920439dddc7e0d97c6a69, 2152a13ee2a9af09a668ebd053a8dbf771dadb80, 2abf99a57b0b71b2b97745981f4039370ab78044, 3db30f315935c2fb0d95f46b7a593b5b4d3ec3d0, 68665016c7b777b44e27b6b0c1e6524c28ebe40a, 77ef2aa8b46876ca9935f32dd874c517ccf5d880, a1dd0817776ea2a870ba2347001af13ddd4cb321 |
| linux-kernel: Kernel | >=5.16.0 <6.1.189, >=6.13.0 <6.18.53, >=6.19.0 <7.2.7, >=6.2.0 <6.6.158, >=6.7.0 <6.12.111, >=5.14.0 <5.15.222 | 6.1.189, 6.18.53, 7.2.7, 6.6.158, 6.12.111, 5.15.222 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket