CVE-2022-49192 drivers: ethernet: cpsw: fix panic when interrupt coaleceing is set via ethtool
A logic error in the Linux kernel CPSW driver causes a null pointer dereference and system panic when interrupt coalescing is configured via ethtool.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49192?
CVE-2022-49192 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2022-49192?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49192?
Apply the vendor's patch.
Is CVE-2022-49192 being exploited?
There is no known exploitation of CVE-2022-49192 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49192, GHSA-7w8f-cmhf-84hf, UBUNTU-CVE-2022-49192.