CVE-2024-40965

i2c: lpi2c: Avoid calling clk_get_rate during transfer

published July 12, 2024

CVSS
—
EPSS
0%
Percentile
12.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00221 · 12.0th percentile
Published
2024-07-12T12:32Z
EPSS history
Timeline
  • 12 JUL 12:32Z
    i2c: lpi2c: Avoid calling clk_get_rate during transfer
    cvelistv5