CVE-2024-40965

published 12 Jul 2024 · updated 11 May 2026

i2c: lpi2c: Avoid calling clk_get_rate during transfer

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2b42e9587a7a9c7b824e0feb92958f258263963e, Kernel 4268254a39484fc11ba991ae148bacbe75d9cc0a and Kernel d038693e08adf9c162c6377800495e4f5a2df045.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.10, >=a55fa9d0e42e31b0292540e6324d481aad307644 <2b42e9587a7a9c7b824e0feb92958f258263963e, >=a55fa9d0e42e31b0292540e6324d481aad307644 <4268254a39484fc11ba991ae148bacbe75d9cc0a, >=a55fa9d0e42e31b0292540e6324d481aad307644 <d038693e08adf9c162c6377800495e4f5a2df0452b42e9587a7a9c7b824e0feb92958f258263963e, 4268254a39484fc11ba991ae148bacbe75d9cc0a, d038693e08adf9c162c6377800495e4f5a2df045

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-40965 severity on Zeptric[![CVE-2024-40965](https://zeptric.io/badge/cve/CVE-2024-40965.svg)](https://zeptric.io/cve/CVE-2024-40965)