CVE-2021-47535: drm/msm/a6xx: Allocate enough space for GMU registers
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 a6xx_get_gmu_registers() 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 _a6xx_get_gmu_registers+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:
dump_backtrace+0x0/0x248
show_stack+0x20/0x2c
dump_stack+0x128/0x1ec
print_address_description+0x88/0x4a0
__kasan_report+0xfc/0x120
kasan_report+0x10/0x18
__asan_report_store8_noabort+0x1c/0x24
_a6xx_get_gmu_registers+0x144/0x430
a6xx_gpu_state_get+0x330/0x25d4
msm_gpu_crashstate_capture+0xa0/0x84c
recover_worker+0x328/0x838
kthread_worker_fn+0x32c/0x574
kthread+0x2dc/0x39c
ret_from_fork+0x10/0x18
Allocated by task 209:
__kasan_kmalloc+0xfc/0x1c4
kasan_kmalloc+0xc/0x14
kmem_cache_alloc_trace+0x1f0/0x2a0
a6xx_gpu_state_get+0x164/0x25d4
msm_gpu_crashstate_capture+0xa0/0x84c
recover_worker+0x328/0x838
kthread_worker_fn+0x32c/0x574
kthread+0x2dc/0x39c
ret_from_fork+0x10/0x18
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel memory safety bug in the Qualcomm Adreno A6xx graphics driver path. During GPU crash-state capture, the kernel allocated too little space for GMU register data, causing an out-of-bounds write. The main business risk is device instability or denial of service on affected systems, not data theft based on the provided sources.
Executive priority
Handle through normal kernel patch management, with higher priority for fleets using Qualcomm Adreno A6xx devices. This is not shown as actively exploited, but it can affect availability and should not remain in long-lived device images.
Technical view
The issue is a CWE-787 slab out-of-bounds write in drm/msm/a6xx register capture. A prior change made a6xx_get_gmu_registers() read three register sets, but the allocation size was not increased. KASAN reported an 8-byte write beyond the allocated array during msm_gpu_crashstate_capture() in the GPU recovery worker.
Likely exposure
Exposure appears limited to Linux systems running affected kernel builds with the msm A6xx GPU driver path, including affected stable branches or backports carrying the problematic commit. The source explicitly mentions a chromeos-5.4 kernel with the commit backported. General Linux servers without this graphics stack are less likely to be exposed.
Exploitation context
The CVSS vector is local, low complexity, no privileges, no user interaction, with high availability impact. The provided bundle does not show KEV listing or active exploitation. Treat this as a stability and denial-of-service concern unless vendor guidance or telemetry shows broader impact.
Researcher notes
Evidence is strongest for the exact crash-state capture allocation mismatch described in the kernel fix. The source bundle does not provide exploit details, affected device models beyond the KASAN example, or distribution-specific fixed package versions. Validate downstream exposure by commit presence and driver usage.
Mitigation direction
Apply vendor kernel updates that include the referenced stable fixes.
Prioritize affected laptops, tablets, embedded devices, or ChromeOS-derived builds using Adreno A6xx graphics.
Check downstream kernel backports, not only upstream version numbers.
Follow Linux distribution or device vendor advisories for exact fixed builds.
Avoid unsupported kernel trees carrying the problematic commit without the allocation fix.
Validation and detection
Inventory devices using the Linux msm DRM A6xx driver path.
Compare deployed kernel versions and backported commits with vendor fixed builds.
Confirm the referenced stable fix commits are present in maintained kernel branches.
Review kernel crash logs for KASAN slab-out-of-bounds reports in a6xx_get_gmu_registers().
Regression-test GPU recovery and crash-state capture after updating.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-787: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-787 · source CWE mapping
Out-of-bounds Write
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.