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 1BAFC3AEF4F for ; Mon, 10 Aug 2026 12:03:44 +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=1786363428; cv=none; b=IpYL5uvJgefC1XpwBC55oqFbJCU661+eJ3vIrC4JAdG6wgF5Z4pemmYUG3akjXk+otPvDdrUoD6g0yP1mUtLY8ZNR9+zq8zG4zMNS+GITZMQADLlsXAG1t7a47XfOv9KkopfR7Iv2MCA4WWP4i+pSwH3cfGsGomfVz1uFB1qP78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363428; c=relaxed/simple; bh=JZyKd3KWaweaiWsn7Gsz6Ftni5TJCAATFXIavldyIoY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uqru5rrqxO08izAsEsGhI3Lhx1YNYmaKkvA/9RHaJO2dpRta6aEdNrfNKn1C4kRSq2fn5pBO1jUTnaiiJ6SS4rLMrOkCT8u94I5el/XSBi6Hc3s1AFz+4FJzHtQyvS0s/j93chAwNLPsxFdS99kX+m9JH4ByLkUNnLswaNOwmwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RZw5n5sn; 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="RZw5n5sn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D3A91F00A3D; Mon, 10 Aug 2026 12:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363421; bh=VE512FoHCvnSrHsWTNjF4jITf5XeE+5CW2CKEzHGSqA=; h=From:To:Cc:Subject:Date:Reply-To; b=RZw5n5snnp5EDoDNBSmOifwxZXDMMEqQcg5W0yNMqXnAkcx+k9Af/RhdGvnIUtFQX sVwa1m0JjhO8hYhqxaBjrr3DC1ph72wwgCLZuh2KNwbCdgm5HQyV5TZK6il6aPgpLQ oHzeCcCsThCjmIwU/XHtyw26N+5TCFQKxNfoDa54= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68158: libceph: Fix multiplication overflow in decode_new_up_state_weight() Date: Mon, 10 Aug 2026 13:57:55 +0200 Message-ID: <2026081003-CVE-2026-68158-1af0@gregkh> X-Mailer: git-send-email 2.55.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=3891; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YLdtcBS8D63WSNbFh5fDTNjHZPJr/nLHzvw9kiSVHuc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe/r/5r3VmCiyI+x7bX/2/+zNfJEn2ezcst8n/T96e rrNpRvOHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRHZsZFrRrcTcvzSrX32J9 vvvFlhkrNBRnbmOYn6fncvHMtl0Pj6yQ1Ft8YWfv77boVgA= 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: Fix multiplication overflow in decode_new_up_state_weight() If a message of type CEPH_MSG_OSD_MAP contains a (maliciously) corrupted osdmap, out-of-bounds memory accesses may occur in decode_new_up_state_weight(). This happens because the bounds check for the new_state part is based on calculating its length depending on a len value read from the incoming message. This calculation may overflow leading to an incorrect bounds check. Subsequently, out-of-bounds reads may occur when decoding this part. This patch switches the multiplication to use check_mul_overflow() to abort processing the osdmap if an overflow occurred. Therefore, osdmaps/messages containing large values for len that result in a multiplication overflow are treated as invalid. [ idryomov: rename new_state_len -> new_state_item_size, formatting ] The Linux kernel CVE team has assigned CVE-2026-68158 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 930c532869774ebf8af9efe9484c597f896a7d46 and fixed in 6.6.148 with commit 05c90e059269f087becfcce23348496085835c29 Issue introduced in 4.7 with commit 930c532869774ebf8af9efe9484c597f896a7d46 and fixed in 6.12.101 with commit 143ba49ead77ec483c0326f8aaad8649874e99c4 Issue introduced in 4.7 with commit 930c532869774ebf8af9efe9484c597f896a7d46 and fixed in 6.18.42 with commit 1732d89dfcd74f6fde9ce70900d316c4a151c153 Issue introduced in 4.7 with commit 930c532869774ebf8af9efe9484c597f896a7d46 and fixed in 7.1.6 with commit bee4b5b53e7bff0467fd916cc44c9b190733c6bd Issue introduced in 4.7 with commit 930c532869774ebf8af9efe9484c597f896a7d46 and fixed in 7.2-rc5 with commit 98917a499ec7064c14fc56d180a4fd636fc2784c Issue introduced in 3.10.103 with commit 1196c36fd53c3b1615eb02f986cb727b1dfc1047 Issue introduced in 3.12.63 with commit bbc3aa6b0e6050b2b2e04a08dd4d6423d576b196 Issue introduced in 3.14.75 with commit 6b96b2d473701b45df3fea8dd9796b6ec39e6d54 Issue introduced in 3.16.39 with commit 7405d73cea0d0e6c541f5c534078feeb46188844 Issue introduced in 3.18.39 with commit 8777c9f654637d56f4c4ca54eb1bc7c609b70085 Issue introduced in 4.1.30 with commit 6831c98ce0b8a3e88db64aa224372effd0dcc694 Issue introduced in 4.4.17 with commit 032951d32c13b7564dfba82758260cb7aa1149d2 Issue introduced in 4.6.6 with commit 14877928f10667a5606383885d004f7185f33718 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-68158 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/osdmap.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/05c90e059269f087becfcce23348496085835c29 https://git.kernel.org/stable/c/143ba49ead77ec483c0326f8aaad8649874e99c4 https://git.kernel.org/stable/c/1732d89dfcd74f6fde9ce70900d316c4a151c153 https://git.kernel.org/stable/c/bee4b5b53e7bff0467fd916cc44c9b190733c6bd https://git.kernel.org/stable/c/98917a499ec7064c14fc56d180a4fd636fc2784c