CVE-2021-47535: drm/msm/a6xx: Allocate enough space for GMU registers

Published May 24, 2024
·
Updated

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

drm/msm/a6xx: Allocate enough space for GMU registers

In commit 142639a52a01 ("drm/msm/a6xx: fix crashstate capture for A650") we changed a6xxgetgmuregisters() to read 3 sets of registers. Unfortunately, we didn't change the memory allocation for the array. That leads to a KASAN warning (this was on the chromeos-5.4 kernel, which has the problematic commit backported to it):

BUG: KASAN: slab-out-of-bounds in a6xxgetgmuregisters+0x144/0x430 Write of size 8 at addr ffffff80c89432b0 by task A618-worker/209 CPU: 5 PID: 209 Comm: A618-worker Tainted: G W 5.4.156-lockdep #22 Hardware name: Google Lazor Limozeen without Touchscreen (rev5 - rev8) (DT) Call trace: dumpbacktrace+0x0/0x248 showstack+0x20/0x2c dumpstack+0x128/0x1ec printaddressdescription+0x88/0x4a0 kasanreport+0xfc/0x120 kasanreport+0x10/0x18 asanreportstore8noabort+0x1c/0x24 a6xxgetgmuregisters+0x144/0x430 a6xxgpustateget+0x330/0x25d4 msmgpucrashstatecapture+0xa0/0x84c recoverworker+0x328/0x838 kthreadworkerfn+0x32c/0x574 kthread+0x2dc/0x39c retfromfork+0x10/0x18

Allocated by task 209: kasankmalloc+0xfc/0x1c4 kasankmalloc+0xc/0x14 kmemcachealloctrace+0x1f0/0x2a0 a6xxgpustateget+0x164/0x25d4 msmgpucrashstatecapture+0xa0/0x84c recoverworker+0x328/0x838 kthreadworkerfn+0x32c/0x574 kthread+0x2dc/0x39c retfromfork+0x10/0x18

Affected Software

69 affected components
Linux Linux kernel>=5.4.156
Linux Linux kernel>=5.9<5.10.84
Linux Linux kernel>=5.11<5.15.7
Linux Linux kernel=5.16-rc1
Linux Linux kernel=5.16-rc2
Linux Linux kernel=5.16-rc3
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-azure-fde*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-gke*
ubuntu/linux-gke-5.15*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws-5.19*
ubuntu/linux-aws-6.2*
ubuntu/linux-azure-5.19*
ubuntu/linux-azure-6.2*
ubuntu/linux-azure-fde-5.19*
ubuntu/linux-azure-fde-6.2*
ubuntu/linux-gcp-5.19*
ubuntu/linux-gcp-6.2*
ubuntu/linux-hwe-5.19*
ubuntu/linux-hwe-6.2*
ubuntu/linux-lowlatency-hwe-5.19*
ubuntu/linux-lowlatency-hwe-6.2*
ubuntu/linux-nvidia-6.2*
ubuntu/linux-oem-5.17*
ubuntu/linux-oem-6.0*
ubuntu/linux-oem-6.1*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.19*
ubuntu/linux-starfive-5.19*
ubuntu/linux-starfive-6.2*

Event History

May 24, 2024
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
Description
Data Sourced
via OSV·03:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 PM
Description
Dec 4, 2024
Data Sourced
via NVD·09:15 PM
SeverityWeakness
Apr 1, 2025
Data Sourced
via NVD·06:41 PM
RemedyAffected Software
Aug 4, 2026
Data Sourced
via MITRE·09:01 AM
Severity
Event
via MITRE·09:01 AM
Updated
via NVD·10:17 AM
SeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-47535?

CVE-2021-47535 has a medium severity rating due to potential denial of service implications in affected Linux kernel versions.

2

How do I fix CVE-2021-47535?

To fix CVE-2021-47535, update your Linux kernel to a version that includes the patch for this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2021-47535?

CVE-2021-47535 affects Linux kernel versions from 5.4.156 up to but not including 5.10.84, 5.11 up to but not including 5.15.7, and specific release candidates of 5.16.

4

What components are involved in CVE-2021-47535?

CVE-2021-47535 involves the Direct Rendering Manager (drm) in the msm (Qualcomm) subsystem of the Linux kernel.

5

Is CVE-2021-47535 related to system crashes?

Yes, CVE-2021-47535 can lead to crashes due to insufficient memory allocation for GMU registers.

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