{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-49991",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-10-21T12:17:06.054Z",
        "datePublished": "2024-10-21T18:02:33.805Z",
        "dateUpdated": "2026-08-05T11:40:56.884Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:40:56.884Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer\n\nPass pointer reference to amdgpu_bo_unref to clear the correct pointer,\notherwise amdgpu_bo_unref clear the local variable, the original pointer\nnot set to NULL, this could cause use-after-free bug."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerable paths are reached only through ioctls on the local `/dev/kfd` character device (`kfd_ioctl_create_queue`, `kfd_ioctl_destroy_queue`) and through process teardown in `kfd_process_destroy_pdds()`. No network or adjacent-network exposure exists.\nAC:L - The attacker fully controls queue creation/destruction and process exit, so the free of the `amdgpu_bo` and the subsequent reuse of the stale pointer are directly and repeatably triggerable with no race or memory-layout condition outside the attacker's influence. Standard heap grooming from userspace controls what reoccupies the freed object.\nPR:L - `kfd_open()` performs no capability check; any local user holding a file descriptor on `/dev/kfd` (render group on desktops, or the device node passed directly into ROCm containers) can drive the paths. No root or CAP_SYS_ADMIN is needed.\nUI:N - The attacker triggers everything from its own process via ioctls and normal process exit; no action by another user or administrator is required.\nS:U - The corruption stays within the kernel's own memory and security authority — it is standard in-kernel memory corruption, not a hypervisor, IOMMU, or sandbox boundary crossing.\nC:H - Use-after-free on a `struct amdgpu_bo` lets the attacker reclaim the freed slab object with attacker-shaped data and have the driver dereference it (e.g. `amdgpu_bo_gpu_offset(q->wptr_bo)`, kmap/CPU-pointer fields), yielding an arbitrary kernel-memory read primitive and disclosure of kernel addresses and contents.\nI:H - The same UAF gives a write primitive — the freed `amdgpu_bo` is subsequently written through (`amdgpu_bo_kunmap`, `amdgpu_bo_unpin`, refcount and TTM list manipulation) and contains function-pointer-bearing sub-structures, so heap spraying can be leveraged into controlled writes and control-flow hijack for privilege escalation.\nA:H - Even without full exploitation, dereferencing and double-unref'ing a freed buffer object corrupts TTM/slab state and reliably produces an oops or kernel panic, taking down the machine — and it is triggerable repeatedly by any local user with GPU access."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c",
                        "drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h",
                        "drivers/gpu/drm/amd/amdkfd/kfd_chardev.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_device.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_process.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"
                    ],
                    "versions": [
                        {
                            "version": "130e0371b7d454bb4a861253c822b9f911ad5d19",
                            "lessThan": "e7831613cbbcd9058d3658fbcdc5d5884ceb2e0c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "130e0371b7d454bb4a861253c822b9f911ad5d19",
                            "lessThan": "30ceb873cc2e97348d9da2265b2d1ddf07f682e1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "130e0371b7d454bb4a861253c822b9f911ad5d19",
                            "lessThan": "71f3240f82987f0f070ea5bed559033de7d4c0e1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "130e0371b7d454bb4a861253c822b9f911ad5d19",
                            "lessThan": "6c9289806591807e4e3be9a23df8ee2069180055",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "130e0371b7d454bb4a861253c822b9f911ad5d19",
                            "lessThan": "c86ad39140bbcb9dc75a10046c2221f657e8083b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c",
                        "drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h",
                        "drivers/gpu/drm/amd/amdkfd/kfd_chardev.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_device.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_process.c",
                        "drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"
                    ],
                    "versions": [
                        {
                            "version": "4.3",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.3",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.118",
                            "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"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.3",
                                    "versionEndExcluding": "6.1.118"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.3",
                                    "versionEndExcluding": "6.6.55"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.3",
                                    "versionEndExcluding": "6.10.14"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.3",
                                    "versionEndExcluding": "6.11.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.3",
                                    "versionEndExcluding": "6.12"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/e7831613cbbcd9058d3658fbcdc5d5884ceb2e0c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/30ceb873cc2e97348d9da2265b2d1ddf07f682e1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/71f3240f82987f0f070ea5bed559033de7d4c0e1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6c9289806591807e4e3be9a23df8ee2069180055"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c86ad39140bbcb9dc75a10046c2221f657e8083b"
                }
            ],
            "title": "drm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-49991",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-10-22T13:31:14.431279Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-10-22T13:38:42.686Z"
                }
            },
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2025-11-03T22:24:09.828Z"
                }
            }
        ]
    }
}