CVE-2021-47159
Description
In the Linux kernel, the following vulnerability has been resolved: net: dsa: fix a crash if ->get_sset_count() fails If ds->ops->get_sset_count() fails then it "count" is a negative error code such as -EOPNOTSUPP. Because "i" is an unsigned int, the negative error code is type promoted to a very high value and the loop will corrupt memory until the system crashes. Fix this by checking for error codes and changing the type of "i" to just int.
How to fix
- linux linux_kernel4.19.193, 5.4.124, 5.10.42, 5.12.9 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| linux linux_kernel | 4.7 ≤ v < 4.19.193, 4.20 ≤ v < 5.4.124, 5.5 ≤ v < 5.10.42, 5.11 ≤ v < 5.12.9, 5.13 | 4.19.193, 5.4.124, 5.10.42, 5.12.9 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.