CVE-2024-49977 - CVE House
Back to Database
Status published Unknown CVE-2024-49977

net: stmmac: Fix zero-division error when disabling tc cbs

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-49977

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
b4bca4722fda928810d024350493990de39f1e40, 2145583e5995598f50d66f8710c86bb1e910ac46, 521d42a1c24d638241220d4b9fa7e7a0ed02b88e, a71b686418ee6bcb6d6365f7f6d838d9874d9c64, b8c43360f6e424131fa81d3ba8792ad8ff25a09e, f01782804147a8c21f481b3342c83422c041d2c0, 5.10.221, 5.15.162, 6.1.96, 6.6.36, 6.9.7, 6.10, 0, 5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3, 6.12

Timeline

Official Publish: October 21st, 2024
Last Modified: May 23rd, 2026
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.