CVE-2024-49985

i2c: stm32f7: Do not prepare/unprepare clock during runtime suspend/resume

MEDIUM
5.5
CVSS Score
Published: October 21, 2024 at 06:02 PM UTC
Updated: June 17, 2026 at 08:00 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: i2c: stm32f7: Do not prepare/unprepare clock during runtime suspend/resume In case there is any sort of clock controller attached to this I2C bus controller, for example Versaclock or even an AIC32x4 I2C codec, then an I2C transfer triggered from the clock controller clk_ops .prepare callback may trigger a deadlock on drivers/clk/clk.c prepare_lock mutex. This is because the clock controller first grabs the prepare_lock mutex and then performs the prepare operation, including its I2C access. The I2C access resumes this I2C bus controller via .runtime_resume callback, which calls clk_prepare_enable(), which attempts to grab the prepare_lock mutex again and deadlocks. Since the clock are already prepared since probe() and unprepared in remove(), use simple clk_enable()/clk_disable() calls to enable and disable the clock on runtime suspend and resume, to avoid hitting the prepare_lock mutex.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.0 ≤ v < 5.10.2275.0 ≤ v < 5.15.1685.0 ≤ v < 5.4.2855.0 ≤ v < 6.1.1135.0 ≤ v < 6.10.145.0 ≤ v < 6.11.35.0 ≤ v < 6.125.0 ≤ v < 6.6.555.11 ≤ v < 5.15.1685.16 ≤ v < 6.1.1136.11 ≤ v < 6.11.36.2 ≤ v < 6.6.556.7 ≤ v < 6.10.144e7bca6fc07bf9526d797b9787dcb21e40cd10cf6.12 rc1
Vendor states this is fixed in 048bbbdbf85e5e00258dfb12f5e368f908801d7b (fixed)
Vendor states this is fixed in 1883cad2cc629ded4a3556c0bbb8b42533ad8764 (fixed)
Vendor states this is fixed in 22a1f8a5b56ba93d3e8b7a1dafa24e01c8bb48ba (fixed)
Vendor states this is fixed in 894cd5f5fd9061983445bbd1fa3d81be43095344 (fixed)
Vendor states this is fixed in 9b8bc33ad64192f54142396470cc34ce539a8940 (fixed)
Vendor states this is fixed in c2024b1a583ab9176c797ea1e5f57baf8d5e2682 (fixed)
Vendor states this is fixed in d6f1250a4d5773f447740b9fe37b8692105796d4 (fixed)
Vendor states this is fixed in fac3c9f7784e8184c0338e9f0877b81e55d3ef1c (fixed)
Vendor states this is fixed in 5.0 (unaffected)
Vendor states this is fixed in 5.10.227 (unaffected)
Vendor states this is fixed in 5.15.168 (unaffected)
Vendor states this is fixed in 5.4.285 (unaffected)
Vendor states this is fixed in 6.1.113 (unaffected)
Vendor states this is fixed in 6.10.14 (unaffected)
Vendor states this is fixed in 6.11.3 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6.55 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/048bbbdbf85e5e00258dfb12f5e368f908801d7b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1883cad2cc629ded4a3556c0bbb8b42533ad8764
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/22a1f8a5b56ba93d3e8b7a1dafa24e01c8bb48ba
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/894cd5f5fd9061983445bbd1fa3d81be43095344
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b8bc33ad64192f54142396470cc34ce539a8940
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c2024b1a583ab9176c797ea1e5f57baf8d5e2682
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fac3c9f7784e8184c0338e9f0877b81e55d3ef1c

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card