CVE-2022-49192

drivers: ethernet: cpsw: fix panic when interrupt coaleceing is set via ethtool

State
Published
Severity
Not scored
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

Description

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

drivers: ethernet: cpsw: fix panic when interrupt coaleceing is set via ethtool

cpsw_ethtool_begin directly returns the result of pm_runtime_get_sync when successful. pm_runtime_get_sync returns -error code on failure and 0 on successful resume but also 1 when the device is already active. So the common case for cpsw_ethtool_begin is to return 1. That leads to inconsistent calls to pm_runtime_put in the call-chain so that pm_runtime_put is called one too many times and as result leaving the cpsw dev behind suspended.

The suspended cpsw dev leads to an access violation later on by different parts of the cpsw driver.

Fix this by calling the return-friendly pm_runtime_resume_and_get function.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d43c65b05b848e0b2db1a6c78b02c189da3a95b5 to before 585dc196a08fccdcd1b7fcf473cf566b34c4b840Affected
  • d43c65b05b848e0b2db1a6c78b02c189da3a95b5 to before 459080fab12b23c0526026e5cedbf3fabb5457ccAffected
  • d43c65b05b848e0b2db1a6c78b02c189da3a95b5 to before 30ad11bff021a94aff6dab1ec9236fdfd884fbffAffected
  • d43c65b05b848e0b2db1a6c78b02c189da3a95b5 to before 2844e2434385819f674d1fb4130c308c50ba681eAffected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.33 through 5.15.*Not affected
  • 5.16.19 through 5.16.*Not affected
  • 5.17.2 through 5.17.*Not affected
  • 5.18 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.