{"id":"CVE-2026-68245","state":"PUBLISHED","title":"drm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_info_pasid()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_info_pasid()\n\nThe vm pointer returned from amdgpu_vm_get_vm_from_pasid() is only\nvalid while the lock is still being held. Once xa_unlock_irqrestore is\ncalled and returned, the pointer is no longer under lock and is subject\nto modification. Since, the caller still dereferences vm->task_info in\namdgpu_vm_get_task_info_vm() after the lock is removed, this causes a\nuse after unlock problem.\n\nRemove the lifetime issue present in amdgpu_vm_get_task_info_pasid()\nthrough removing the amdgpu_vm_get_vm_from_pasid() function from\namdgpu_vm.c and making the relevant code inline to hold the lock while\nit is still in use.\n\n(cherry picked from commit 9d01579f3f868b333acc901815972685989092c7)","publishedAt":"2026-08-10T12:01:11.501Z","updatedAt":"2026-10-30T12:28:14.789Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"fe16a7e5336ae888751984e30c451fbf7cfa5df7","versionType":"git"},{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"1173190412fb9d12e7efce76734118d9712ff970","versionType":"git"},{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"5d5fb9124a2bba96a7807086d8fe0f7ce810d546","versionType":"git"},{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"04cc4aa3617b0ed67e859f91f09de5d896a46f3a","versionType":"git"},{"version":"aa22d6c58505d239814b5ef8fa7da4ce43e9212b","status":"affected","versionType":"git"},{"version":"251840f22eff35c25de531a3fcb523df94c128c0","status":"affected","versionType":"git"},{"version":"6.1.191","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.160","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c"]}],"references":["https://git.kernel.org/stable/c/fe16a7e5336ae888751984e30c451fbf7cfa5df7","https://git.kernel.org/stable/c/1173190412fb9d12e7efce76734118d9712ff970","https://git.kernel.org/stable/c/5d5fb9124a2bba96a7807086d8fe0f7ce810d546","https://git.kernel.org/stable/c/04cc4aa3617b0ed67e859f91f09de5d896a46f3a"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-30T12:46:06.359Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68245.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68245","state":"PUBLISHED","datePublished":"2026-08-10T12:01:11.501Z","dateUpdated":"2026-10-30T12:28:14.789Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.377Z"},"containers":{"cna":{"title":"drm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_info_pasid()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_info_pasid()\n\nThe vm pointer returned from amdgpu_vm_get_vm_from_pasid() is only\nvalid while the lock is still being held. Once xa_unlock_irqrestore is\ncalled and returned, the pointer is no longer under lock and is subject\nto modification. Since, the caller still dereferences vm->task_info in\namdgpu_vm_get_task_info_vm() after the lock is removed, this causes a\nuse after unlock problem.\n\nRemove the lifetime issue present in amdgpu_vm_get_task_info_pasid()\nthrough removing the amdgpu_vm_get_vm_from_pasid() function from\namdgpu_vm.c and making the relevant code inline to hold the lock while\nit is still in use.\n\n(cherry picked from commit 9d01579f3f868b333acc901815972685989092c7)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"fe16a7e5336ae888751984e30c451fbf7cfa5df7","versionType":"git"},{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"1173190412fb9d12e7efce76734118d9712ff970","versionType":"git"},{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"5d5fb9124a2bba96a7807086d8fe0f7ce810d546","versionType":"git"},{"version":"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","status":"affected","lessThan":"04cc4aa3617b0ed67e859f91f09de5d896a46f3a","versionType":"git"},{"version":"aa22d6c58505d239814b5ef8fa7da4ce43e9212b","status":"affected","versionType":"git"},{"version":"251840f22eff35c25de531a3fcb523df94c128c0","status":"affected","versionType":"git"},{"version":"6.1.191","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.160","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fe16a7e5336ae888751984e30c451fbf7cfa5df7"},{"url":"https://git.kernel.org/stable/c/1173190412fb9d12e7efce76734118d9712ff970"},{"url":"https://git.kernel.org/stable/c/5d5fb9124a2bba96a7807086d8fe0f7ce810d546"},{"url":"https://git.kernel.org/stable/c/04cc4aa3617b0ed67e859f91f09de5d896a46f3a"}],"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 code is reached through the amdgpu DRM device (render node) via command submission causing a GPU VM page fault or a ring timeout; this requires local access to /dev/dri/renderD*, with no network exposure.\nAC:L - The attacker controls both sides of the race: it can generate GPU page faults or job timeouts at will while concurrently closing DRM file descriptors to free the amdgpu_vm/fpriv, and can retry the race arbitrarily many times until it wins.\nPR:L - Only an unprivileged local account with access to the AMD GPU render node is needed; render nodes are world/group accessible by default on desktop, Android and container workloads, and no capability is checked on the CS/fault path.\nUI:N - The attacker's own processes generate the GPU faults and the concurrent VM teardown; no action by any other user is required.\nS:U - The corruption stays within the kernel's own security authority — the freed amdgpu_vm/amdgpu_task_info are kernel heap objects, with no crossing of a VM or IOMMU boundary.\nC:H - The stale vm pointer is dereferenced after free, reading vm->task_info out of reallocated kernel heap memory, and the resulting task_info contents (process name, pid, tgid) are then printed/exported, allowing disclosure of attacker-groomed or unrelated kernel data.\nI:H - kref_get() is performed on memory that may already be freed and reallocated, writing an increment into another object's fields, and the paired kref_put() can drop a foreign refcount to zero — a classic use-after-free/refcount-corruption primitive leveraged for arbitrary write and privilege escalation.\nA:H - The use-after-free occurs in a GPU interrupt handler and the reset/timeout path; dereferencing freed memory or corrupting a reused slab object readily oopses or panics the kernel, and it can be retriggered repeatedly."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:28:14.789Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.101"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.160"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-68245","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:46:07.633489Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","lang":"en","type":"CWE","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:58:57.944Z"}}]}}}