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.
{ "vanir_signatures": [ { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "80765680087690387416019767583151597225", "244686010175476655364469732328177495673", "198013920777896522483254785046360044847", "90238269916925214130203985516212899399" ] }, "id": "CVE-2024-49977-29d009d2", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0da9504a528f05f97d926b4db74ff21917a33e9", "signature_type": "Function", "digest": { "function_hash": "55205898283756482749739187460034065242", "length": 2145.0 }, "id": "CVE-2024-49977-39ee52da", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c", "function": "tc_setup_cbs" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@675faf5a14c14a2be0b870db30a70764df81e2df", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "80765680087690387416019767583151597225", "244686010175476655364469732328177495673", "198013920777896522483254785046360044847", "90238269916925214130203985516212899399" ] }, "id": "CVE-2024-49977-5e43be2b", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@837d9df9c0792902710149d1a5e0991520af0f93", "signature_type": "Function", "digest": { "function_hash": "55205898283756482749739187460034065242", "length": 2145.0 }, "id": "CVE-2024-49977-89f2561b", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c", "function": "tc_setup_cbs" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e297a2bf56d12fd7f91a0c209eb6ea84361f3368", "signature_type": "Function", "digest": { "function_hash": "55205898283756482749739187460034065242", "length": 2145.0 }, "id": "CVE-2024-49977-89f39df7", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c", "function": "tc_setup_cbs" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03582f4752427f60817d896f1a827aff772bd31e", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "80765680087690387416019767583151597225", "244686010175476655364469732328177495673", "198013920777896522483254785046360044847", "90238269916925214130203985516212899399" ] }, "id": "CVE-2024-49977-9c3a66bf", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@837d9df9c0792902710149d1a5e0991520af0f93", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "80765680087690387416019767583151597225", "244686010175476655364469732328177495673", "198013920777896522483254785046360044847", "90238269916925214130203985516212899399" ] }, "id": "CVE-2024-49977-abaeb5b1", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e297a2bf56d12fd7f91a0c209eb6ea84361f3368", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "80765680087690387416019767583151597225", "244686010175476655364469732328177495673", "198013920777896522483254785046360044847", "90238269916925214130203985516212899399" ] }, "id": "CVE-2024-49977-b749c7f5", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0da9504a528f05f97d926b4db74ff21917a33e9", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "80765680087690387416019767583151597225", "244686010175476655364469732328177495673", "198013920777896522483254785046360044847", "90238269916925214130203985516212899399" ] }, "id": "CVE-2024-49977-ddcde003", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d43e1ad4567d67af2b42d3ab7c14152ffed25c6", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "80765680087690387416019767583151597225", "244686010175476655364469732328177495673", "198013920777896522483254785046360044847", "90238269916925214130203985516212899399" ] }, "id": "CVE-2024-49977-e163b8e0", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d43e1ad4567d67af2b42d3ab7c14152ffed25c6", "signature_type": "Function", "digest": { "function_hash": "55205898283756482749739187460034065242", "length": 2145.0 }, "id": "CVE-2024-49977-e23c75c0", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c", "function": "tc_setup_cbs" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03582f4752427f60817d896f1a827aff772bd31e", "signature_type": "Function", "digest": { "function_hash": "55205898283756482749739187460034065242", "length": 2145.0 }, "id": "CVE-2024-49977-ee3816df", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c", "function": "tc_setup_cbs" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c", "signature_type": "Function", "digest": { "function_hash": "55205898283756482749739187460034065242", "length": 2145.0 }, "id": "CVE-2024-49977-fc85e87a", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c", "function": "tc_setup_cbs" }, "deprecated": false, "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@675faf5a14c14a2be0b870db30a70764df81e2df", "signature_type": "Function", "digest": { "function_hash": "55205898283756482749739187460034065242", "length": 2145.0 }, "id": "CVE-2024-49977-fee92d3e", "target": { "file": "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c", "function": "tc_setup_cbs" }, "deprecated": false, "signature_version": "v1" } ] }