{"id":"CVE-2026-53401","aliases":["CVE-2026-53401"],"related":[],"kind":"vulnerability","state":"published","title":"fbdev: omap2: fix use-after-free in omapfb_mmap","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: omap2: fix use-after-free in omapfb_mmap\n\nomapfb_mmap() has a race condition with OMAPFB_SETUP_PLANE ioctl that\ncan lead to use-after-free:\n\nThe fb_mmap() entry point holds mm_lock but not lock (fb_info->lock),\nwhile ioctl handlers like OMAPFB_SETUP_PLANE hold lock but not mm_lock.\nThis allows concurrent execution.\n\nIn omapfb_mmap():\n1. rg = omapfb_get_mem_region(ofbi->region);      // Get old region ref\n2. start = omapfb_get_region_paddr(ofbi);          // Read from NEW region\n3. len = fix->smem_len;                             // Read from NEW region\n4. vm_iomap_memory(vma, start, len);               // Map NEW region memory\n5. atomic_inc(&rg->map_count);                      // Increment OLD region!\n\nConcurrently, OMAPFB_SETUP_PLANE can:\n- Reassign ofbi->region = new_rg\n- Update fix->smem_len\n- OMAPFB_SETUP_MEM then checks NEW region's map_count (0!) and frees it\n\nThis leaves userspace with a mapping to freed physical memory.\n\nThe fix is to read all required values (start, len) from the same\nregion reference (rg) that will have its map_count incremented,\npreventing the region from being freed while still mapped.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: omap2: fix use-after-free in omapfb_mmap\n\nomapfb_mmap() has a race condition with OMAPFB_SETUP_PLANE ioctl that\ncan lead to use-after-free:\n\nThe fb_mmap() entry point holds mm_lock but not lock (fb_info->lock),\nwhile ioctl handlers like OMAPFB_SETUP_PLANE hold lock but not mm_lock.\nThis allows concurrent execution.\n\nIn omapfb_mmap():\n1. rg = omapfb_get_mem_region(ofbi->region);      // Get old region ref\n2. start = omapfb_get_region_paddr(ofbi);          // Read from NEW region\n3. len = fix->smem_len;                             // Read from NEW region\n4. vm_iomap_memory(vma, start, len);               // Map NEW region memory\n5. atomic_inc(&rg->map_count);                      // Increment OLD region!\n\nConcurrently, OMAPFB_SETUP_PLANE can:\n- Reassign ofbi->region = new_rg\n- Update fix->smem_len\n- OMAPFB_SETUP_MEM then checks NEW region's map_count (0!) and frees it\n\nThis leaves userspace with a mapping to freed physical memory.\n\nThe fix is to read all required values (start, len) from the same\nregion reference (rg) that will have its map_count incremented,\npreventing the region from being freed while still mapped.","source":"cvelist"}],"published":"2026-07-19T12:02:01.209Z","modified":"2026-10-30T13:19:17.280Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"078ff546a806b2c2ab74c25c8edd4c6d4680656a","fixed":"a1a00f664a409b3412f9e1408c12890cffe50362","status":"affected"},{"type":"git","introduced":"078ff546a806b2c2ab74c25c8edd4c6d4680656a","fixed":"5e10b1747547c3815e90d28166e92144835e065f","status":"affected"},{"type":"git","introduced":"078ff546a806b2c2ab74c25c8edd4c6d4680656a","fixed":"986d5fafb73b8b866651399934b66d690f49135a","status":"affected"},{"type":"git","introduced":"078ff546a806b2c2ab74c25c8edd4c6d4680656a","fixed":"8363c219d88e78daaee5665117a0380442989338","status":"affected"},{"type":"git","introduced":"078ff546a806b2c2ab74c25c8edd4c6d4680656a","fixed":"6eb6ebcc8590007ad59ddccc8b5f9201655b33f8","status":"affected"},{"type":"git","introduced":"078ff546a806b2c2ab74c25c8edd4c6d4680656a","fixed":"7958e67375aa111522086286bba13cfc0816ce8d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.36","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.36","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.3","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.36","fixed":"7.1.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a1a00f664a409b3412f9e1408c12890cffe50362","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e10b1747547c3815e90d28166e92144835e065f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/986d5fafb73b8b866651399934b66d690f49135a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8363c219d88e78daaee5665117a0380442989338","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6eb6ebcc8590007ad59ddccc8b5f9201655b33f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7958e67375aa111522086286bba13cfc0816ce8d","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53401","url":"https://www.cve.org/CVERecord?id=CVE-2026-53401","licence":"CVE Terms of Use","modified":"2026-10-30T12:27:07.510Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53401","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53401","licence":"Public domain","modified":"2026-10-30T13:19:17.280Z"}],"updatedAt":"2026-11-25T22:59:28.704Z","epss":{"score":0.0014,"percentile":0.03576,"date":"2026-12-01T12:00:22.000Z"}}