CVE-2024-40965

i2c: lpi2c: Avoid calling clk_get_rate during transfer

State
Published
Severity
Not scored
Published
Jul 12, 2024
Updated
May 11, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a55fa9d0e42e31b0292540e6324d481aad307644 to before d038693e08adf9c162c6377800495e4f5a2df045Affected
  • a55fa9d0e42e31b0292540e6324d481aad307644 to before 2b42e9587a7a9c7b824e0feb92958f258263963eAffected
  • a55fa9d0e42e31b0292540e6324d481aad307644 to before 4268254a39484fc11ba991ae148bacbe75d9cc0aAffected
LinuxLinux
  • 4.10Affected
  • before 4.10Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.9.7 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.