197 lines
11 KiB
JSON
197 lines
11 KiB
JSON
{
|
||
"dataType": "CVE_RECORD",
|
||
"dataVersion": "5.2",
|
||
"cveMetadata": {
|
||
"cveId": "CVE-2022-50303",
|
||
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
||
"state": "PUBLISHED",
|
||
"assignerShortName": "Linux",
|
||
"dateReserved": "2025-09-15T14:18:36.812Z",
|
||
"datePublished": "2025-09-15T14:45:58.735Z",
|
||
"dateUpdated": "2026-10-15T21:31:19.831Z"
|
||
},
|
||
"containers": {
|
||
"cna": {
|
||
"providerMetadata": {
|
||
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
||
"shortName": "Linux",
|
||
"dateUpdated": "2026-08-15T12:23:17.587Z"
|
||
},
|
||
"descriptions": [
|
||
{
|
||
"lang": "en",
|
||
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix double release compute pasid\n\nIf kfd_process_device_init_vm returns failure after vm is converted to\ncompute vm and vm->pasid set to compute pasid, KFD will not take\npdd->drm_file reference. As a result, drm close file handler maybe\ncalled to release the compute pasid before KFD process destroy worker to\nrelease the same pasid and set vm->pasid to zero, this generates below\nWARNING backtrace and NULL pointer access.\n\nAdd helper amdgpu_amdkfd_gpuvm_set_vm_pasid and call it at the last step\nof kfd_process_device_init_vm, to ensure vm pasid is the original pasid\nif acquiring vm failed or is the compute pasid with pdd->drm_file\nreference taken to avoid double release same pasid.\n\n amdgpu: Failed to create process VM object\n ida_free called for id=32770 which is not allocated.\n WARNING: CPU: 57 PID: 72542 at ../lib/idr.c:522 ida_free+0x96/0x140\n RIP: 0010:ida_free+0x96/0x140\n Call Trace:\n amdgpu_pasid_free_delayed+0xe1/0x2a0 [amdgpu]\n amdgpu_driver_postclose_kms+0x2d8/0x340 [amdgpu]\n drm_file_free.part.13+0x216/0x270 [drm]\n drm_close_helper.isra.14+0x60/0x70 [drm]\n drm_release+0x6e/0xf0 [drm]\n __fput+0xcc/0x280\n ____fput+0xe/0x20\n task_work_run+0x96/0xc0\n do_exit+0x3d0/0xc10\n\n BUG: kernel NULL pointer dereference, address: 0000000000000000\n RIP: 0010:ida_free+0x76/0x140\n Call Trace:\n amdgpu_pasid_free_delayed+0xe1/0x2a0 [amdgpu]\n amdgpu_driver_postclose_kms+0x2d8/0x340 [amdgpu]\n drm_file_free.part.13+0x216/0x270 [drm]\n drm_close_helper.isra.14+0x60/0x70 [drm]\n drm_release+0x6e/0xf0 [drm]\n __fput+0xcc/0x280\n ____fput+0xe/0x20\n task_work_run+0x96/0xc0\n do_exit+0x3d0/0xc10"
|
||
}
|
||
],
|
||
"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 - Reachable only via local ioctls on /dev/kfd (AMDKFD_IOC_ACQUIRE_VM) together with an amdgpu DRM render-node fd; no network or adjacent-protocol path exists.\nAC:L - An unprivileged GPU user can induce post-PASID-assignment failure (e.g., memory pressure in init_kfd_vm or GPUVM alloc for IB/CWSR) and then close the DRM fd before KFD teardown, fully controlling the double-free sequence.\nPR:L - Requires only ordinary access to /dev/kfd and render nodes (render group / seat uaccess, mode 0660); AMDKFD_IOC_ACQUIRE_VM has no capability flag and does not need root.\nUI:N - The attacker triggers the failing acquire_vm ioctl and subsequent fd close/exit entirely with their own process; no victim action is required.\nS:U - Impact stays within the host kernel’s authority (local DoS / same-host GPU PASID isolation failure); this is not a VM escape or cross-authority boundary breach.\nC:H - Double-free of the PASID ID allows reallocation to another process between frees, enabling PASID/IOMMU address-space confusion and cross-process GPU memory disclosure in the worst reasonable deployment.\nI:H - The same PASID reuse can overwrite VM lookups in the PASID xarray and break IOMMU isolation, giving a path to corrupt another process’s GPU address space; double-free is treated as high integrity impact.\nA:H - The documented second ida_free hits a NULL bitmap and causes a kernel NULL-pointer dereference/oops, reliably denying service."
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"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.h",
|
||
"drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c",
|
||
"drivers/gpu/drm/amd/amdkfd/kfd_process.c"
|
||
],
|
||
"versions": [
|
||
{
|
||
"version": "1685b01a858872075bc258a350153de0c7e95404",
|
||
"lessThan": "89f0d766c9e3fdeafbed6f855d433c2768cde862",
|
||
"status": "affected",
|
||
"versionType": "git"
|
||
},
|
||
{
|
||
"version": "1685b01a858872075bc258a350153de0c7e95404",
|
||
"lessThan": "a02c07b619899179384fde06f951530438a3512d",
|
||
"status": "affected",
|
||
"versionType": "git"
|
||
},
|
||
{
|
||
"version": "1685b01a858872075bc258a350153de0c7e95404",
|
||
"lessThan": "1a799c4c190ea9f0e81028e3eb3037ed0ab17ff5",
|
||
"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.h",
|
||
"drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c",
|
||
"drivers/gpu/drm/amd/amdkfd/kfd_process.c"
|
||
],
|
||
"versions": [
|
||
{
|
||
"version": "4.20",
|
||
"status": "affected"
|
||
},
|
||
{
|
||
"version": "0",
|
||
"lessThan": "4.20",
|
||
"status": "unaffected",
|
||
"versionType": "semver"
|
||
},
|
||
{
|
||
"version": "6.0.19",
|
||
"lessThanOrEqual": "6.0.*",
|
||
"status": "unaffected",
|
||
"versionType": "semver"
|
||
},
|
||
{
|
||
"version": "6.1.5",
|
||
"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": "4.20",
|
||
"versionEndExcluding": "6.0.19"
|
||
},
|
||
{
|
||
"vulnerable": true,
|
||
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
||
"versionStartIncluding": "4.20",
|
||
"versionEndExcluding": "6.1.5"
|
||
},
|
||
{
|
||
"vulnerable": true,
|
||
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
||
"versionStartIncluding": "4.20",
|
||
"versionEndExcluding": "6.2"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"references": [
|
||
{
|
||
"url": "https://git.kernel.org/stable/c/89f0d766c9e3fdeafbed6f855d433c2768cde862"
|
||
},
|
||
{
|
||
"url": "https://git.kernel.org/stable/c/a02c07b619899179384fde06f951530438a3512d"
|
||
},
|
||
{
|
||
"url": "https://git.kernel.org/stable/c/1a799c4c190ea9f0e81028e3eb3037ed0ab17ff5"
|
||
}
|
||
],
|
||
"title": "drm/amdkfd: Fix double release compute pasid",
|
||
"x_generator": {
|
||
"engine": "bippy-1.2.0"
|
||
}
|
||
},
|
||
"adp": [
|
||
{
|
||
"metrics": [
|
||
{
|
||
"other": {
|
||
"type": "ssvc",
|
||
"content": {
|
||
"id": "CVE-2022-50303",
|
||
"role": "CISA Coordinator",
|
||
"options": [
|
||
{
|
||
"Exploitation": "none"
|
||
},
|
||
{
|
||
"Automatable": "no"
|
||
},
|
||
{
|
||
"Technical Impact": "total"
|
||
}
|
||
],
|
||
"version": "2.0.3",
|
||
"timestamp": "2026-10-15T21:30:49.778372Z"
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"title": "CISA ADP Vulnrichment",
|
||
"providerMetadata": {
|
||
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
|
||
"shortName": "CISA-ADP",
|
||
"dateUpdated": "2026-10-15T21:31:19.831Z"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
} |