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

CVE-2026-43497
HIGH 7.3

At a glance

Source
NVD
EPSS
EPSS 0.11 % · percentile 1 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 7433914efd584b22bb49d3e1eee001f5d0525ecd < 60f711cfd580f86fea8284146ac133804e728f9a ; affected 7433914efd584b22bb49d3e1eee001f5d0525ecd < 5931f5651ee32bd41b3323256b31fcc8e71336ed ; affected 7433914efd584b22bb49d3e1eee001f5d0525ecd < e3d9865dacd7435b8465848428210d0f0c673311 ; affected 7433914efd584b22bb49d3e1eee001f5d0525ecd < 4f312c30f0368e8d2a76aa650dff73f23490b5e7 ; affected 7433914efd584b22bb49d3e1eee001f5d0525ecd < 18dd358de72d57993422cbb5dfb29ccd74efe192 ; affected 7433914efd584b22bb49d3e1eee001f5d0525ecd < da9b065cedfd3b574f229d5be594e6aa47a27ae6
Linux · Linuxaffected 4.19 ; unaffected 0 < 4.19 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.140 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD