# CVE-2021-47531: drm/msm: Fix mmap to include VM\_IO and VM\_DONTDUMP

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.27% (percentile 12, 2026-11-26)
- **Published:** 2024-05-24T15:09:41.360Z
- **Modified:** 2026-06-17T04:17:42.267Z

## Who should check

- Anyone running Linux \>= 510410bfc034c57cc3caf1572aa47c1017bab2f9, \< 8e2b7fe5e8a4be5e571561d9afcfbd92097288ba; \>= 510410bfc034c57cc3caf1572aa47c1017bab2f9, \< 3466d9e217b337bf473ee629c608e53f9f3ab786
- Anyone running Linux 5.15

## Description

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

drm/msm: Fix mmap to include VM\_IO and VM\_DONTDUMP

In commit 510410bfc034 ("drm/msm: Implement mmap as GEM object
function") we switched to a new/cleaner method of doing things. That's
good, but we missed a little bit.

Before that commit, we used to \_first\_ run through the
drm\_gem\_mmap\_obj() case where \`obj-\>funcs-\>mmap()\` was NULL. That meant
that we ran:

  vma-\>vm\_flags \|= VM\_IO \| VM\_PFNMAP \| VM\_DONTEXPAND \| VM\_DONTDUMP;
  vma-\>vm\_page\_prot = pgprot\_writecombine(vm\_get\_page\_prot(vma-\>vm\_flags));
  vma-\>vm\_page\_prot = pgprot\_decrypted(vma-\>vm\_page\_prot);

...and \_then\_ we modified those mappings with our own. Now that
\`obj-\>funcs-\>mmap()\` is no longer NULL we don't run the default
code. It looks like the fact that the vm\_flags got VM\_IO / VM\_DONTDUMP
was important because we're now getting crashes on Chromebooks that
use ARC++ while logging out. Specifically a crash that looks like this
(this is on a 5.10 kernel w/ relevant backports but also seen on a
5.15 kernel):

  Unable to handle kernel paging request at virtual address ffffffc008000000
  Mem abort info:
    ESR = 0x96000006
    EC = 0x25: DABT (current EL), IL = 32 bits
    SET = 0, FnV = 0
    EA = 0, S1PTW = 0
  Data abort info:
    ISV = 0, ISS = 0x00000006
    CM = 0, WnR = 0
  swapper pgtable: 4k pages, 39-bit VAs, pgdp=000000008293d000
  \[ffffffc008000000\] pgd=00000001002b3003, p4d=00000001002b3003,
                     pud=00000001002b3003, pmd=0000000000000000
  Internal error: Oops: 96000006 \[\#1\] PREEMPT SMP
  \[...\]
  CPU: 7 PID: 15734 Comm: crash\_dump64 Tainted: G W 5.10.67 \#1 \[...\]
  Hardware name: Qualcomm Technologies, Inc. sc7280 IDP SKU2 platform (DT)
  pstate: 80400009 (Nzcv daif +PAN -UAO -TCO BTYPE=--)
  pc : \_\_arch\_copy\_to\_user+0xc0/0x30c
  lr : copyout+0xac/0x14c
  \[...\]
  Call trace:
   \_\_arch\_copy\_to\_user+0xc0/0x30c
   copy\_page\_to\_iter+0x1a0/0x294
   process\_vm\_rw\_core+0x240/0x408
   process\_vm\_rw+0x110/0x16c
   \_\_arm64\_sys\_process\_vm\_readv+0x30/0x3c
   el0\_svc\_common+0xf8/0x250
   do\_el0\_svc+0x30/0x80
   el0\_svc+0x10/0x1c
   el0\_sync\_handler+0x78/0x108
   el0\_sync+0x184/0x1c0
  Code: f8408423 f80008c3 910020c6 36100082 (b8404423)

Let's add the two flags back in.

While we're at it, the fact that we aren't running the default means
that we \_don't\_ need to clear out VM\_PFNMAP, so remove that and save
an instruction.

NOTE: it was confirmed that VM\_IO was the important flag to fix the
problem I was seeing, but adding back VM\_DONTDUMP seems like a sane
thing to do so I'm doing that too.

## Affected and fixed versions

- Linux: \>= 510410bfc034c57cc3caf1572aa47c1017bab2f9, \< 8e2b7fe5e8a4be5e571561d9afcfbd92097288ba; \>= 510410bfc034c57cc3caf1572aa47c1017bab2f9, \< 3466d9e217b337bf473ee629c608e53f9f3ab786 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 3466d9e217b337bf473ee629c608e53f9f3ab786 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47531.md
Affected: Linux >= 510410bfc034c57cc3caf1572aa47c1017bab2f9, < 8e2b7fe5e8a4be5e571561d9afcfbd92097288ba; >= 510410bfc034c57cc3caf1572aa47c1017bab2f9, < 3466d9e217b337bf473ee629c608e53f9f3ab786; Linux 5.15
Fixed in: Linux 8e2b7fe5e8a4be5e571561d9afcfbd92097288ba, Linux 3466d9e217b337bf473ee629c608e53f9f3ab786

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-47531 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 510410bfc034c57cc3caf1572aa47c1017bab2f9, \< 8e2b7fe5e8a4be5e571561d9afcfbd92097288ba; \>= 510410bfc034c57cc3caf1572aa47c1017bab2f9, \< 3466d9e217b337bf473ee629c608e53f9f3ab786; Linux 5.15.

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

Yes. Fixed in Linux 8e2b7fe5e8a4be5e571561d9afcfbd92097288ba, Linux 3466d9e217b337bf473ee629c608e53f9f3ab786. Upgrade Linux to 3466d9e217b337bf473ee629c608e53f9f3ab786 or later.

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

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/8e2b7fe5e8a4be5e571561d9afcfbd92097288ba>
- patch: <https://git.kernel.org/stable/c/3466d9e217b337bf473ee629c608e53f9f3ab786>

## 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-47531>

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