Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8610F38D40A for ; Sun, 19 Jul 2026 12:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462553; cv=none; b=Q3a6UBg6eSjqNi4haLDebK4vr79pPuxD+/IeG8nXty+ZGYAcHVr5oG8kLvm2Qz+1P/2pBFkOVoArpjIt1IBSJhGqeyJq0/dmm3NESXKLySBEzXJkZpZ9lKN0CGt0YVaA4jO0NzbcXD0IsnxKGzVaiJmlsDQ70HJ1h4pnPE74g00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462553; c=relaxed/simple; bh=RixiZSdMhQ6tGLqtbePFgcszIn2smiYMpFyzLCBmlvo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JeH2NjD/sSmr3TXJV3hoJEQj0RlwQUaIJUzuQW4cI+CxLHPyxTPVFhMAkeDSa3RYM57ukQRD88s98CDbLnto2zyvDcUSzfgbL+26+UG2WUnDNPo88qlPxCcwlpyWImA3pZy7a97QCpsxLVh3PSU+muhGgdT2JL7ekGHeqkVWEHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mp2HDq0g; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mp2HDq0g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD6341F000E9; Sun, 19 Jul 2026 12:02:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462552; bh=/eYtIhr+tjigxqbnECskfzPxjyDH2rTYm9BkbhCy93w=; h=From:To:Cc:Subject:Date:Reply-To; b=mp2HDq0gFHZ4RVgj/JYarUyf+YdV/urtjKHJd5ORFFDpsksslRustolVbo/IsRhCo HNYe75YQCeLL59dK3UzCJFOPfhGXjm9pbhN/UxHV90hIGs6GlMW5hu8MbXjqUfWiXV 42YdS5kO5j6O3EjgARkbptrMCBnoYwrJAHfjRo0g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53401: fbdev: omap2: fix use-after-free in omapfb_mmap Date: Sun, 19 Jul 2026 14:02:07 +0200 Message-ID: <2026071958-CVE-2026-53401-69e2@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2728; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6hgVCMA+bWX4PF1/4CwjG1dpECDpztqWMulYDq0lPDk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe7Zdk/vY9rfzxZJZa250vkwLafmXoOuws7rmlk9Qz /nMw8tLOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiizYwLJgRMmeOs4jfMmM2 dg0G4y3rhE+LzWZYcCzkc8uKtp/2l1KfuK7Z1svB+5nNFwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-53401 to this issue. Affected and fixed versions =========================== Fixed in 7.1.3 with commit 6eb6ebcc8590007ad59ddccc8b5f9201655b33f8 Fixed in 7.2-rc1 with commit 7958e67375aa111522086286bba13cfc0816ce8d Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53401 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/video/fbdev/omap2/omapfb/omapfb-main.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/6eb6ebcc8590007ad59ddccc8b5f9201655b33f8 https://git.kernel.org/stable/c/7958e67375aa111522086286bba13cfc0816ce8d