CVE-2024-49977

Severity CVSS v4.0:
Pending analysis
Type:
CWE-369 Divide By Zero
Publication date:
21/10/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> net: stmmac: Fix zero-division error when disabling tc cbs<br /> <br /> The commit b8c43360f6e4 ("net: stmmac: No need to calculate speed divider<br /> when offload is disabled") allows the "port_transmit_rate_kbps" to be<br /> set to a value of 0, which is then passed to the "div_s64" function when<br /> tc-cbs is disabled. This leads to a zero-division error.<br /> <br /> When tc-cbs is disabled, the idleslope, sendslope, and credit values the<br /> credit values are not required to be configured. Therefore, adding a return<br /> statement after setting the txQ mode to DCB when tc-cbs is disabled would<br /> prevent a zero-division error.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.10.221 (including) 5.10.227 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.15.162 (including) 5.15.168 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.1.96 (including) 6.1.113 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.6.36 (including) 6.6.55 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.9.7 (including) 6.10 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.10 (including) 6.10.14 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.11 (including) 6.11.3 (excluding)