cve-2024-49977
Vulnerability from cvelistv5
Published
2024-10-21 18:02
Modified
2024-12-19 09:30
Severity ?
Summary
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 "port_transmit_rate_kbps" to be set to a value of 0, which is then passed to the "div_s64" 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.
Impacted products
Vendor Product Version
Linux Linux Version: b4bca4722fda928810d024350493990de39f1e40
Version: 2145583e5995598f50d66f8710c86bb1e910ac46
Version: 521d42a1c24d638241220d4b9fa7e7a0ed02b88e
Version: a71b686418ee6bcb6d6365f7f6d838d9874d9c64
Version: b8c43360f6e424131fa81d3ba8792ad8ff25a09e
Version: b8c43360f6e424131fa81d3ba8792ad8ff25a09e
Version: b8c43360f6e424131fa81d3ba8792ad8ff25a09e
Create a notification for this product.
   Linux Linux Version: 6.10
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-49977",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-10-22T13:33:01.213521Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-10-22T13:38:45.017Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c",
                     status: "affected",
                     version: "b4bca4722fda928810d024350493990de39f1e40",
                     versionType: "git",
                  },
                  {
                     lessThan: "b0da9504a528f05f97d926b4db74ff21917a33e9",
                     status: "affected",
                     version: "2145583e5995598f50d66f8710c86bb1e910ac46",
                     versionType: "git",
                  },
                  {
                     lessThan: "5d43e1ad4567d67af2b42d3ab7c14152ffed25c6",
                     status: "affected",
                     version: "521d42a1c24d638241220d4b9fa7e7a0ed02b88e",
                     versionType: "git",
                  },
                  {
                     lessThan: "03582f4752427f60817d896f1a827aff772bd31e",
                     status: "affected",
                     version: "a71b686418ee6bcb6d6365f7f6d838d9874d9c64",
                     versionType: "git",
                  },
                  {
                     lessThan: "e297a2bf56d12fd7f91a0c209eb6ea84361f3368",
                     status: "affected",
                     version: "b8c43360f6e424131fa81d3ba8792ad8ff25a09e",
                     versionType: "git",
                  },
                  {
                     lessThan: "837d9df9c0792902710149d1a5e0991520af0f93",
                     status: "affected",
                     version: "b8c43360f6e424131fa81d3ba8792ad8ff25a09e",
                     versionType: "git",
                  },
                  {
                     lessThan: "675faf5a14c14a2be0b870db30a70764df81e2df",
                     status: "affected",
                     version: "b8c43360f6e424131fa81d3ba8792ad8ff25a09e",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "6.10",
                  },
                  {
                     lessThan: "6.10",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.10.*",
                     status: "unaffected",
                     version: "5.10.227",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.15.*",
                     status: "unaffected",
                     version: "5.15.168",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.1.*",
                     status: "unaffected",
                     version: "6.1.113",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.6.*",
                     status: "unaffected",
                     version: "6.6.55",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.10.*",
                     status: "unaffected",
                     version: "6.10.14",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.11.*",
                     status: "unaffected",
                     version: "6.11.3",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "*",
                     status: "unaffected",
                     version: "6.12",
                     versionType: "original_commit_for_fix",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "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.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:30:33.179Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c",
            },
            {
               url: "https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9",
            },
            {
               url: "https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6",
            },
            {
               url: "https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e",
            },
            {
               url: "https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368",
            },
            {
               url: "https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93",
            },
            {
               url: "https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df",
            },
         ],
         title: "net: stmmac: Fix zero-division error when disabling tc cbs",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-49977",
      datePublished: "2024-10-21T18:02:24.480Z",
      dateReserved: "2024-10-21T12:17:06.052Z",
      dateUpdated: "2024-12-19T09:30:33.179Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-49977\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T18:15:18.417\",\"lastModified\":\"2024-10-25T20:03:36.737\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"},{\"lang\":\"es\",\"value\":\"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.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-369\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.10.221\",\"versionEndExcluding\":\"5.10.227\",\"matchCriteriaId\":\"D7180F0F-394B-4ABD-991F-58AB9D90F314\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.15.162\",\"versionEndExcluding\":\"5.15.168\",\"matchCriteriaId\":\"99F757B5-48A7-4EB4-AA02-72DAFF9A9814\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.1.96\",\"versionEndExcluding\":\"6.1.113\",\"matchCriteriaId\":\"0A2FE2CA-C4B3-41E4-8DBD-D5F345CA4FCC\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.6.36\",\"versionEndExcluding\":\"6.6.55\",\"matchCriteriaId\":\"75DA43B5-E344-4A3A-A3FC-4ABAD4317D58\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.9.7\",\"versionEndExcluding\":\"6.10\",\"matchCriteriaId\":\"FA5E7970-A460-40EE-9BDE-6FFF21149DDA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.10\",\"versionEndExcluding\":\"6.10.14\",\"matchCriteriaId\":\"20A9A1A8-B921-4FB1-BC2B-00E240DE3643\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.11\",\"versionEndExcluding\":\"6.11.3\",\"matchCriteriaId\":\"54D9C704-D679-41A7-9C40-10A6B1E7FFE9\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-49977\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:33:01.213521Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:33:04.396Z\"}}], \"cna\": {\"title\": \"net: stmmac: Fix zero-division error when disabling tc cbs\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"b4bca4722fda\", \"lessThan\": \"e33fe25b1efe\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"2145583e5995\", \"lessThan\": \"b0da9504a528\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"521d42a1c24d\", \"lessThan\": \"5d43e1ad4567\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a71b686418ee\", \"lessThan\": \"03582f475242\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b8c43360f6e4\", \"lessThan\": \"e297a2bf56d1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b8c43360f6e4\", \"lessThan\": \"837d9df9c079\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b8c43360f6e4\", \"lessThan\": \"675faf5a14c1\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.10\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.10\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.10.227\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.168\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.113\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.55\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.14\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12-rc1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c\"}, {\"url\": \"https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9\"}, {\"url\": \"https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6\"}, {\"url\": \"https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e\"}, {\"url\": \"https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368\"}, {\"url\": \"https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93\"}, {\"url\": \"https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df\"}], \"x_generator\": {\"engine\": \"bippy-9e1c9544281a\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-11-05T09:52:46.807Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-49977\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-11-05T09:52:46.807Z\", \"dateReserved\": \"2024-10-21T12:17:06.052Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T18:02:24.480Z\", \"assignerShortName\": \"Linux\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.