CVE-2026-53401
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Summary
In the Linux kernel, the following vulnerability has been resolved:
fbdev: omap2: fix use-after-free in omapfb_mmap
omapfb_mmap() has a race condition with OMAPFB_SETUP_PLANE ioctl that can lead to use-after-free:
The fb_mmap() entry point holds mm_lock but not lock (fb_info->lock), while ioctl handlers like OMAPFB_SETUP_PLANE hold lock but not mm_lock. This allows concurrent execution.
In omapfb_mmap():
- rg = omapfb_get_mem_region(ofbi->region); // Get old region ref
- start = omapfb_get_region_paddr(ofbi); // Read from NEW region
- len = fix->smem_len; // Read from NEW region
- vm_iomap_memory(vma, start, len); // Map NEW region memory
- atomic_inc(&rg->map_count); // Increment OLD region!
Concurrently, OMAPFB_SETUP_PLANE can:
- Reassign ofbi->region = new_rg
- Update fix->smem_len
- OMAPFB_SETUP_MEM then checks NEW region's map_count (0!) and frees it
This leaves userspace with a mapping to freed physical memory.
The fix is to read all required values (start, len) from the same region reference (rg) that will have its map_count incremented, preventing the region from being freed while still mapped.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Linux | Linux | 078ff546a806b2c2ab74c25c8edd4c6d4680656a < 6eb6ebcc8590007ad59ddccc8b5f9201655b33f8 | affected |
| Linux | Linux | 078ff546a806b2c2ab74c25c8edd4c6d4680656a < 7958e67375aa111522086286bba13cfc0816ce8d | affected |
| Linux | Linux | 2.6.36 | affected |
| Linux | Linux | 0 < 2.6.36 | unaffected |
| Linux | Linux | 7.1.3 <= 7.1.* | unaffected |
| Linux | Linux | 7.2-rc1 <= * | unaffected |
Weaknesses
References
- https://git.kernel.org/stable/c/6eb6ebcc8590007ad59ddccc8b5f9201655b33f8
- https://git.kernel.org/stable/c/7958e67375aa111522086286bba13cfc0816ce8d
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.