{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-49977",
        "ASSIGNER": "cve@kernel.org",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "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."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "n/a"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Linux",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Linux",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "b4bca4722fda",
                                            "version_value": "e33fe25b1efe"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "2145583e5995",
                                            "version_value": "b0da9504a528"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "521d42a1c24d",
                                            "version_value": "5d43e1ad4567"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "a71b686418ee",
                                            "version_value": "03582f475242"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "b8c43360f6e4",
                                            "version_value": "e297a2bf56d1"
                                        },
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "6.10",
                                                        "status": "affected"
                                                    },
                                                    {
                                                        "version": "0",
                                                        "lessThan": "6.10",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "5.10.227",
                                                        "lessThanOrEqual": "5.10.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "5.15.168",
                                                        "lessThanOrEqual": "5.15.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.1.113",
                                                        "lessThanOrEqual": "6.1.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.6.55",
                                                        "lessThanOrEqual": "6.6.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.10.14",
                                                        "lessThanOrEqual": "6.10.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.11.3",
                                                        "lessThanOrEqual": "6.11.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.12-rc1",
                                                        "lessThanOrEqual": "*",
                                                        "status": "unaffected",
                                                        "versionType": "original_commit_for_fix"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/e33fe25b1efe4f2e6a5858786dbc82ae4c44ed4c"
            },
            {
                "url": "https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/b0da9504a528f05f97d926b4db74ff21917a33e9"
            },
            {
                "url": "https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/5d43e1ad4567d67af2b42d3ab7c14152ffed25c6"
            },
            {
                "url": "https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/03582f4752427f60817d896f1a827aff772bd31e"
            },
            {
                "url": "https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/e297a2bf56d12fd7f91a0c209eb6ea84361f3368"
            },
            {
                "url": "https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/837d9df9c0792902710149d1a5e0991520af0f93"
            },
            {
                "url": "https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/675faf5a14c14a2be0b870db30a70764df81e2df"
            }
        ]
    },
    "generator": {
        "engine": "bippy-c9c4e1df01b2"
    }
}