Linux · Linux Kernel · CVE-2024-49977
Name of the Vulnerable Software and Affected Versions:
Linux kernel versions prior to 6.6.58
Description:
A zero-division error occurs in the Linux kernel when disabling tc cbs. The issue arises from the commit b8c43360f6e4, which allows the `port transmit rate kbps` to be set to 0. This value is then passed to the `div s64` function when tc-cbs is disabled, leading to the error. The `idleslope`, `sendslope`, and `credit` values are not required to be configured when tc-cbs is disabled.
Recommendations:
For Linux kernel versions prior to 6.6.58, update to version 6.6.58 or later to resolve the issue. As a temporary workaround, consider adding a return statement after setting the txQ mode to DCB when tc-cbs is disabled to prevent the zero-division error.