# CVE-2024-49977: net: stmmac: Fix zero-division error when disabling tc cbs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2024-10-21T18:02:24.480Z
- **Modified:** 2026-10-15T01:19:03.000Z

## Who should check

- Anyone running Linux \>= b4bca4722fda928810d024350493990de39f1e40, \< e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c; \>= 2145583e5995598f50d66f8710c86bb1e910ac46, \< b0da9504a528f05f97d926b4db74ff21917a33e9; \>= 521d42a1c24d638241220d4b9fa7e7a0ed02b88e, \< 5d43e1ad4567d67af2b42d3ab7c14152ffed25c6; \>= a71b686418ee6bcb6d6365f7f6d838d9874d9c64, \< 03582f4752427f60817d896f1a827aff772bd31e; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< e297a2bf56d12fd7f91a0c209eb6ea84361f3368; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< 837d9df9c0792902710149d1a5e0991520af0f93; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< 675faf5a14c14a2be0b870db30a70764df81e2df; f01782804147a8c21f481b3342c83422c041d2c0; \>= 5.10.221, \< 5.10.227; \>= 5.15.162, \< 5.15.168; …
- Anyone running Linux 6.10

## Description

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.

## Affected and fixed versions

- Linux: \>= b4bca4722fda928810d024350493990de39f1e40, \< e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c; \>= 2145583e5995598f50d66f8710c86bb1e910ac46, \< b0da9504a528f05f97d926b4db74ff21917a33e9; \>= 521d42a1c24d638241220d4b9fa7e7a0ed02b88e, \< 5d43e1ad4567d67af2b42d3ab7c14152ffed25c6; \>= a71b686418ee6bcb6d6365f7f6d838d9874d9c64, \< 03582f4752427f60817d896f1a827aff772bd31e; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< e297a2bf56d12fd7f91a0c209eb6ea84361f3368; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< 837d9df9c0792902710149d1a5e0991520af0f93; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< 675faf5a14c14a2be0b870db30a70764df81e2df; f01782804147a8c21f481b3342c83422c041d2c0; \>= 5.10.221, \< 5.10.227; \>= 5.15.162, \< 5.15.168; … (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-49977. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49977.md
Affected: Linux >= b4bca4722fda928810d024350493990de39f1e40, < e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c; >= 2145583e5995598f50d66f8710c86bb1e910ac46, < b0da9504a528f05f97d926b4db74ff21917a33e9; >= 521d42a1c24d638241220d4b9fa7e7a0ed02b88e, < 5d43e1ad4567d67af2b42d3ab7c14152ffed25c6; >= a71b686418ee6bcb6d6365f…
Fixed in: Linux 5d43e1ad4567d67af2b42d3ab7c14152ffed25c6, Linux 03582f4752427f60817d896f1a827aff772bd31e, Linux 837d9df9c0792902710149d1a5e0991520af0f93, Linux 675faf5a14c14a2be0b870db30a70764df81e2df, Linux 5.10.227, Linux 5.15.168

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-49977 being exploited?

There is no confirmed exploitation: CVE-2024-49977 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-49977?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-49977?

Linux \>= b4bca4722fda928810d024350493990de39f1e40, \< e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c; \>= 2145583e5995598f50d66f8710c86bb1e910ac46, \< b0da9504a528f05f97d926b4db74ff21917a33e9; \>= 521d42a1c24d638241220d4b9fa7e7a0ed02b88e, \< 5d43e1ad4567d67af2b42d3ab7c14152ffed25c6; \>= a71b686418ee6bcb6d6365f7f6d838d9874d9c64, \< 03582f4752427f60817d896f1a827aff772bd31e; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< e297a2bf56d12fd7f91a0c209eb6ea84361f3368; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< 837d9df9c0792902710149d1a5e0991520af0f93; \>= b8c43360f6e424131fa81d3ba8792ad8ff25a09e, \< 675faf5a14c14a2be0b870db30a70764df81e2df; f01782804147a8c21f481b3342c83422c041d2c0; \>= 5.10.221, \< 5.10.227; \>= 5.15.162, \< 5.15.168; …; Linux 6.10.

### Is there a fix for CVE-2024-49977?

Yes. Fixed in Linux 5d43e1ad4567d67af2b42d3ab7c14152ffed25c6, Linux 03582f4752427f60817d896f1a827aff772bd31e, Linux 837d9df9c0792902710149d1a5e0991520af0f93, Linux 675faf5a14c14a2be0b870db30a70764df81e2df, Linux 5.10.227, Linux 5.15.168. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-49977?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c>
- patch: <https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9>
- patch: <https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6>
- patch: <https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e>
- patch: <https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368>
- patch: <https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93>
- patch: <https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-49977>

HTML: <https://flawdb.com/CVE-2024-49977> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-49977>
