{"id":"CVE-2026-68265","state":"PUBLISHED","title":"drm/xe/vm: Fix BO prefetch with CONSULT_MEM_ADVISE_PREF_LOC","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe/vm: Fix BO prefetch with CONSULT_MEM_ADVISE_PREF_LOC\n\nWhen prefetch region is DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC for a BO VMA,\nthe code used it as an index into region_to_mem_type[], causing an\nout-of-bounds access since the value is -1.\n\nResolve the preferred location for BO VMAs directly: local VRAM on dGFX\n(using the BO's tile placement) or system memory on iGPU.\n\nDiscovered using AI-assisted static analysis confirmed by Intel Product\nSecurity.\n\nv2:\n-Fix null dereference\n\n(cherry picked from commit d9a4906ac03be9f6ed3f3b45c56c866b867fd75b)","publishedAt":"2026-08-10T12:01:40.271Z","updatedAt":"2026-10-19T20:58:58.789Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c1bb69a2e8e2d55c3725e304d8b8fd189ee43fbe","status":"affected","lessThan":"d256dac008d1d9e6378aa1a5454e89a8292d174c","versionType":"git"},{"version":"c1bb69a2e8e2d55c3725e304d8b8fd189ee43fbe","status":"affected","lessThan":"c4affa4e8bc8086b4d3e8d6cf1055a624f813d72","versionType":"git"},{"version":"c1bb69a2e8e2d55c3725e304d8b8fd189ee43fbe","status":"affected","lessThan":"7bc597ce74bab4153b2009c92eccf889e9d74044","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/xe/xe_vm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.44","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/xe/xe_vm.c"]}],"references":["https://git.kernel.org/stable/c/d256dac008d1d9e6378aa1a5454e89a8292d174c","https://git.kernel.org/stable/c/c4affa4e8bc8086b4d3e8d6cf1055a624f813d72","https://git.kernel.org/stable/c/7bc597ce74bab4153b2009c92eccf889e9d74044"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68265.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68265","state":"PUBLISHED","datePublished":"2026-08-10T12:01:40.271Z","dateUpdated":"2026-10-19T20:58:58.789Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.378Z"},"containers":{"cna":{"title":"drm/xe/vm: Fix BO prefetch with CONSULT_MEM_ADVISE_PREF_LOC","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe/vm: Fix BO prefetch with CONSULT_MEM_ADVISE_PREF_LOC\n\nWhen prefetch region is DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC for a BO VMA,\nthe code used it as an index into region_to_mem_type[], causing an\nout-of-bounds access since the value is -1.\n\nResolve the preferred location for BO VMAs directly: local VRAM on dGFX\n(using the BO's tile placement) or system memory on iGPU.\n\nDiscovered using AI-assisted static analysis confirmed by Intel Product\nSecurity.\n\nv2:\n-Fix null dereference\n\n(cherry picked from commit d9a4906ac03be9f6ed3f3b45c56c866b867fd75b)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c1bb69a2e8e2d55c3725e304d8b8fd189ee43fbe","status":"affected","lessThan":"d256dac008d1d9e6378aa1a5454e89a8292d174c","versionType":"git"},{"version":"c1bb69a2e8e2d55c3725e304d8b8fd189ee43fbe","status":"affected","lessThan":"c4affa4e8bc8086b4d3e8d6cf1055a624f813d72","versionType":"git"},{"version":"c1bb69a2e8e2d55c3725e304d8b8fd189ee43fbe","status":"affected","lessThan":"7bc597ce74bab4153b2009c92eccf889e9d74044","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/xe/xe_vm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.44","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/xe/xe_vm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d256dac008d1d9e6378aa1a5454e89a8292d174c"},{"url":"https://git.kernel.org/stable/c/c4affa4e8bc8086b4d3e8d6cf1055a624f813d72"},{"url":"https://git.kernel.org/stable/c/7bc597ce74bab4153b2009c92eccf889e9d74044"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","baseScore":7.3,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only through the DRM_IOCTL_XE_VM_BIND ioctl on an xe render node (/dev/dri/renderD*), which requires local access to the device file; there is no network-facing path into drivers/gpu/drm/xe/xe_vm.c.\nAC:L - Fully deterministic and attacker-controlled: map any BO, then issue a PREFETCH bind op with prefetch_region = DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC (-1), which the ioctl validator explicitly accepts, and the out-of-bounds index is taken every time. No race, no memory-layout grooming, and no special config beyond a normal Intel Xe GPU.\nPR:L - XE_VM_BIND is registered DRM_RENDER_ALLOW, so any unprivileged user or sandboxed/containerized process holding a render-node fd (the norm for desktop, Android and GPU containers) can drive the path; no capability or root is needed.\nUI:N - The attacker performs the entire sequence (create BO, bind, prefetch) from their own process via ioctls; no victim action or interaction is required.\nS:U - The out-of-bounds access and any resulting fault or misbehaviour stay within the kernel of the same machine and are not mediated across a VM, IOMMU or other security authority boundary.\nC:H - region_to_mem_type[] is a 3-entry array indexed with 0xFFFFFFFF, an unbounded wild read roughly 16 GB past the object rather than a small bounded overread; the loaded word is consumed by the driver and, on layouts where the address is readable, exposes memory the caller must never observe, so a high confidentiality impact is the defensible assessment.\nI:L - The out-of-bounds word is used directly as the mem_type argument to xe_bo_migrate(), so uninitialized/foreign data drives xe_bo_can_migrate(), mem_type_is_vram() and add_vram() placement decisions, letting a buffer object be moved to a memory region the caller never requested; the subsequent placement check bounds this to limited modification rather than an arbitrary write.\nA:H - The 0xFFFFFFFF index computes an address far outside any valid mapping (on x86-64 the module-relative offset wraps into a non-kernel address), so the read faults in kernel mode inside an in-progress drm_exec transaction holding VM and BO locks, producing an oops and a wedged GPU context — a repeatable crash any local user can trigger."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:01:57.952Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-68265","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-16T15:46:24.156978Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","type":"CWE","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:58:58.789Z"}}]}}}