CVE-2024-49977: net: stmmac: Fix zero-division error when disabling tc cbs
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 "porttransmitratekbps" to be set to a value of 0, which is then passed to the "divs64" 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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49977?
CVE-2024-49977 is classified as a low-severity vulnerability in the Linux kernel.
How do I fix CVE-2024-49977?
To fix CVE-2024-49977, upgrade to Linux kernel versions 5.10.227 and above, or 5.15.168 and above, or other applicable remedial versions.
Which Linux kernel versions are affected by CVE-2024-49977?
CVE-2024-49977 affects the Linux kernel versions between 5.10.221 and 5.10.227, 5.15.162 and 5.15.168, and other specified ranges.
Can CVE-2024-49977 cause a denial of service?
CVE-2024-49977 can potentially lead to a denial of service due to a zero-division error when disabling traffic class CBS.
What components of the Linux kernel are impacted by CVE-2024-49977?
CVE-2024-49977 impacts the networking component of the Linux kernel, specifically the stmmac driver.