CVE-2024-49977
net: stmmac: Fix zero-division error when disabling tc cbs
Reported by linux · Published October 21, 2024
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: Fix zero-division error when disabling tc cbs The commit b8c43360f6e4 ("net: stmmac: No need to calculate speed divider when offload is disabled") allows the "port_transmit_rate_kbps" to be set to a value of 0, which is then passed to the "div_s64" function when tc-cbs is disabled. This leads to a zero-division error. When tc-cbs is disabled, the idleslope, sendslope, and credit values the credit values are not required to be configured. Therefore, adding a return statement after setting the txQ mode to DCB when tc-cbs is disabled would prevent a zero-division error.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| SCALANCE XCM-/XRM-/XCH-/XRH-300 family | Siemens | 3.2 |
| SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | Siemens | 1.1.1 |
| RUGGEDCOM RST2428P | Siemens | 3.2 |
| Linux | Linux | e297a2bf56d12fd7f91a0c209eb6ea84361f3368, b0da9504a528f05f97d926b4db74ff21917a33e9, 837d9df9c0792902710149d1a5e0991520af0f93, 675faf5a14c14a2be0b870db30a70764df81e2df, 6.10, 5d43e1ad4567d67af2b42d3ab7c14152ffed25c6, 03582f4752427f60817d896f1a827aff772bd31e |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b4bca4722fda928810d024350493990de39f1e40, 2145583e5995598f50d66f8710c86bb1e910ac46, 521d42a1c24d638241220d4b9fa7e7a0ed02b88e |
| Linux | Linux | 6.10, 0, 5.10.227 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| Siemens | RUGGEDCOM RST2428P | 0 |
| Linux | Linux | 6.9.7, *, * |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| linux | linux_kernel | 5.15.162, 6.1.96, 6.6.36 |
Timeline
- Oct 21, 2024 CVE Published
- Oct 22, 2024 EPSS Score (30 in total, the first dated here)
- Oct 22, 2024 Coalition ESS Score (11 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Dec 16, 2025 PoC Published
- Jan 2, 2026 Security Advisory (449 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (381 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-49977
vulnetix vdb fixes CVE-2024-49977
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-49977/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart