CVE-2024-49985
Last modified
CVE-2024-49985 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.0, < 5.10.227 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.168 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.113 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.55 | — |
| Linux | Linux Kernel | >= 6.7, < 6.10.14 | — |
| Linux | Linux Kernel | >= 6.11, < 6.11.3 | — |
| Linux | Linux Kernel | 6.12 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-49985?
How severe is CVE-2024-49985?
How do I fix CVE-2024-49985?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-4998Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2024-49980In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49981In the Linux kernel, the following vulnerability has been re…7
- CVE-2024-49982In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49983In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49984In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49986In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49987In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49988In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49989In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-4999A vulnerability in the web-based management interface of mul…9.4
- CVE-2024-49990In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-49985?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
