{"id":"CVE-2024-49977","aliases":["CVE-2024-49977"],"related":[],"kind":"vulnerability","state":"published","title":"net: stmmac: Fix zero-division error when disabling tc cbs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: stmmac: Fix zero-division error when disabling tc cbs el commit b8c43360f6e4 (\"net: stmmac: No need to calculate speed divider when offload is disabled\") permite que \"port_transmit_rate_kbps\" se establezca en un valor de 0, que luego se pasa a la función \"div_s64\" cuando tc-cbs está deshabilitado. Esto conduce a un error de división por cero. Cuando tc-cbs está deshabilitado, no es necesario configurar los valores idleslope, sendslope y credit. Por lo tanto, agregar una declaración de retorno después de establecer el modo txQ en DCB cuando tc-cbs está deshabilitado evitaría un error de división por cero.","source":"nvd"}],"published":"2024-10-21T18:02:24.480Z","modified":"2026-10-15T01:19:03.000Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"b4bca4722fda928810d024350493990de39f1e40","fixed":"e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c","status":"affected"},{"type":"git","introduced":"2145583e5995598f50d66f8710c86bb1e910ac46","fixed":"b0da9504a528f05f97d926b4db74ff21917a33e9","status":"affected"},{"type":"git","introduced":"521d42a1c24d638241220d4b9fa7e7a0ed02b88e","fixed":"5d43e1ad4567d67af2b42d3ab7c14152ffed25c6","status":"affected"},{"type":"git","introduced":"a71b686418ee6bcb6d6365f7f6d838d9874d9c64","fixed":"03582f4752427f60817d896f1a827aff772bd31e","status":"affected"},{"type":"git","introduced":"b8c43360f6e424131fa81d3ba8792ad8ff25a09e","fixed":"e297a2bf56d12fd7f91a0c209eb6ea84361f3368","status":"affected"},{"type":"git","introduced":"b8c43360f6e424131fa81d3ba8792ad8ff25a09e","fixed":"837d9df9c0792902710149d1a5e0991520af0f93","status":"affected"},{"type":"git","introduced":"b8c43360f6e424131fa81d3ba8792ad8ff25a09e","fixed":"675faf5a14c14a2be0b870db30a70764df81e2df","status":"affected"},{"type":"git","version":"f01782804147a8c21f481b3342c83422c041d2c0","status":"affected"},{"type":"semver","introduced":"5.10.221","fixed":"5.10.227","status":"affected"},{"type":"semver","introduced":"5.15.162","fixed":"5.15.168","status":"affected"},{"type":"semver","introduced":"6.1.96","fixed":"6.1.113","status":"affected"},{"type":"semver","introduced":"6.6.36","fixed":"6.6.55","status":"affected"},{"type":"semver","introduced":"6.9.7","fixed":"6.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"5.10.227","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.55","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.14","lastAffected":"6.10.*","status":"unaffected"},{"type":"semver","introduced":"6.11.3","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10.221","fixed":"5.10.227"},{"status":"affected","introduced":"5.15.162","fixed":"5.15.168"},{"status":"affected","introduced":"6.1.96","fixed":"6.1.113"},{"status":"affected","introduced":"6.6.36","fixed":"6.6.55"},{"status":"affected","introduced":"6.9.7","fixed":"6.10"},{"status":"affected","introduced":"6.10","fixed":"6.10.14"},{"status":"affected","introduced":"6.11","fixed":"6.11.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:33:01.213Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49977","url":"https://www.cve.org/CVERecord?id=CVE-2024-49977","licence":"CVE Terms of Use","modified":"2026-10-15T00:55:24.051Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49977","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49977","licence":"Public domain","modified":"2026-10-15T01:19:03.000Z"}],"updatedAt":"2026-11-25T22:58:47.074Z","epss":{"score":0.00248,"percentile":0.17188,"date":"2026-12-01T12:00:22.000Z"}}