Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794823218; b=wE7WqDEUBADMcVsHNUD6XsVloYFbvmIepFy5qxQF+dXlNNq9wrlCZDOdd13MwGPw5W3h HdcsrWvYg039MbXYnK9xKacbikIsHJ3caM4moimQZB0A3aA0gaGTKR7ZloeiQ9o1oYEx4 tfuGbKSxWOJUv5SYcVvRf5HrJdZ+El89wDOVGfGjkyd9C3h+NO78F6BQieJv1NsNbmrTK NTx3E86Uf1VJY40WQCslnYrNIbxKkJEK/rshrdmzed0g7xJBTrpD27AIMwn6Cd75XPe8k JgilknHqrsJaqwPU/wjAYRl54rKOmF1b2QCOt6+dgk043A8bokDcIsZ21yKvbCWhvrQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794823218; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=kWp4q89iOsiiz05Hi6E+SWz/vvXxb1vx6qL08PjkzVw=; b=iPUH/S2VYF7bkCjkZn6vPOLXcyMRbWGNNTdCy3w7n6EVUNc9IVGwrxCOPG311ernygEn upw/FsX7tZ+7dpOjGW4vwDQMVTm8Ie1k9S8S0D1pHJFeCQ8HXCedkGEqOSh5IAkqJEcZF w2VY0m2ZzNKPcWnA0Z+hdd/SEciB0HVLWP/shwMlb+HZNVJ8JkLmKkPweBOnbbISYQs7p wEudER3/MA5ZoxYSO3SQ1b2xXiNza9CtVqMcAbaEN3KekYz5TPay6UJKKZEEoSo4En8my IMub80U+9ec3gvzN/8N4z8cnHWApPhMgSRJyzO9+xqXnijW+YQ9e1r1BA9EpQPfIM1g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WjFedLxq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0401D606A33E for ; Mon, 16 Nov 2026 10:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WjFedLxq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 115A71F000C7; Mon, 16 Nov 2026 10:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794823217; bh=kWp4q89iOsiiz05Hi6E+SWz/vvXxb1vx6qL08PjkzVw=; h=From:To:Cc:Subject:Date:Reply-To; b=WjFedLxq3VituOWp543TqROlXRXkH3q9byEBtbVvuitdLX1akxydrF9NjcT+/0FEu xQwdaePlH+EA2IsxeWh12THorixUYQ3LabmxdRV44GE59H48p+8pgZmDwQA99ajFfH avU0R4FBSmVtwfkTrVbjVJLjBolHUbFU/4zLtoGo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99307: ceph: require the dentry lease record to cover struct ceph_mds_reply_lease Date: Mon, 16 Nov 2026 10:59:56 +0100 Message-ID: <2026111641-CVE-2026-99307-6b80@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3fAYI6iRXk90/RlV59DLI/5jNztP8dFmweLgPKg48yM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm/rvA+LcjO9NfqUTjBmLhV6cT0b4o3ZY+0t5xQYAzY+ X1VVLRsRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE05FhwcZr85uL+GR5+R1K W2KPJPtXC20IZViwsOfww7+xXftdtj1hlLNM+x++o3ItAA== 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: ceph: require the dentry lease record to cover struct ceph_mds_reply_lease parse_reply_info_lease() reads a 32-bit struct_len off the wire and only checks that many bytes are present, without requiring struct_len to cover sizeof(struct ceph_mds_reply_lease) (10 bytes). A malicious MDS can declare a shorter record and still get the pointer published: the following *p += sizeof(**lease) overshoot is undone by *p = lend, so nothing downstream rejects the reply. ceph_fill_trace() -> update_dentry_lease() then reads 10 bytes through that pointer on any lookup on a mounted CephFS, running past the end of the message front. Require the record to cover the structure, matching the sibling parse_reply_info_dir(). A conforming MDS always encodes the full 10 bytes. BUG: KASAN: slab-out-of-bounds in __update_dentry_lease.constprop.0 (fs/ceph/inode.c:1459) Read of size 4 at addr ffff888026c63d65 by task kworker/0:3/2366 Workqueue: ceph-msgr ceph_con_workfn Call Trace: __update_dentry_lease.constprop.0 (fs/ceph/inode.c:1459) ceph_fill_trace (fs/ceph/inode.c:1474 fs/ceph/inode.c:1823) mds_dispatch (fs/ceph/mds_client.c:4229 fs/ceph/mds_client.c:7225) ceph_con_process_message (net/ceph/messenger.c:1424) ceph_con_v1_try_read (net/ceph/messenger_v1.c:1430) ceph_con_workfn (net/ceph/messenger.c:1576) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) The buggy address is located 357 bytes inside of allocated 360-byte region [ffff888026c63c00, ffff888026c63d68) The Linux kernel CVE team has assigned CVE-2026-99307 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 4ac4c23eaa389859f746a6ef31e1c71d880312f4 and fixed in 6.12.117 with commit 380bc69a0dbc50549cb196da40409aed69c84cfc Issue introduced in 6.6 with commit 4ac4c23eaa389859f746a6ef31e1c71d880312f4 and fixed in 6.18.63 with commit 5ab17ed54e8b7ca64a8d167a09d6a2c865ed51cc Issue introduced in 6.6 with commit 4ac4c23eaa389859f746a6ef31e1c71d880312f4 and fixed in 7.3.4 with commit 058e1c38722a6d5b0181f38fdec03d5da95c3ad1 Issue introduced in 6.6 with commit 4ac4c23eaa389859f746a6ef31e1c71d880312f4 and fixed in 7.4-rc1 with commit 7286b2ffe04d4b39b4e9884f714792589d94f316 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-99307 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/ceph/mds_client.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/380bc69a0dbc50549cb196da40409aed69c84cfc https://git.kernel.org/stable/c/5ab17ed54e8b7ca64a8d167a09d6a2c865ed51cc https://git.kernel.org/stable/c/058e1c38722a6d5b0181f38fdec03d5da95c3ad1 https://git.kernel.org/stable/c/7286b2ffe04d4b39b4e9884f714792589d94f316