Menu

Star on GitHub · 3.2k

CVE-2024-49985

5.5 · MEDIUM

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 attach…

Published Oct 21, 2024CWE-667EPSS 0.20%

Overview

CVE-2024-49985 is a medium-severity vulnerability. It was published on October 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-49985?

CVE-2024-49985 is a medium-severity vulnerability. It was published on October 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-49985?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-49985?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-49985?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-49985 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all