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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-05-24T15:09:43.994Z
- **Modified:** 2026-08-05T08:48:16.665Z

## Who should check

- Anyone running Linux \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< d646856a600e8635ba498f20b194219b158626e8; \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< 83e54fcf0b14ca2d869dd37abe1bb6542805f538; \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< b4d25abf9720b69a03465b09d0d62d1998ed6708
- Anyone running Linux 5.9

## Description

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

## Affected and fixed versions

- Linux: \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< d646856a600e8635ba498f20b194219b158626e8; \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< 83e54fcf0b14ca2d869dd37abe1bb6542805f538; \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< b4d25abf9720b69a03465b09d0d62d1998ed6708 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47535. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47535.md
Affected: Linux >= 142639a52a01e90c512a9a8d2156997e02a65b53, < d646856a600e8635ba498f20b194219b158626e8; >= 142639a52a01e90c512a9a8d2156997e02a65b53, < 83e54fcf0b14ca2d869dd37abe1bb6542805f538; >= 142639a52a01e90c512a9a8d2156997e02a65b53, < b4d25abf9720b69a03465b09d0d62d1998ed6708; Linux 5.9
Fixed in: Linux 83e54fcf0b14ca2d869dd37abe1bb6542805f538

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47535 being exploited?

There is no confirmed exploitation: CVE-2021-47535 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47535?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47535?

Linux \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< d646856a600e8635ba498f20b194219b158626e8; \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< 83e54fcf0b14ca2d869dd37abe1bb6542805f538; \>= 142639a52a01e90c512a9a8d2156997e02a65b53, \< b4d25abf9720b69a03465b09d0d62d1998ed6708; Linux 5.9.

### Is there a fix for CVE-2021-47535?

Yes. Fixed in Linux 83e54fcf0b14ca2d869dd37abe1bb6542805f538. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47535?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d646856a600e8635ba498f20b194219b158626e8>
- patch: <https://git.kernel.org/stable/c/83e54fcf0b14ca2d869dd37abe1bb6542805f538>
- patch: <https://git.kernel.org/stable/c/b4d25abf9720b69a03465b09d0d62d1998ed6708>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47535>

HTML: <https://flawdb.com/CVE-2021-47535> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47535>
