Linux Kernel USB Framebuffer Driver Use-After-Free Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's USB framebuffer driver (udlfb). The issue arises because the driver maps framebuffer pages to userspace without properly managing the virtual memory area (VMA) operations. This oversight prevents the kernel from tracking active memory mappings. When the framebuffer is reallocated, the old memory pages are freed while userspace still holds references, allowing continued access to the freed pages. The vulnerability has been addressed by adding VMA operation callbacks to manage the mapping references correctly.

Impact

Exploitation of this vulnerability allows processes to access and modify freed kernel memory, potentially leading to arbitrary code execution or memory corruption.

Reproduction

The vulnerability can be reproduced by emulating a USB device with the 'dummy_hcd' and 'raw_gadget' options. This setup will trigger the use-after-free condition by disconnecting the USB device while the framebuffer is still mapped to userspace.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched.

Added: May 21, 2026, 1:37 PM
Updated: May 21, 2026, 1:37 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
5.0
exploitability
2.5
remediation
7.7
relevance
9.0
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.