i2c: cadence: cdns_i2c_master_xfer(): Fix runtime PM leak on error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1a351b10b9671fc2fac767c40a1c4373b9bf5092 · < ae1664f04f504a998737f5bb563f16b44357bcca| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i2c: cadence: cdns_i2c_master_xfer(): Fix runtime PM leak on error path
The cdns_i2c_master_xfer() function gets a runtime PM reference when the function is entered. This reference is released when the function is exited. There is currently one error path where the function exits directly, which leads to a leak of the runtime PM reference.
Make sure that this error path also releases the runtime PM reference.
From the CVE record · Linux
The Linux kernel's Cadence I2C driver leaks a runtime PM reference when cdns_i2c_master_xfer() exits through an error path. The input does not describe an attacker action or specify network access, authentication, or user-interaction conditions.
Engineers running Linux kernels with the Cadence I2C driver should check their versions; affected versions are not specified.