# CVE-2026-43497: fbdev: udlfb: add vm_ops to dlfb_ops_mmap to prevent use-after-free

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-21T12:12:47.150Z
- Modified: 2026-08-05T12:28:19.915Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7433914efd584b22bb49d3e1eee001f5d0525ecd before 60f711cfd580f86fea8284146ac133804e728f9a; from 7433914efd584b22bb49d3e1eee001f5d0525ecd before 5931f5651ee32bd41b3323256b31fcc8e71336ed; from 7433914efd584b22bb49d3e1eee001f5d0525ecd before e3d9865dacd7435b8465848428210d0f0c673311; from 7433914efd584b22bb49d3e1eee001f5d0525ecd before 4f312c30f0368e8d2a76aa650dff73f23490b5e7; from 7433914efd584b22bb49d3e1eee001f5d0525ecd before 18dd358de72d57993422cbb5dfb29ccd74efe192; from 7433914efd584b22bb49d3e1eee001f5d0525ecd before da9b065cedfd3b574f229d5be594e6aa47a27ae6; from 7433914efd584b22bb49d3e1eee001f5d0525ecd before a2c53a3822ee26e8d758071815b9ed3bf6669fc1; from 7433914efd584b22bb49d3e1eee001f5d0525ecd before 8de779dc40d35d39fa07387b6f921eb11df0f511; 4.19 (not affected: before 4.19; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.140 up to 6.6.*; from 6.12.88 up to 6.12.*; from 6.18.30 up to 6.18.*; from 7.0.7 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 4.19 before 5.10.258; from 5.11 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.140; from 6.7 before 6.12.88; from 6.13 before 6.18.30; from 6.19 before 7.0.7; 7.1

## References

- <https://git.kernel.org/stable/c/60f711cfd580f86fea8284146ac133804e728f9a> (patch)
- <https://git.kernel.org/stable/c/5931f5651ee32bd41b3323256b31fcc8e71336ed> (patch)
- <https://git.kernel.org/stable/c/e3d9865dacd7435b8465848428210d0f0c673311> (patch)
- <https://git.kernel.org/stable/c/4f312c30f0368e8d2a76aa650dff73f23490b5e7> (patch)
- <https://git.kernel.org/stable/c/18dd358de72d57993422cbb5dfb29ccd74efe192> (patch)
- <https://git.kernel.org/stable/c/da9b065cedfd3b574f229d5be594e6aa47a27ae6> (patch)
- <https://git.kernel.org/stable/c/a2c53a3822ee26e8d758071815b9ed3bf6669fc1> (patch)
- <https://git.kernel.org/stable/c/8de779dc40d35d39fa07387b6f921eb11df0f511> (patch)

## Sources

- CVE List: [CVE-2026-43497](https://www.cve.org/CVERecord?id=CVE-2026-43497), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-43497](https://nvd.nist.gov/vuln/detail/CVE-2026-43497), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-43497 · Whole record: https://cve.day/CVE-2026-43497.json · Rebuilt by cve.day 2026-11-25T22:59:22.101Z
