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 48F9A16E89B for ; Wed, 18 Sep 2024 07:20:01 +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=1726644001; cv=none; b=AibWICCzhBV+w4VOYJsvWdKxN1SgewMv9RQi68IPbdI555nDdA5CE8YzptCNBmnwQ/zUg2Ul7WbnX+j1AGS4TExnHqVXyOwpLpMRvn0UwAYvig9OCtl6m4ApFF4Bkq9rK5/q8y9/H8BWcqXed8eEcfVq3ovCScqMvCyy4SaUiIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726644001; c=relaxed/simple; bh=3L7xDKogmIJMXGcakrygTI/n2sKQlqFZKAu+6xdxY+s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bydBS6zkhcGWXk1Cqeuyn+Zp7n2APDZ+5iRu5dpzGVi4mNM7++KyrmwkTD+U7OUY9Hfxme/7wRym6sOag7fFYX8iZXGUZ2tjY8pQd1DWro1pJq1oXbfF5EaA6/qafr5PFpuf1QHnpulRJe5LDxu7/LhDoXyJex96nsp4WfNNELE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=znuzUPS0; 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="znuzUPS0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0335C4CEC3; Wed, 18 Sep 2024 07:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726644001; bh=3L7xDKogmIJMXGcakrygTI/n2sKQlqFZKAu+6xdxY+s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=znuzUPS09riWRX+ZO/OHSjthUZd9p3tCr8Ys9y7RdoPi/G0QWShI3yWqdn0YTD+KQ 9uAow226UqJmqNJ2lCCO6tJnBXv6T1EH5HBYl08y6IZV3q3xx2RFhm8ztK4tOuHWZU sdIXEYhq1JEKRNzob2xJkcDOmpMborYdiiTRrd6s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46801: libfs: fix get_stashed_dentry() Date: Wed, 18 Sep 2024 09:17:36 +0200 Message-ID: <2024091857-CVE-2024-46801-3cb7@gregkh> X-Mailer: git-send-email 2.46.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=1989; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3L7xDKogmIJMXGcakrygTI/n2sKQlqFZKAu+6xdxY+s=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6jJd5VL/896uO//y0IMlrlJJKgxdx1Y6a7wSjjRes crJtvpERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkThPDHO719zec33nd4HAi 79Gj3Xrx+/faXmNYsPijv5mr8r7Dr2cl6bTsYlxTemRVIQA= 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: libfs: fix get_stashed_dentry() get_stashed_dentry() tries to optimistically retrieve a stashed dentry from a provided location. It needs to ensure to hold rcu lock before it dereference the stashed location to prevent UAF issues. Use rcu_dereference() instead of READ_ONCE() it's effectively equivalent with some lockdep bells and whistles and it communicates clearly that this expects rcu protection. The Linux kernel CVE team has assigned CVE-2024-46801 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 07fd7c329839 and fixed in 6.10.10 with commit 03e2a1209a83 Issue introduced in 6.9 with commit 07fd7c329839 and fixed in 6.11 with commit 4e32c25b58b9 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-46801 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: fs/libfs.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/03e2a1209a83a380df34a72f7d6d1bc6c74132c7 https://git.kernel.org/stable/c/4e32c25b58b945f976435bbe51f39b32d714052e