From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A8434218858 for ; Thu, 27 Mar 2025 14:58:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743087500; cv=none; b=GeG7FxrCpofZTdEIMuxqhVpcFRUho4ItNKLSTFrziwwcVNMepVW/7szmJXQdNqGj/KJocvfg3g2UbmUFQ/Vs+pL+9Kt/L+tjtz/8mMOyWLuDn+ZEYipYG10z+XtUm4qtnw9XTNslYwCtp2L+KJvnvWAcxE/fnyEaETaiM8AHnmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743087500; c=relaxed/simple; bh=nBIXVw4DXs8ipuAHhY7lyA6wF7lwlUSdLQ/W6AquP0o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l+c9xDAK2GesDT6m68M09UsVoxX2/bqgUYpGAxPyWGy8M6PJsBjzUPv46cFglx/UIqMqgLYftbaA6lj05FSJ3GJvY6QXqgjuRGtpo3JFmsWpEfi1XKQizBTk0QSMDOw7LhfFgRTxzT4MZSW8HzPAsCvrzsA0I0DCkfIvV301r6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HSjwIKdi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HSjwIKdi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8FC7C4CEE8; Thu, 27 Mar 2025 14:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743087500; bh=nBIXVw4DXs8ipuAHhY7lyA6wF7lwlUSdLQ/W6AquP0o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HSjwIKdiSIIyA+5l2dXs4Qq6i77VgpzgtNV9r8x1GIXCC19ePzj2LRYBLh06fMpaw RmbuOWoFaX4uMBJEWtBFmSAUHuYzSzt+BR/6rIOQvHu35VyZPQ8L8PAcWvSSbU5Z7n BTObEMPF3QfbSNsYidfiXxgdD+JTrzkt52Q/giyk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58091: drm/fbdev-dma: Add shadow buffering for deferred I/O Date: Thu, 27 Mar 2025 15:58:05 +0100 Message-ID: <2025032709-CVE-2024-58091-a2a4@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2614; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nBIXVw4DXs8ipuAHhY7lyA6wF7lwlUSdLQ/W6AquP0o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP0xuDnjh41XAcN9b4No1L4wSz9eeXHBb5NlosT97eZ 22ex+vVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNpt2OY7/5u4uKXiyQO/39c vEdZIWFay+2b3xjml5n7WVyoqQsq9+49ynMqIEgxz1gOAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/fbdev-dma: Add shadow buffering for deferred I/O DMA areas are not necessarily backed by struct page, so we cannot rely on it for deferred I/O. Allocate a shadow buffer for drivers that require deferred I/O and use it as framebuffer memory. Fixes driver errors about being "Unable to handle kernel NULL pointer dereference at virtual address" or "Unable to handle kernel paging request at virtual address". The patch splits drm_fbdev_dma_driver_fbdev_probe() in an initial allocation, which creates the DMA-backed buffer object, and a tail that sets up the fbdev data structures. There is a tail function for direct memory mappings and a tail function for deferred I/O with the shadow buffer. It is no longer possible to use deferred I/O without shadow buffer. It can be re-added if there exists a reliably test for usable struct page in the allocated DMA-backed buffer object. The Linux kernel CVE team has assigned CVE-2024-58091 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 5ab91447aa13b8b98bc11f5326f33500b0ee2c48 and fixed in 6.13.6 with commit cdc581169942de3b9e2648cfbd98c5ff9111c2c8 Issue introduced in 6.11 with commit 5ab91447aa13b8b98bc11f5326f33500b0ee2c48 and fixed in 6.14 with commit 3603996432997f7c88da37a97062a46cda01ac9d 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-2024-58091 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/gpu/drm/drm_fbdev_dma.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/cdc581169942de3b9e2648cfbd98c5ff9111c2c8 https://git.kernel.org/stable/c/3603996432997f7c88da37a97062a46cda01ac9d