# CVE-2024-53071: drm/panthor: Be stricter about IO mapping flags

> 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, CNA) `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.26% (percentile 11, 2026-11-26)
- **Published:** 2024-11-19T17:22:38.327Z
- **Modified:** 2026-06-17T08:08:11.980Z

## Who should check

- Anyone running Linux \>= 5fe909cae118a757a77afb37174b99436a36d2e2, \< 2604afd65043e8f9d4be036cb1242adf6b5723cf; \>= 5fe909cae118a757a77afb37174b99436a36d2e2, \< f432a1621f049bb207e78363d9d0e3c6fa2da5db
- Anyone running Linux 6.10

## Description

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

drm/panthor: Be stricter about IO mapping flags

The current panthor\_device\_mmap\_io() implementation has two issues:

1. For mapping DRM\_PANTHOR\_USER\_FLUSH\_ID\_MMIO\_OFFSET,
   panthor\_device\_mmap\_io() bails if VM\_WRITE is set, but does not clear
   VM\_MAYWRITE. That means userspace can use mprotect() to make the mapping
   writable later on. This is a classic Linux driver gotcha.
   I don't think this actually has any impact in practice:
   When the GPU is powered, writes to the FLUSH\_ID seem to be ignored; and
   when the GPU is not powered, the dummy\_latest\_flush page provided by the
   driver is deliberately designed to not do any flushes, so the only thing
   writing to the dummy\_latest\_flush could achieve would be to make \*more\*
   flushes happen.

2. panthor\_device\_mmap\_io() does not block MAP\_PRIVATE mappings (which are
   mappings without the VM\_SHARED flag).
   MAP\_PRIVATE in combination with VM\_MAYWRITE indicates that the VMA has
   copy-on-write semantics, which for VM\_PFNMAP are semi-supported but
   fairly cursed.
   In particular, in such a mapping, the driver can only install PTEs
   during mmap() by calling remap\_pfn\_range() (because remap\_pfn\_range()
   wants to \*\*store the physical address of the mapped physical memory into
   the vm\_pgoff of the VMA\*\*); installing PTEs later on with a fault
   handler (as panthor does) is not supported in private mappings, and so
   if you try to fault in such a mapping, vmf\_insert\_pfn\_prot() splats when
   it hits a BUG() check.

Fix it by clearing the VM\_MAYWRITE flag (userspace writing to the FLUSH\_ID
doesn't make sense) and requiring VM\_SHARED (copy-on-write semantics for
the FLUSH\_ID don't make sense).

Reproducers for both scenarios are in the notes of my patch on the mailing
list; I tested that these bugs exist on a Rock 5B machine.

Note that I only compile-tested the patch, I haven't tested it; I don't
have a working kernel build setup for the test machine yet. Please test it
before applying it.

## Affected and fixed versions

- Linux: \>= 5fe909cae118a757a77afb37174b99436a36d2e2, \< 2604afd65043e8f9d4be036cb1242adf6b5723cf; \>= 5fe909cae118a757a77afb37174b99436a36d2e2, \< f432a1621f049bb207e78363d9d0e3c6fa2da5db (cvelist)
- Linux: 6.10 (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-2024-53071. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53071.md
Affected: Linux >= 5fe909cae118a757a77afb37174b99436a36d2e2, < 2604afd65043e8f9d4be036cb1242adf6b5723cf; >= 5fe909cae118a757a77afb37174b99436a36d2e2, < f432a1621f049bb207e78363d9d0e3c6fa2da5db; Linux 6.10
Fixed in: Linux 2604afd65043e8f9d4be036cb1242adf6b5723cf

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-2024-53071 being exploited?

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

### How serious is CVE-2024-53071?

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

### Which versions are affected by CVE-2024-53071?

Linux \>= 5fe909cae118a757a77afb37174b99436a36d2e2, \< 2604afd65043e8f9d4be036cb1242adf6b5723cf; \>= 5fe909cae118a757a77afb37174b99436a36d2e2, \< f432a1621f049bb207e78363d9d0e3c6fa2da5db; Linux 6.10.

### Is there a fix for CVE-2024-53071?

Yes. Fixed in Linux 2604afd65043e8f9d4be036cb1242adf6b5723cf. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-53071?

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/2604afd65043e8f9d4be036cb1242adf6b5723cf>
- patch: <https://git.kernel.org/stable/c/f432a1621f049bb207e78363d9d0e3c6fa2da5db>

## 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-2024-53071>

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