Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-53071 — kernel

🟡 CVSS 5.5 — Medium ✅ No Known Exploit NVD
5.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

drm/panthor: Be stricter about IO mapping flags

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

CVE-2024-53071 is recorded against 2 packages.

  • kernel (from 6.10.0 up to 6.11.8)
  • linux-kernel

Timeline and source

Published on 19 November 2024 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

Other advisories for this package

kernel has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2024-53071 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 5.5
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-11-19
Updated 2026-08-20
Modified 2026-08-12

Affected Packages

Software From version Fixed in
kernel 6.10.0 6.11.8
linux-kernel — —

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in kernel

CVE-2024-53071 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024
✓