CVE-2024-46846

spi: rockchip: Resolve unbalanced runtime PM / system PM handling

State
Published
Severity
Not scored
Published
Sep 27, 2024
Updated
May 11, 2026
Reserved
Sep 11, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

spi: rockchip: Resolve unbalanced runtime PM / system PM handling

Commit e882575efc77 ("spi: rockchip: Suspend and resume the bus during NOIRQ_SYSTEM_SLEEP_PM ops") stopped respecting runtime PM status and simply disabled clocks unconditionally when suspending the system. This causes problems when the device is already runtime suspended when we go to sleep -- in which case we double-disable clocks and produce a WARNing.

Switch back to pm_runtime_force_{suspend,resume}(), because that still seems like the right thing to do, and the aforementioned commit makes no explanation why it stopped using it.

Also, refactor some of the resume() error handling, because it's not actually a good idea to re-disable clocks on failure.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e882575efc771f130a24322377dc1033551da11d to before 14f970a8d03d882b15b97beb83bd84ac8ba6298cAffected
  • e882575efc771f130a24322377dc1033551da11d to before d034bff62faea1a2219e0d2f3d17263265f24087Affected
  • e882575efc771f130a24322377dc1033551da11d to before 0efbad8445fbba7896402500a1473450a299a08aAffected
  • e882575efc771f130a24322377dc1033551da11d to before be721b451affbecc4ba4eaac3b71cdbdcade1b1bAffected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 6.1.110 through 6.1.*Not affected
  • 6.6.51 through 6.6.*Not affected
  • 6.10.10 through 6.10.*Not affected
  • 6.11 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.