{"id":"CVE-2026-139554","state":"PUBLISHED","title":"drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset\n\nThe user queue UAPI permits the WPTR at any 8-byte aligned offset within a\nBO. amdgpu_userq_fence_read_wptr() locates the mapping containing the WPTR\naddress, but amdgpu_bo_kmap() returns the start of the BO, so the code read\nthe first u64 regardless of the WPTR offset. USERQ_SIGNAL uses this value as\nthe exported fence seqno, so a wrong read makes the fence signal early (or\nnever), breaking dependency synchronization.\n\nTranslate the WPTR GPU address to a byte offset within the BO, accounting\nfor the VA mapping start and the mapping's BO offset, before reading it.","publishedAt":"2026-11-30T13:35:50.099Z","updatedAt":"2026-11-30T13:35:50.099Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a292fdecd72834b3bec380baa5db1e69e7f70679","status":"affected","lessThan":"cef7ee11e45c54ac06710f0d990ecd7d4cac5ed2","versionType":"git"},{"version":"a292fdecd72834b3bec380baa5db1e69e7f70679","status":"affected","lessThan":"bbe972532966269d52f689d0595b6ac30201cda3","versionType":"git"},{"version":"a292fdecd72834b3bec380baa5db1e69e7f70679","status":"affected","lessThan":"c7ae3b2043282da8de92bd925c8f6bb614633181","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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_userq_fence.c"]}],"references":["https://git.kernel.org/stable/c/cef7ee11e45c54ac06710f0d990ecd7d4cac5ed2","https://git.kernel.org/stable/c/bbe972532966269d52f689d0595b6ac30201cda3","https://git.kernel.org/stable/c/c7ae3b2043282da8de92bd925c8f6bb614633181"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139554.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139554","state":"PUBLISHED","datePublished":"2026-11-30T13:35:50.099Z","dateUpdated":"2026-11-30T13:35:50.099Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.940Z"},"containers":{"cna":{"title":"drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset\n\nThe user queue UAPI permits the WPTR at any 8-byte aligned offset within a\nBO. amdgpu_userq_fence_read_wptr() locates the mapping containing the WPTR\naddress, but amdgpu_bo_kmap() returns the start of the BO, so the code read\nthe first u64 regardless of the WPTR offset. USERQ_SIGNAL uses this value as\nthe exported fence seqno, so a wrong read makes the fence signal early (or\nnever), breaking dependency synchronization.\n\nTranslate the WPTR GPU address to a byte offset within the BO, accounting\nfor the VA mapping start and the mapping's BO offset, before reading it."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a292fdecd72834b3bec380baa5db1e69e7f70679","status":"affected","lessThan":"cef7ee11e45c54ac06710f0d990ecd7d4cac5ed2","versionType":"git"},{"version":"a292fdecd72834b3bec380baa5db1e69e7f70679","status":"affected","lessThan":"bbe972532966269d52f689d0595b6ac30201cda3","versionType":"git"},{"version":"a292fdecd72834b3bec380baa5db1e69e7f70679","status":"affected","lessThan":"c7ae3b2043282da8de92bd925c8f6bb614633181","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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_userq_fence.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cef7ee11e45c54ac06710f0d990ecd7d4cac5ed2"},{"url":"https://git.kernel.org/stable/c/bbe972532966269d52f689d0595b6ac30201cda3"},{"url":"https://git.kernel.org/stable/c/c7ae3b2043282da8de92bd925c8f6bb614633181"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:50.099Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}