CVE-2024-57990: wifi: mt76: mt7925: fix off by one in mt7925_load_clc()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7925: fix off by one in mt7925_load_clc()
This comparison should be >= instead of > to prevent an out of bounds read and write.
The Linux kernel CVE team has assigned CVE-2024-57990 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit 9679ca7326e52282cc923c4d71d81c999cb6cd55 and fixed in 6.12.13 with commit d03b8fe1b518fc2ea2d82588e905f56d80cd64b2 Issue introduced in 6.12 with commit 9679ca7326e52282cc923c4d71d81c999cb6cd55 and fixed in 6.13.2 with commit 2d1628d32300e4f67ac0b7409cbfa7b912a8fe9d Issue introduced in 6.12 with commit 9679ca7326e52282cc923c4d71d81c999cb6cd55 and fixed in 6.14-rc1 with commit 08fa656c91fd5fdf47ba393795b9c0d1e97539ed Issue introduced in 6.10.13 with commit fb60020cb5b3ea4715e538c77e745c16516c5656 Issue introduced in 6.11.2 with commit ba09084d81c6480bd02fd74052045e533a5e8469
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-57990
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d03b8fe1b518fc2ea2d82588e905f56d80cd64b2 https://git.kernel.org/stable/c/2d1628d32300e4f67ac0b7409cbfa7b912a8fe9d https://git.kernel.org/stable/c/08fa656c91fd5fdf47ba393795b9c0d1e97539ed