CVE-2022-49129: mt76: mt7921: fix crash when startup fails.
In the Linux kernel, the following vulnerability has been resolved:
mt76: mt7921: fix crash when startup fails.
If the nic fails to start, it is possible that the resetwork has already been scheduled. Ensure the work item is canceled so we do not have use-after-free crash in case cleanup is called before the work item is executed.
This fixes crash on my x8664 apu2 when mt7921k radio fails to work. Radio still fails, but OS does not crash.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.13 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.34 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.16.20 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.17.3 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.17.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
For mt76 mt7921 startup-failure cleanup, cancel the already-scheduled reset_work work item before cleanup is called to prevent a use-after-free crash.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-49129?
CVE-2022-49129 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2022-49129?
To fix CVE-2022-49129, update your Linux kernel to the latest stable version where the vulnerability has been patched.
What versions of the Linux kernel are affected by CVE-2022-49129?
CVE-2022-49129 affects Linux kernel versions from 4.16 up to 5.17.3, including 5.15.34 and 5.16.20.
What type of vulnerability is CVE-2022-49129?
CVE-2022-49129 is a use-after-free vulnerability that can lead to system crashes on startup failure.
Who should be concerned about CVE-2022-49129?
System administrators and users of affected Linux kernel versions should be concerned about CVE-2022-49129 as it may affect system stability.