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 BC94131690E for ; Thu, 21 May 2026 12:13:03 +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=1779365585; cv=none; b=AP3RvipZBkvl7iuBp4tGXxu7LCr4NOsiHUuNkuvXbVR24Xr8dIGdlI4d9WLOsuQWJPcLnpVxfp3aspIdaAQEfH21FPecFCwPfrF5f4u0dynuOuAlTFrNP3vdI38hIL87UBulxi2oLRcfpH5O18Ez70scSIH0wfv4PB18bXJUbi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779365585; c=relaxed/simple; bh=wp9Kl12MgQwlrn45CNivArcNarqYNFdXmetDtn2Ysnk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M9H0BG8e4Mt+UII98Seff4tt3rD4xqZr98u112/hR6UtWnyn0BUFqe0idGo+YU+nNvtNsSKW2Rg8SAVz1uutq59pLI4NFwUPPS8e7BmtWOjut/CW6Si4Z/wm8k61yfnWT1E8V4/u9dPl9cZKoc8Dg5IYxjANmPxZ2vZiWo4TSBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ue8DjgIo; 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="Ue8DjgIo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C3E81F000E9; Thu, 21 May 2026 12:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779365583; bh=RkNhH8mNy9PgESvorPkORaBhUGIvOf/Hes8HpWRtEBc=; h=From:To:Cc:Subject:Date:Reply-To; b=Ue8DjgIo3WjhgQilCsevv/zZg+XkjClNAYGZWe9qz7OUHLftJKchnf+lZYcTDVM3I aN8Tg2cHlLmT/Y0L7vD3BJ5IuAzFrGoXAcaeBZwfP5oGTDK6ks1p4WTySR1Xd3HH8t nQmVQ3QNiNDha0bR1I/VGjdC8PbG906nufWdEGK0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43497: fbdev: udlfb: add vm_ops to dlfb_ops_mmap to prevent use-after-free Date: Thu, 21 May 2026 14:12:58 +0200 Message-ID: <2026052157-CVE-2026-43497-f082@gregkh> X-Mailer: git-send-email 2.54.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=2928; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cYkO4WSKlVN08vuz/iimlxoI3scp4CneX16Qp6WsESo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl8304WqJ89zW/7po9zlfqtpSlLH5hc4Nwy/92TRUKhL 7VXS8017IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJlH5nWLCmhcW8JvLopn0M 1/Z47G+9+v+PQT/DPKUTVu0WbcJzFFXusb1J1H6UIT7/KAA= 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: udlfb: add vm_ops to dlfb_ops_mmap to prevent use-after-free dlfb_ops_mmap() uses remap_pfn_range() to map vmalloc framebuffer pages to userspace but sets no vm_ops on the VMA. This means the kernel cannot track active mmaps. When dlfb_realloc_framebuffer() replaces the backing buffer via FBIOPUT_VSCREENINFO, existing mmap PTEs are not invalidated. On USB disconnect, dlfb_ops_destroy() calls vfree() on the old pages while userspace PTEs still reference them, resulting in a use-after-free: the process retains read/write access to freed kernel pages. Add vm_operations_struct with open/close callbacks that maintain an atomic mmap_count on struct dlfb_data. In dlfb_realloc_framebuffer(), check mmap_count and return -EBUSY if the buffer is currently mapped, preventing buffer replacement while userspace holds stale PTEs. Tested with PoC using dummy_hcd + raw_gadget USB device emulation. The Linux kernel CVE team has assigned CVE-2026-43497 to this issue. Affected and fixed versions =========================== Fixed in 6.6.140 with commit 4f312c30f0368e8d2a76aa650dff73f23490b5e7 Fixed in 6.12.88 with commit 18dd358de72d57993422cbb5dfb29ccd74efe192 Fixed in 6.18.30 with commit da9b065cedfd3b574f229d5be594e6aa47a27ae6 Fixed in 7.0.7 with commit a2c53a3822ee26e8d758071815b9ed3bf6669fc1 Fixed in 7.1-rc3 with commit 8de779dc40d35d39fa07387b6f921eb11df0f511 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-43497 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/udlfb.c include/video/udlfb.h 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/4f312c30f0368e8d2a76aa650dff73f23490b5e7 https://git.kernel.org/stable/c/18dd358de72d57993422cbb5dfb29ccd74efe192 https://git.kernel.org/stable/c/da9b065cedfd3b574f229d5be594e6aa47a27ae6 https://git.kernel.org/stable/c/a2c53a3822ee26e8d758071815b9ed3bf6669fc1 https://git.kernel.org/stable/c/8de779dc40d35d39fa07387b6f921eb11df0f511