mt76: mt7921: fix crash when startup fails.
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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 reset_work 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 x86_64 apu2 when mt7921k radio fails to work. Radio still fails, but OS does not crash.
From the CVE record · Linux
The Linux kernel’s mt7921 driver can use freed memory if the radio fails to start and cleanup runs before scheduled reset work executes. This can crash the OS; the input does not describe an attacker-controlled trigger or specify network access, authentication, or user-interaction requirements.
Engineers running Linux systems with an mt7921 radio should check whether their kernel includes the fix; affected versions are not specified.