CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

CVE-2024-40965: i2c: lpi2c: Avoid calling clk_get_rate during transfer

Description

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

i2c: lpi2c: Avoid calling clk_get_rate during transfer

Instead of repeatedly calling clk_get_rate for each transfer, lock
the clock rate and cache the value.
A deadlock has been observed while adding tlv320aic32x4 audio codec to
the system. When this clock provider adds its clock, the clk mutex is
locked already, it needs to access i2c, which in return needs the mutex
for clk_get_rate as well.

Classification

CVE ID: CVE-2024-40965

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.06% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://git.kernel.org/stable/c/d038693e08adf9c162c6377800495e4f5a2df045
https://git.kernel.org/stable/c/2b42e9587a7a9c7b824e0feb92958f258263963e
https://git.kernel.org/stable/c/4268254a39484fc11ba991ae148bacbe75d9cc0a

Timeline