Skip to contentSkip to conversation

CVE-2023-53819: amdgpu: validate offset_in_bo of drm_amdgpu_gem_va

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 9, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

amdgpu: validate offset_in_bo of drm_amdgpu_gem_va

This is motivated by OOB access in amdgpu_vm_update_range when offset_in_bo+map_size overflows.

v2: keep the validations in amdgpu_vm_bo_map
v3: add the validations to amdgpu_vm_bo_map/amdgpu_vm_bo_replace_map
rather than to amdgpu_gem_va_ioctl

The Linux kernel CVE team has assigned CVE-2023-53819 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 4.19.313 with commit 82aace80cfaab778245bd2f9e31b67953725e4d0
	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 5.4.275 with commit d83c337e654d58d3edd15a2ae76e87dc601c07d9
	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 5.10.188 with commit 968e27fd037ec4732068820a9b9836eccc0e0a12
	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 5.15.121 with commit 4300a47e4017c9febb60ffa7d39723eeaed00f2b
	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 6.1.39 with commit b10db1d2137415e5e7f9706d96cfe77539c499d4
	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 6.3.13 with commit f015aadc0d973047f49526a127e900c488d4e425
	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 6.4.4 with commit bc6dbf34dc4fb639522f3e8e66ef05997c0441ee
	Issue introduced in 4.2 with commit 9f7eb5367d0001536c361bd1400e14521f854ff1 and fixed in 6.5 with commit 9f0bcf49e9895cb005d78b33a5eebfa11711b425

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2023-53819

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/82aace80cfaab778245bd2f9e31b67953725e4d0
	https://git.kernel.org/stable/c/d83c337e654d58d3edd15a2ae76e87dc601c07d9
	https://git.kernel.org/stable/c/968e27fd037ec4732068820a9b9836eccc0e0a12
	https://git.kernel.org/stable/c/4300a47e4017c9febb60ffa7d39723eeaed00f2b
	https://git.kernel.org/stable/c/b10db1d2137415e5e7f9706d96cfe77539c499d4
	https://git.kernel.org/stable/c/f015aadc0d973047f49526a127e900c488d4e425
	https://git.kernel.org/stable/c/bc6dbf34dc4fb639522f3e8e66ef05997c0441ee
	https://git.kernel.org/stable/c/9f0bcf49e9895cb005d78b33a5eebfa11711b425