Linux
net: airoha: fix foe_check_time allocation size
In the Linux kernel, the following vulnerability has been resolved: net: airoha: fix foe_check_time allocation size foe_check_time is declared as u16 pointer but was allocated with only ppe_num_entries bytes instead of ppe_num_entries * sizeof(u16). When airoha_ppe_foe_verify_entry() is called with hash >= ppe_num_entries/2, it writes beyond the allocated buffer, causing heap buffer overflow and potential kernel crash.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 56b99327a451917f1c17f85fc33ea8293c08a9ee, < 112b5eff24e044561ee9599a0d34e0fcea1df4e0
- >= 6d5b601d52a27aafff555b480e538507901c672c, < 9f7cd1e26d2f1766438edc9b9254f2c618f9ae98
- >= 6d5b601d52a27aafff555b480e538507901c672c, < 5c121ee635680c93d7074becf14cfbaac140f80d
- >= 6.18.33, < 6.18.40
Fixed in 112b5eff24e044561ee9599a0d34e0fcea1df4e0, 9f7cd1e26d2f1766438edc9b9254f2c618f9ae98, 5c121ee635680c93d7074becf14cfbaac140f80d, 6.18.40
- 6.19
Fixed in 0, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 112b5eff24e044561ee9599a0d34e0fcea1df4e0 or 9f7cd1e26d2f1766438edc9b9254f2c618f9ae98 or 5c121ee635680c93d7074becf14cfbaac140f80d or 6.18.40 or later.
Upgrade Linux to 0 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.