CVE-2024-27042

In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix potential out-of-bounds access in 'amdgpu_discovery_reg_base_init()' The issue arises when the array 'adev->vcn.vcn_config' is accessed before checking if the index 'adev->vcn.num_vcn_inst' is within the bounds of the array. The fix involves moving the bounds check before the array access. This ensures that 'adev->vcn.num_vcn_inst' is within the bounds of the array before it is used as an index. Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1289 amdgpu_discovery_reg_base_init() error: testing array offset 'adev->vcn.num_vcn_inst' after use.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

23 Dec 2024, 19:12

Type Values Removed Values Added
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
References () https://git.kernel.org/stable/c/8db10cee51e3e11a6658742465edc21986cf1e8d - () https://git.kernel.org/stable/c/8db10cee51e3e11a6658742465edc21986cf1e8d - Patch
References () https://git.kernel.org/stable/c/8f3e68c6a3fff53c2240762a47a0045d89371775 - () https://git.kernel.org/stable/c/8f3e68c6a3fff53c2240762a47a0045d89371775 - Patch
References () https://git.kernel.org/stable/c/b33d4af102b9c1f7a83d3f0ad3cab7d2bab8f058 - () https://git.kernel.org/stable/c/b33d4af102b9c1f7a83d3f0ad3cab7d2bab8f058 - Patch
References () https://git.kernel.org/stable/c/cdb637d339572398821204a1142d8d615668f1e9 - () https://git.kernel.org/stable/c/cdb637d339572398821204a1142d8d615668f1e9 - Patch
CWE CWE-129

Information

Published : 2024-05-01 13:15

Updated : 2024-12-23 19:12


NVD link : CVE-2024-27042

Mitre link : CVE-2024-27042

CVE.ORG link : CVE-2024-27042


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-129

Improper Validation of Array Index