From mboxrd@z Thu Jan 1 00:00:00 1970 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 CBB0E30C16D for ; Wed, 24 Jun 2026 16:33:05 +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=1782318786; cv=none; b=umtlmTTee2znfvPyzJ4i9hkwMK7mkj78YGwDNslLVaGTePNrQCQPLFW8lbeDHV/tXk4lLkBG5fwxGDm3k1j5Q4RN/Fvdksa/nF+Me88nXYMSavMKYCNSYGgZH73NeGAKwom2T3Ycesz1nkKfMrjo7cFlCkg8SZaSA19SUPigVUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318786; c=relaxed/simple; bh=PKel7TmDweLinvc4kZVl3FGZ8dsmugLvnBgOJ1ObU08=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KawOzoW9UGD1bA0LzrTCC/f/gNmZcN4KsD3btn5wqjhUX0j7klhuSvLvO7juUWy0HnrjR6wRDeMgMUGkKm1UKjspAKq4J2s3IQdaYQO5pcrhiJWCh21ynnQstjDwPTxvSvK6JyBROoxojDGd/c74zbE6xYIE1m2UASYNBvcAuAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oWHgKoJp; 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="oWHgKoJp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC0771F000E9; Wed, 24 Jun 2026 16:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318785; bh=fz35ROqD/tY2CQifDrSmP71o0e/226tx4UzOHaJsV2M=; h=From:To:Cc:Subject:Date:Reply-To; b=oWHgKoJpWGyvTZQubDzhhT+efrMhC6K8QOPOVePXf8puMFSimQhGABs//hpe9cU7y 67KzOUc/j76gNwYCiyYlpONEnLpH5bGuPEOYLB3Yu4I6Zwtfex//M0y9s/u7HkUGtL pQEIianND7kJu8Aebqttk2Lh8/CthaLHt5gq/KqQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52956: libceph: Fix potential out-of-bounds access in __ceph_x_decrypt() Date: Wed, 24 Jun 2026 17:29:40 +0100 Message-ID: <2026062435-CVE-2026-52956-99b7@gregkh> X-Mailer: git-send-email 2.54.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=2470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=prCujrwECZPrMGq6L0KDRdEVQiJ/Q6w28XVvsUdfhc0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rO//2Fcz3Xk3J5J5/WnBHYEuDJPuSEuu9U5UXxhQO Pd/15njHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARpZsMC64EX7Pa2vha4CbP 9egpt58E7YhLeMswV+T/0ny2tsK3LYVujIort9ya9CTZDgA= 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 potential out-of-bounds access in __ceph_x_decrypt() In __ceph_x_decrypt(), a part of the buffer p is interpreted as a ceph_x_encrypt_header, and the magic field of this struct is accessed. This happens without any guarantee that the buffer is large enough to hold this struct. The function parameter ciphertext_len represents the length of the ciphertext to decrypt and is guaranteed to be at most the remaining size of the allocated buffer p. However, this value is not necessarily greater than sizeof(ceph_x_encrypt_header). E.g., a message frame of type FRAME_TAG_AUTH_REPLY_MORE, that is just as long to hold the ciphertext at its end with a ciphertext_len of 8 or less, can trigger an out-of-bounds memory access when accessing hdr->magic. This patch fixes the issue by adding a check to ensure that the decrypted plaintext in the buffer is large enough to represent at least the ceph_x_encrypt_header. The Linux kernel CVE team has assigned CVE-2026-52956 to this issue. Affected and fixed versions =========================== Fixed in 7.0.10 with commit c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2 Fixed in 7.1 with commit 821365487aa58d06bda65c676ba215d506ba9768 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-52956 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/auth_x.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/c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2 https://git.kernel.org/stable/c/821365487aa58d06bda65c676ba215d506ba9768