{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-35955",
        "ASSIGNER": "cve@kernel.org",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nkprobes: Fix possible use-after-free issue on kprobe registration\n\nWhen unloading a module, its state is changing MODULE_STATE_LIVE ->\n MODULE_STATE_GOING -> MODULE_STATE_UNFORMED. Each change will take\na time. `is_module_text_address()` and `__module_text_address()`\nworks with MODULE_STATE_LIVE and MODULE_STATE_GOING.\nIf we use `is_module_text_address()` and `__module_text_address()`\nseparately, there is a chance that the first one is succeeded but the\nnext one is failed because module->state becomes MODULE_STATE_UNFORMED\nbetween those operations.\n\nIn `check_kprobe_address_safe()`, if the second `__module_text_address()`\nis failed, that is ignored because it expected a kernel_text address.\nBut it may have failed simply because module->state has been changed\nto MODULE_STATE_UNFORMED. In this case, arm_kprobe() will try to modify\nnon-exist module text address (use-after-free).\n\nTo fix this problem, we should not use separated `is_module_text_address()`\nand `__module_text_address()`, but use only `__module_text_address()`\nonce and do `try_module_get(module)` which is only available with\nMODULE_STATE_LIVE."
            }
        ]
    },
    "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": "1c836bad43f3",
                                            "version_value": "b5808d400934"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "6a119c1a584a",
                                            "version_value": "93eb31e7c339"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "2a49b025c36a",
                                            "version_value": "5062d1f4f07f"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "a1edb85e60fd",
                                            "version_value": "2df2dd27066c"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "28f6c37a2910",
                                            "version_value": "62029bc9ff2c"
                                        },
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "6.0",
                                                        "status": "affected"
                                                    },
                                                    {
                                                        "version": "0",
                                                        "lessThan": "6.0",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "4.19.313",
                                                        "lessThanOrEqual": "4.19.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "5.4.275",
                                                        "lessThanOrEqual": "5.4.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "5.10.216",
                                                        "lessThanOrEqual": "5.10.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "5.15.157",
                                                        "lessThanOrEqual": "5.15.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.1.87",
                                                        "lessThanOrEqual": "6.1.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.6.28",
                                                        "lessThanOrEqual": "6.6.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.8.7",
                                                        "lessThanOrEqual": "6.8.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.9",
                                                        "lessThanOrEqual": "*",
                                                        "status": "unaffected",
                                                        "versionType": "original_commit_for_fix"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://git.kernel.org/stable/c/b5808d40093403334d939e2c3c417144d12a6f33",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/b5808d40093403334d939e2c3c417144d12a6f33"
            },
            {
                "url": "https://git.kernel.org/stable/c/93eb31e7c3399e326259f2caa17be1e821f5a412",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/93eb31e7c3399e326259f2caa17be1e821f5a412"
            },
            {
                "url": "https://git.kernel.org/stable/c/5062d1f4f07facbdade0f402d9a04a788f52e26d",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/5062d1f4f07facbdade0f402d9a04a788f52e26d"
            },
            {
                "url": "https://git.kernel.org/stable/c/2df2dd27066cdba8041e46a64362325626bdfb2e",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/2df2dd27066cdba8041e46a64362325626bdfb2e"
            },
            {
                "url": "https://git.kernel.org/stable/c/62029bc9ff2c17a4e3a2478d83418ec575413808",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/62029bc9ff2c17a4e3a2478d83418ec575413808"
            },
            {
                "url": "https://git.kernel.org/stable/c/d15023fb407337028a654237d8968fefdcf87c2f",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/d15023fb407337028a654237d8968fefdcf87c2f"
            },
            {
                "url": "https://git.kernel.org/stable/c/36b57c7d2f8b7de224980f1a284432846ad71ca0",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/36b57c7d2f8b7de224980f1a284432846ad71ca0"
            },
            {
                "url": "https://git.kernel.org/stable/c/325f3fb551f8cd672dbbfc4cf58b14f9ee3fc9e8",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/325f3fb551f8cd672dbbfc4cf58b14f9ee3fc9e8"
            },
            {
                "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
                "refsource": "MISC",
                "name": "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"
            },
            {
                "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
                "refsource": "MISC",
                "name": "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"
            }
        ]
    },
    "generator": {
        "engine": "bippy-a5840b7849dd"
    }
}