CVE-2024-58091

drm/fbdev-dma: Add shadow buffering for deferred I/O

State
Published
Severity
7.8 High
Published
Mar 27, 2025
Updated
Aug 5, 2026
Reserved
Mar 6, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 5ab91447aa13b8b98bc11f5326f33500b0ee2c48 to before 0d087de947babf7ed70029d042abcc6ed06ff415Affected
  • 5ab91447aa13b8b98bc11f5326f33500b0ee2c48 to before cdc581169942de3b9e2648cfbd98c5ff9111c2c8Affected
  • 5ab91447aa13b8b98bc11f5326f33500b0ee2c48 to before 3603996432997f7c88da37a97062a46cda01ac9dAffected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.36 through 6.12.*Not affected
  • 6.13.6 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.