{"id":"CVE-2024-49977","summary":"net: stmmac: Fix zero-division error when disabling tc cbs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: Fix zero-division error when disabling tc cbs\n\nThe commit b8c43360f6e4 (\"net: stmmac: No need to calculate speed divider\nwhen offload is disabled\") allows the \"port_transmit_rate_kbps\" to be\nset to a value of 0, which is then passed to the \"div_s64\" function when\ntc-cbs is disabled. This leads to a zero-division error.\n\nWhen tc-cbs is disabled, the idleslope, sendslope, and credit values the\ncredit values are not required to be configured. Therefore, adding a return\nstatement after setting the txQ mode to DCB when tc-cbs is disabled would\nprevent a zero-division error.","modified":"2026-11-17T07:03:34.820940753Z","published":"2024-10-21T18:02:24.480Z","related":["USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49977.json"},"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html"},{"type":"WEB","url":"https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df"},{"type":"WEB","url":"https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49977.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49977"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b4bca4722fda928810d024350493990de39f1e40"},{"fixed":"e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2145583e5995598f50d66f8710c86bb1e910ac46"},{"fixed":"b0da9504a528f05f97d926b4db74ff21917a33e9"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"521d42a1c24d638241220d4b9fa7e7a0ed02b88e"},{"fixed":"5d43e1ad4567d67af2b42d3ab7c14152ffed25c6"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a71b686418ee6bcb6d6365f7f6d838d9874d9c64"},{"fixed":"03582f4752427f60817d896f1a827aff772bd31e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b8c43360f6e424131fa81d3ba8792ad8ff25a09e"},{"fixed":"e297a2bf56d12fd7f91a0c209eb6ea84361f3368"},{"fixed":"837d9df9c0792902710149d1a5e0991520af0f93"},{"fixed":"675faf5a14c14a2be0b870db30a70764df81e2df"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f01782804147a8c21f481b3342c83422c041d2c0"}]}],"versions":["v5.10.226","v5.10.225","v5.10.224","v5.10.223","v5.10.222","v5.10.221","v5.15.167","v5.15.166","v5.15.165","v5.15.164","v5.15.163","v5.15.162","v6.1.112","v6.1.111","v6.1.110","v6.1.109","v6.1.108","v6.1.107","v6.1.106","v6.1.105","v6.1.104","v6.1.103","v6.1.102","v6.1.101","v6.1.100","v6.1.99","v6.1.98","v6.1.97","v6.1.96","v6.6.54","v6.6.53","v6.6.52","v6.6.51","v6.6.50","v6.6.49","v6.6.48","v6.6.47","v6.6.46","v6.6.45","v6.6.44","v6.6.43","v6.6.42","v6.6.41","v6.6.40","v6.6.39","v6.6.38","v6.6.37","v6.6.36","v6.9.12","v6.9.11","v6.9.10","v6.9.9","v6.9.8","v6.9.7"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49977.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.221"},{"fixed":"5.10.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.15.162"},{"fixed":"5.15.168"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.96"},{"fixed":"6.1.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.6.36"},{"fixed":"6.6.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.9.7"},{"fixed":"6.10"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.10.0"},{"fixed":"6.10.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.11.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49977.json"}}],"schema_version":"1.9.2"}