{"id":"CVE-2026-99149","state":"PUBLISHED","title":"drm/amdgpu: fix GEM object leak on ENOMEM in userptr ioctl","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: fix GEM object leak on ENOMEM in userptr ioctl\n\nWhen amdgpu_hmm_range_alloc() fails amdgpu_gem_userptr_ioctl() returns\n-ENOMEM right away and skips the cleanup every other error path goes\nthrough. The GEM object, the bo->parent reference on the VM root and the\nMMU notifier registration are all left behind.\n\nUse release_object here, not user_pages_done, range is still NULL at\nthis point.\n\n(cherry picked from commit bbe739e407a542073ec1a7872b14843566b4919e)","publishedAt":"2026-10-28T10:35:05.015Z","updatedAt":"2026-10-28T10:35:05.015Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e095b55155ef69a8ae0eb114a7fd2a381c012f33","status":"affected","lessThan":"64a6d40156ae98caafc922c6d79fe202b0acd836","versionType":"git"},{"version":"e095b55155ef69a8ae0eb114a7fd2a381c012f33","status":"affected","lessThan":"3c516a5646285442e1cd71dff2584b77eb4fc421","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.2.13","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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_gem.c"]}],"references":["https://git.kernel.org/stable/c/64a6d40156ae98caafc922c6d79fe202b0acd836","https://git.kernel.org/stable/c/3c516a5646285442e1cd71dff2584b77eb4fc421"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99149.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99149","state":"PUBLISHED","datePublished":"2026-10-28T10:35:05.015Z","dateUpdated":"2026-10-28T10:35:05.015Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.396Z"},"containers":{"cna":{"title":"drm/amdgpu: fix GEM object leak on ENOMEM in userptr ioctl","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: fix GEM object leak on ENOMEM in userptr ioctl\n\nWhen amdgpu_hmm_range_alloc() fails amdgpu_gem_userptr_ioctl() returns\n-ENOMEM right away and skips the cleanup every other error path goes\nthrough. The GEM object, the bo->parent reference on the VM root and the\nMMU notifier registration are all left behind.\n\nUse release_object here, not user_pages_done, range is still NULL at\nthis point.\n\n(cherry picked from commit bbe739e407a542073ec1a7872b14843566b4919e)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e095b55155ef69a8ae0eb114a7fd2a381c012f33","status":"affected","lessThan":"64a6d40156ae98caafc922c6d79fe202b0acd836","versionType":"git"},{"version":"e095b55155ef69a8ae0eb114a7fd2a381c012f33","status":"affected","lessThan":"3c516a5646285442e1cd71dff2584b77eb4fc421","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.2.13","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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_gem.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/64a6d40156ae98caafc922c6d79fe202b0acd836"},{"url":"https://git.kernel.org/stable/c/3c516a5646285442e1cd71dff2584b77eb4fc421"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-28T10:35:05.015Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.2.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}