| The vulnerability CVE-2021-47031 is a memory leak issue in the `mt7921_coredump_work` function of the Mediatek mt76 wireless driver, specifically in the mt7921 MAC (Media Access Control) layer. This issue was introduced in Linux kernel version 5.12 with commit 1c099ab44727 and fixed in versions 5.12.4 with commit 481122637445 and 5.13 with commit 782b3e86ea97. |
| |
| The memory leak occurs in the `mt7921_coredump_work` function, which is responsible for handling core dumps of the mt7921 wireless device. A core dump is a file that contains the memory image of a crashed process, used for debugging purposes. The issue arises when this function fails to properly release allocated memory, leading to a memory leak over time. |
| |
| The affected file is `drivers/net/wireless/mediatek/mt76/mt7921/mac.c`. To mitigate this issue, it is recommended to update to the latest stable kernel version. If updating is not possible, individual changes can be cherry-picked from the provided commits, but this is not supported by the Linux kernel community. |
| |