CVE-2026-43497

fbdev: udlfb: add vm_ops to dlfb_ops_mmap to prevent use-after-free

State
Published
Severity
7.3 High
Published
May 21, 2026
Updated
Aug 5, 2026
Reserved
May 1, 2026

Read the record on cve.org

Description

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

fbdev: udlfb: add vm_ops to dlfb_ops_mmap to prevent use-after-free

dlfb_ops_mmap() uses remap_pfn_range() to map vmalloc framebuffer pages to userspace but sets no vm_ops on the VMA. This means the kernel cannot track active mmaps. When dlfb_realloc_framebuffer() replaces the backing buffer via FBIOPUT_VSCREENINFO, existing mmap PTEs are not invalidated. On USB disconnect, dlfb_ops_destroy() calls vfree() on the old pages while userspace PTEs still reference them, resulting in a use-after-free: the process retains read/write access to freed kernel pages.

Add vm_operations_struct with open/close callbacks that maintain an atomic mmap_count on struct dlfb_data. In dlfb_realloc_framebuffer(), check mmap_count and return -EBUSY if the buffer is currently mapped, preventing buffer replacement while userspace holds stale PTEs.

Tested with PoC using dummy_hcd + raw_gadget USB device emulation.

Scores

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

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before 60f711cfd580f86fea8284146ac133804e728f9aAffected
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before 5931f5651ee32bd41b3323256b31fcc8e71336edAffected
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before e3d9865dacd7435b8465848428210d0f0c673311Affected
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before 4f312c30f0368e8d2a76aa650dff73f23490b5e7Affected
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before 18dd358de72d57993422cbb5dfb29ccd74efe192Affected
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before da9b065cedfd3b574f229d5be594e6aa47a27ae6Affected
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before a2c53a3822ee26e8d758071815b9ed3bf6669fc1Affected
  • 7433914efd584b22bb49d3e1eee001f5d0525ecd to before 8de779dc40d35d39fa07387b6f921eb11df0f511Affected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.140 through 6.6.*Not affected
  • 6.12.88 through 6.12.*Not affected
  • 6.18.30 through 6.18.*Not affected
  • 7.0.7 through 7.0.*Not affected
  • 7.1 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.