CVE-2024-58091 drm/fbdev-dma: Add shadow buffering for deferred I/O
A null pointer dereference in the Linux kernel's DRM fbdev-dma driver can cause a system crash when using deferred I/O.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58091?
CVE-2024-58091 is a high-severity vulnerability in Linux kernel, published on 27 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/fbdev-dma: Add shadow buffering for deferred I/O
DMA areas are not necessarily backed by struct page, so we cannot rely on it for deferred I/O. Allocate a shadow buffer for drivers that require deferred I/O and use it as framebuffer memory.
Fixes driver errors about being "Unable to handle kernel NULL pointer dereference at virtual address" or "Unable to handle kernel paging request at virtual address".
The patch splits drm_fbdev_dma_driver_fbdev_probe() in an initial allocation, which creates the DMA-backed buffer object, and a tail that sets up the fbdev data structures. There is a tail function for direct memory mappings and a tail function for deferred I/O with the shadow buffer.
It is no longer possible to use deferred I/O without shadow buffer. It can be re-added if there exists a reliably test for usable struct page in the allocated DMA-backed buffer object.
Weakness: CWE-476
Which versions are affected by CVE-2024-58091?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-58091?
Apply the vendor's patch.
Is CVE-2024-58091 being exploited?
There is no known exploitation of CVE-2024-58091 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-58091, DEBIAN-CVE-2024-58091, GHSA-cchg-5m9c-jwh9, UBUNTU-CVE-2024-58091.