Description
In the Linux kernel, the following vulnerability has been resolved: net: systemport: Fix buffer overflow in bcm_sysport_get_stats() When running on SYSTEMPORT Lite, certain statistics are unsupported and skipped during bcm_sysport_get_stats(). The variable 'j' tracks the compacted index into the destination data buffer, whereas 'i' iterates over all elements in bcm_sysport_gstrings_stats. Because the buffer allocated by ethtool is sized only according to bcm_sysport_get_sset_count(), storing values at data[i] instead of data[j] writes past the allocated array bounds, leading to memory corruption. Fix this by writing to data[j] instead of data[i].
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
10377ba7673d19e28d92846955d51f49acd25c35 to < 96a2b042051553df0d9f03b518dd3b7105b36935affected10377ba7673d19e28d92846955d51f49acd25c35 to < 29d1d35ad5ad379a904263ea1cd4ba1d71cd965faffected10377ba7673d19e28d92846955d51f49acd25c35 to < 96d8b26be5bc451188acdcee055948da45adbde0affected10377ba7673d19e28d92846955d51f49acd25c35 to < faba9fdde480356f4a1d3b1a5713b7b354858a1caffected10377ba7673d19e28d92846955d51f49acd25c35 to < eb7b84af0ec5c71b4920e999611b466b3784496caffected
Linux Linux
Default version status: affected
4.14affected0 to < 4.14unaffected6.6.160 to ≤ 6.6.*unaffected6.12.113 to ≤ 6.12.*unaffected6.18.56 to ≤ 6.18.*unaffected7.2.10 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/96a2b042051553df0d9f03b518dd3b7105b36935 ↗
- https://git.kernel.org/stable/c/29d1d35ad5ad379a904263ea1cd4ba1d71cd965f ↗
- https://git.kernel.org/stable/c/96d8b26be5bc451188acdcee055948da45adbde0 ↗
- https://git.kernel.org/stable/c/faba9fdde480356f4a1d3b1a5713b7b354858a1c ↗
- https://git.kernel.org/stable/c/eb7b84af0ec5c71b4920e999611b466b3784496c ↗