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=1794823246; b=hQuwKDPqPtL4f0qBx0SdIPySOVauY20UQU8jdmxGnMZqlr9M87aYLfW7Z1K3QjMvnTFS 6e/nPS+FmUJK5Kkg0ospWDiPxDwLnR0tQfMYnbe9rzhaVRK6rVNKOEFRQB3f3CaIa1uCI xniAQR+s4sYSqA7e8S2reJijsu3zk9EL9p/SNF7wyD5AssmRW5rM5sUG0g38t895HiJSm 5o3v0ORat7Nvmquirm/WUgJrxaDXBklC+wCd311PRW5QnWu2mX8zSxmWGAshlOUM4RcfF nMUq0gLu6Cawi2/BgD5ZKfEq8SuN7SFn8MF2lO3eb6wbBiGo9Hub/LtkDrbGfZYiI1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794823246; 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=upr48W/btA69TNZErBQRXkLgLhlby2AGYC5FwkuuEOU=; b=XThFFDfoVcZha2gxzgog5Qo8t06OYoVUgpnxdgaKDWUFtHgxZ4zSOBu0MZTNcC177QNb lsOPtS6PmcJnWJZriKkI4d1xbEs8m0XBeP7t6tFS6pID4sHEgodcqlq8Nehsqri/0DOYS yaYUFelQwhDp/R+5duNsDJN/HlB4i9ZqaZm5H5lmcD4M9Blek6iY32CXy5hKl0zFzT1rI AftuRgbruDYaP7sGQui0jhxMcZp0T+7GAhftSMsl76pLX427ukBT26ZcX8kd9fnS2wxlR fW8QYwqoqmxz9Kv2d/XJrCETqrtSYgzq+50P3NbyDfVFj0kaA+A+OBW077cshgrDxwg== 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=cGG0X++d; 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 61788606A31C for ; Mon, 16 Nov 2026 10:00:46 +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=cGG0X++d Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFCAF1F000C4; Mon, 16 Nov 2026 10:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794823246; bh=upr48W/btA69TNZErBQRXkLgLhlby2AGYC5FwkuuEOU=; h=From:To:Cc:Subject:Date:Reply-To; b=cGG0X++dC019mYHbjbzJ/IrZlnDdpHdoZyHlsMXYIj2PbOsGrHFBNMPdBGHyjGiQo 1341GBLa4VCfg0fid6PW/4IpHJs1/9QP+FmAKQtxkpMnv1gfoVJkvlpaMRHRg0Z+Y3 cq4LnELnfY9a+wNLXgqdD/vFWg0NDQFoI9GsRBIY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99296: libceph: bound mon_command ack decode to front len Date: Mon, 16 Nov 2026 10:59:45 +0100 Message-ID: <2026111639-CVE-2026-99296-3974@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=4263; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TdeeKoobCWog9twqmpFNRrUnZzOG5dY2oeGmutuFc+s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm/rnD7Hq1483lHe/fa56vecTEsuChyV6Y8y4MrMFilI Dfon114RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk9gjDXIGGoxPevnpuX7Pe 61+FRUTc3We3RBkWzJVRfMFb4+ao56Ira9h3Zd1TCdt4AA== 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: libceph: bound mon_command ack decode to front len handle_command_ack() bounds the decode with msg->front_alloc_len, the size of the reply buffer, instead of msg->front.iov_len, the number of bytes the monitor sent. mon_alloc_msg() routes every CEPH_MSG_MON_COMMAND_ACK to get_generic_reply(), which returns the preallocated ->reply of whichever generic request carries the same tid, so the buffer keeps its fixed size however short the reply is. An ack with hdr.front_len below sizeof(struct ceph_mon_request_header) + sizeof(u32), including 0, still passes ceph_decode_need(), and ceph_decode_32() returns four bytes that were never received: uninitialized slab memory, stale bytes of an earlier message, or bytes the peer planted by sending a reply that lands in the same buffer and is then rejected. The read stays within the allocation, so KASAN does not flag it. req->result reaches userspace through ceph_monc_do_statfs(), ceph_monc_get_version() and ceph_monc_blocklist_add(); rbd hands it back from write() on /sys/bus/rbd/add_single_major, and rbd_get_client() passes it to ERR_PTR() unchecked, which faults: rbd: failed to get latest osdmap: -186318427 BUG: unable to handle page fault for address: fffffbfffe9ca034 Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:do_rbd_add (drivers/block/rbd.c:7105) Call Trace: ... kernfs_fop_write_iter (fs/kernfs/file.c:345) vfs_write (fs/read_write.c:595 fs/read_write.c:687) ksys_write (fs/read_write.c:739) do_syscall_64 (arch/x86/entry/syscall_64.c:61 arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Kernel panic - not syncing: Fatal exception Use msg->front.iov_len, matching handle_subscribe_ack(), handle_statfs_reply(), handle_get_version_reply() and handle_auth_reply(). A well-formed ack has front.iov_len >= 22 and is unaffected; a short one takes the existing bad: path. This applies commit d3c32939fa0e ("libceph: bound get_version reply decode to front len") to the last decode-side use of front_alloc_len in this file. The Linux kernel CVE team has assigned CVE-2026-99296 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 6305a3b415157759bfe4b50a643fac22ea229f5c and fixed in 6.12.117 with commit c6696ac94c8c3ad79a9fa57fc334af2dc1a1f72e Issue introduced in 4.9 with commit 6305a3b415157759bfe4b50a643fac22ea229f5c and fixed in 6.18.61 with commit 04a04953b4828bfd8efd4ea3e7e9ad7dac5b083b Issue introduced in 4.9 with commit 6305a3b415157759bfe4b50a643fac22ea229f5c and fixed in 7.3.2 with commit be9fa57665efae4060d17ab21675c1c033d54a80 Issue introduced in 4.9 with commit 6305a3b415157759bfe4b50a643fac22ea229f5c and fixed in 7.4-rc1 with commit 62b41a16d8603d4d809fda212f15c3e9c783a82b 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-99296 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: net/ceph/mon_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/c6696ac94c8c3ad79a9fa57fc334af2dc1a1f72e https://git.kernel.org/stable/c/04a04953b4828bfd8efd4ea3e7e9ad7dac5b083b https://git.kernel.org/stable/c/be9fa57665efae4060d17ab21675c1c033d54a80 https://git.kernel.org/stable/c/62b41a16d8603d4d809fda212f15c3e9c783a82b