# CVE-2026-53401: fbdev: omap2: fix use-after-free in omapfb_mmap

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-19T12:02:01.209Z
- Modified: 2026-10-30T13:19:17.280Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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():
1. rg = omapfb_get_mem_region(ofbi->region);      // Get old region ref
2. start = omapfb_get_region_paddr(ofbi);          // Read from NEW region
3. len = fix->smem_len;                             // Read from NEW region
4. vm_iomap_memory(vma, start, len);               // Map NEW region memory
5. 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 078ff546a806b2c2ab74c25c8edd4c6d4680656a before a1a00f664a409b3412f9e1408c12890cffe50362; from 078ff546a806b2c2ab74c25c8edd4c6d4680656a before 5e10b1747547c3815e90d28166e92144835e065f; from 078ff546a806b2c2ab74c25c8edd4c6d4680656a before 986d5fafb73b8b866651399934b66d690f49135a; from 078ff546a806b2c2ab74c25c8edd4c6d4680656a before 8363c219d88e78daaee5665117a0380442989338; from 078ff546a806b2c2ab74c25c8edd4c6d4680656a before 6eb6ebcc8590007ad59ddccc8b5f9201655b33f8; from 078ff546a806b2c2ab74c25c8edd4c6d4680656a before 7958e67375aa111522086286bba13cfc0816ce8d; 2.6.36 (not affected: before 2.6.36; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.1.3 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 2.6.36 before 7.1.3

## References

- <https://git.kernel.org/stable/c/a1a00f664a409b3412f9e1408c12890cffe50362>
- <https://git.kernel.org/stable/c/5e10b1747547c3815e90d28166e92144835e065f>
- <https://git.kernel.org/stable/c/986d5fafb73b8b866651399934b66d690f49135a>
- <https://git.kernel.org/stable/c/8363c219d88e78daaee5665117a0380442989338>
- <https://git.kernel.org/stable/c/6eb6ebcc8590007ad59ddccc8b5f9201655b33f8> (patch)
- <https://git.kernel.org/stable/c/7958e67375aa111522086286bba13cfc0816ce8d> (patch)

## Sources

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

---

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