{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50528",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-10-07T15:15:38.664Z",
        "datePublished": "2025-10-07T15:19:19.909Z",
        "dateUpdated": "2026-08-05T08:59:04.060Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:59:04.060Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix memory leakage\n\nThis patch fixes potential memory leakage and seg fault\nin  _gpuvm_import_dmabuf() function"
                }
            ],
            "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 bug is reached only through the local AMDKFD_IOC_IMPORT_DMABUF ioctl on /dev/kfd (kfd_ioctl → kfd_ioctl_import_dmabuf → amdgpu_amdkfd_gpuvm_import_dmabuf), not via network or adjacent-link protocols.\nAC:L - A local attacker who can open /dev/kfd can prepare a valid amdgpu dmabuf, call import, and induce memory pressure so the post-kzalloc drm_vma_node_allow kmalloc fails; that OOM condition is attacker-influenced, not a victim-only race or layout.\nPR:L - /dev/kfd is udev MODE 0660 GROUP render with seat uaccess, and IMPORT_DMABUF has no capability flag; any unprivileged render/seat user can open the device and issue the ioctl.\nUI:N - The attacker opens /dev/kfd, acquires a VM, and issues IMPORT_DMABUF themselves; no separate victim action is required.\nS:U - Impact is host-kernel memory corruption/DoS within the same OS security authority; the path does not cross a VM, IOMMU, or other boundary.\nC:H - kfree(mem) frees a stack address, so free_large_kmalloc/__free_pages releases the wrong page (or a miscomputed page under VMAP_STACK), enabling allocator/page reuse and kernel memory disclosure primitives.\nI:H - The same invalid free returns a live kernel page to the allocator while it may still be in use, yielding memory corruption and write/control-flow hijack primitives beyond a pure crash.\nA:H - The fix commit documents a segfault on this path, and freeing the wrong page predictably causes kernel oops/panic or hang, which is Availability High."
                        }
                    ]
                }
            ],
            "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_gpuvm.c"
                    ],
                    "versions": [
                        {
                            "version": "d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd",
                            "lessThan": "8876793e56ec69b3be2a883b4bc440df3dbb1865",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd",
                            "lessThan": "7356d8e367d0e025a568e369c4cf575722cac60f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd",
                            "lessThan": "c65564790048fa416ccd26a8945c7ec0cf9ef0b7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd",
                            "lessThan": "75818afff631e1ea785a82c3e8bb82eb0dee539c",
                            "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_gpuvm.c"
                    ],
                    "versions": [
                        {
                            "version": "5.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.86",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.16",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.2",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.2",
                            "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": "5.14",
                                    "versionEndExcluding": "5.15.86"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "6.0.16"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "6.1.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "6.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/8876793e56ec69b3be2a883b4bc440df3dbb1865"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7356d8e367d0e025a568e369c4cf575722cac60f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c65564790048fa416ccd26a8945c7ec0cf9ef0b7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/75818afff631e1ea785a82c3e8bb82eb0dee539c"
                }
            ],
            "title": "drm/amdkfd: Fix memory leakage",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}