CVE-2024-27042: drm/amdgpu: Fix potential out-of-bounds access in 'amdgpu_discovery_reg_base_init()'

Published May 1, 2024
·
Updated

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

drm/amdgpu: Fix potential out-of-bounds access in 'amdgpudiscoveryregbaseinit()'

The issue arises when the array 'adev->vcn.vcnconfig' is accessed before checking if the index 'adev->vcn.numvcninst' is within the bounds of the array.

The fix involves moving the bounds check before the array access. This ensures that 'adev->vcn.numvcninst' is within the bounds of the array before it is used as an index.

Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpudiscovery.c:1289 amdgpudiscoveryregbaseinit() error: testing array offset 'adev->vcn.numvcninst' after use.

Other sources

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

drm/amdgpu: Fix potential out-of-bounds access in 'amdgpudiscoveryregbaseinit()'

The Linux kernel CVE team has assigned CVE-2024-27042 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024050113-CVE-2024-27042-e812@gregkh/T

Red Hat

Rejected reason: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.

NVD

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=5.19<6.6.23
Linux Linux kernel>=6.7<6.7.11
Linux Linux kernel>=6.8<6.8.2
debian/linux<=6.1.129-1, <=6.1.135-1
5.10.223-15.10.234-16.12.25-16.12.27-1
redhat/kernel<6.6.23
6.6.23
redhat/kernel<6.7.11
6.7.11
redhat/kernel<6.8.2
6.8.2
redhat/kernel<6.9
6.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.23
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.7.11
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8.2
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.9

Event History

May 1, 2024
CVE Published
via MITRE·12:54 PM
Rejected
via MITRE·12:54 PM
Data Sourced
via NVD·01:15 PM
Description
Data Sourced
via Red Hat·08:41 PM
DescriptionSeverityAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:11 AM
Description
Jan 2, 2025
Data Sourced
via Ubuntu·06:09 AM
RemedyDescriptionSeverityAffected Software
Mar 23, 2026
Rejected
via MITRE·12:37 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-27042?

CVE-2024-27042 has a medium severity level due to the potential for out-of-bounds access.

2

How do I fix CVE-2024-27042?

To fix CVE-2024-27042, update your Linux kernel to versions 6.6.23, 6.7.11, 6.8.2, or 6.9.

3

What software is affected by CVE-2024-27042?

CVE-2024-27042 affects multiple versions of the Linux kernel below 6.6.23 and between 6.7 and 6.9.

4

Is there a patch available for CVE-2024-27042?

Yes, patches are available in the form of updated kernel versions from Red Hat and Debian.

5

Can CVE-2024-27042 lead to system crashes?

Yes, the out-of-bounds access vulnerability in CVE-2024-27042 could potentially lead to system instability or crashes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203