{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-49977","id":"CVE-2024-49977","title":"net: stmmac: Fix zero-division error when disabling tc cbs","description":"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 erro","descriptionLong":"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.","published":"2024-10-21T18:02:24.480Z","updated":"2026-11-17T07:03:34.820940753Z","reserved":"2024-10-21T12:17:06.052Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b4bca4722fda928810d024350493990de39f1e40","lessThan":"e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c","status":"affected","versionType":"git"},{"version":"2145583e5995598f50d66f8710c86bb1e910ac46","lessThan":"b0da9504a528f05f97d926b4db74ff21917a33e9","status":"affected","versionType":"git"},{"version":"521d42a1c24d638241220d4b9fa7e7a0ed02b88e","lessThan":"5d43e1ad4567d67af2b42d3ab7c14152ffed25c6","status":"affected","versionType":"git"},{"version":"a71b686418ee6bcb6d6365f7f6d838d9874d9c64","lessThan":"03582f4752427f60817d896f1a827aff772bd31e","status":"affected","versionType":"git"},{"version":"b8c43360f6e424131fa81d3ba8792ad8ff25a09e","lessThan":"e297a2bf56d12fd7f91a0c209eb6ea84361f3368","status":"affected","versionType":"git"},{"version":"b8c43360f6e424131fa81d3ba8792ad8ff25a09e","lessThan":"837d9df9c0792902710149d1a5e0991520af0f93","status":"affected","versionType":"git"},{"version":"b8c43360f6e424131fa81d3ba8792ad8ff25a09e","lessThan":"675faf5a14c14a2be0b870db30a70764df81e2df","status":"affected","versionType":"git"},{"version":"f01782804147a8c21f481b3342c83422c041d2c0","status":"affected","versionType":"git"},{"version":"5.10.221","lessThan":"5.10.227","status":"affected","versionType":"semver"},{"version":"5.15.162","lessThan":"5.15.168","status":"affected","versionType":"semver"},{"version":"6.1.96","lessThan":"6.1.113","status":"affected","versionType":"semver"},{"version":"6.6.36","lessThan":"6.6.55","status":"affected","versionType":"semver"},{"version":"6.9.7","lessThan":"6.10","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","lessThan":"6.10","status":"unaffected","versionType":"semver"},{"version":"5.10.227","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.168","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.113","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.55","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.10.14","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11.3","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-369"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49977.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49977","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00248,"epssPercentile":0.16259,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-49977","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49977","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-49977","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-49977","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}