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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-07-12T12:32:05.453Z
- Modified: 2026-06-17T07:46:58.640Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from a55fa9d0e42e31b0292540e6324d481aad307644 before d038693e08adf9c162c6377800495e4f5a2df045; from a55fa9d0e42e31b0292540e6324d481aad307644 before 2b42e9587a7a9c7b824e0feb92958f258263963e; from a55fa9d0e42e31b0292540e6324d481aad307644 before 4268254a39484fc11ba991ae148bacbe75d9cc0a; 4.10 (not affected: before 4.10; from 6.6.64 up to 6.6.*; from 6.9.7 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 6.9.7

## References

- <https://git.kernel.org/stable/c/d038693e08adf9c162c6377800495e4f5a2df045>
- <https://git.kernel.org/stable/c/2b42e9587a7a9c7b824e0feb92958f258263963e> (patch)
- <https://git.kernel.org/stable/c/4268254a39484fc11ba991ae148bacbe75d9cc0a> (patch)

## Sources

- CVE List: [CVE-2024-40965](https://www.cve.org/CVERecord?id=CVE-2024-40965), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-40965](https://nvd.nist.gov/vuln/detail/CVE-2024-40965), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40965 · Whole record: https://cve.day/CVE-2024-40965.json · Rebuilt by cve.day 2026-11-25T22:58:42.864Z
