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 000DD4457CB for ; Wed, 26 Aug 2026 14:40:03 +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=1787755207; cv=none; b=dCW3noRog6QMuskJAGxBNV59JOw4GTRc4hinfHSaiLaYxKZAYlx02Iwe0EhRUZpiRlvZQAgqQzREcDDPuq4mqyXz0TrzCnmR279gsU8D03l91q55SN5S8nYgwNG1I8oEp+JE4D02tZdT41dNPBaXLEOv+KfkczHVBs3R3y7SLOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787755207; c=relaxed/simple; bh=ZYxjwrNZEwyPI5cjTPo9QyHE53alhp4ParxKvcuVOXY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ReMtLqBcnKCoPvwjKQJXyj2+gSZzoDkM8DSNa6w5ah/rYduaaGVA8XvqaQ5PlMTgLdyHamwXIUZmkPVWyMwOkmUs3Yeuo/uXJFpnTdYAegs4EQlPo5wBYk0aPEZ+VJe0ha9c0NCX2oxgfoN4Nwpfm6+OwVyCbhZImUK973zuB9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EWYTE3R4; 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="EWYTE3R4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EEAD1F00A3A; Wed, 26 Aug 2026 14:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787755201; bh=h7IohkPS+TRiE+7X+a+ZXwMRB/U7w8/l1su5fh1iiS0=; h=From:To:Cc:Subject:Date:Reply-To; b=EWYTE3R4YdtVY6ykVYNU0fhLTRgslYc3q2cjOI9V/p3TU+YVnlPwqa5+HEWJntPQ+ Gl+DaemxoVlYhhzo8Z0CaFV99rhOlxcaylOf5aiiakUCSdj1kZss66TAdoN7AoOFvQ L7IKMeonauGJ3jYCYXnL/98AZ/ZmcEsxOk8WEtgM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80561: libceph: fix multiple unsafe decodes in decode_locker() Date: Wed, 26 Aug 2026 16:37:57 +0200 Message-ID: <2026082610-CVE-2026-80561-57d4@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=4889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FHmoaXlA3SEf1iGhS0qpYRFRgssMs6o5z4hEQveNh1Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl9v8TevbrWkrKlZprV9lX3Zc1T9mi26C25tX3bCtaiQ 2V/e/VFO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisdcZ5mn9en849fa+Tw7Z R1+/LlplUVz85DDDXJmE8OTGNxdX2c2qdZYqLnI5uGJlOQA= 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 multiple unsafe decodes in decode_locker() decode_locker() in cls_lock_client.c contains three unsafe decode operations that allow a malicious or compromised OSD to trigger slab-out-of-bounds reads: 1. ceph_decode_copy() at the locker_id_t name field has no preceding bounds check. With p == end after ceph_start_decoding() accepts struct_len=0, this reads sizeof(ceph_entity_name) = 9 bytes past the validated buffer boundary. 2. *p += sizeof(struct ceph_timespec) after the locker_info_t header is an unchecked pointer advance. A malicious OSD can position p past end, causing all subsequent _safe checks to pass against a bogus boundary. 3. len = ceph_decode_32(p) has no preceding bounds check, and the immediately following *p += len is uncapped. A malicious OSD can send len=0xffffffff, advancing p gigabytes past end and escaping the decode window entirely. Fix all three by replacing bare operations with their safe variants: ceph_decode_copy -> ceph_decode_copy_safe *p += sizeof(...) -> ceph_decode_skip_n ceph_decode_32(p) -> ceph_decode_32_safe *p += len -> ceph_decode_skip_n A new label is added to return -EINVAL on any bounds violation. -EINVAL is appropriate here: the data received from the OSD is structurally malformed, which is an invalid argument to the decode contract regardless of whether the caller or the wire is at fault. Attacker model: a malicious or compromised OSD in a multi-tenant Ceph deployment can trigger this against any kernel client that issues the lock.get_info class method (e.g. during RBD exclusive lock acquisition) without any further privileges beyond OSD session establishment. [ idryomov: use ceph_decode_skip_string() to skip description, trim changelog ] The Linux kernel CVE team has assigned CVE-2026-80561 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 5.10.266 with commit 1ed45c8d96498725eb54f740172f9068d8673906 Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 5.15.217 with commit 6265103e78f0ee7e2518de9cf938b94bee9700a0 Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 6.1.184 with commit 3c3716dc06a34e4ca7f743f5fcfa07fbc5a11070 Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 6.6.153 with commit fa4aa86fff0c56799c2e3f51a88879053285f4a9 Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 6.12.105 with commit dbfd83f722a78446ec18a476ef7a38e52240b50a Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 6.18.46 with commit d1bba38574d095f191557d397d9633f08cd966b1 Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 7.1.10 with commit 51c8d238fe7236de627ab1a1433694552a904136 Issue introduced in 4.9 with commit d4ed4a530562881cc5225050e42d96034f405aae and fixed in 7.2 with commit 437b6551cfcc235eea1d735a874f9d421f555e17 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-80561 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/cls_lock_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/1ed45c8d96498725eb54f740172f9068d8673906 https://git.kernel.org/stable/c/6265103e78f0ee7e2518de9cf938b94bee9700a0 https://git.kernel.org/stable/c/3c3716dc06a34e4ca7f743f5fcfa07fbc5a11070 https://git.kernel.org/stable/c/fa4aa86fff0c56799c2e3f51a88879053285f4a9 https://git.kernel.org/stable/c/dbfd83f722a78446ec18a476ef7a38e52240b50a https://git.kernel.org/stable/c/d1bba38574d095f191557d397d9633f08cd966b1 https://git.kernel.org/stable/c/51c8d238fe7236de627ab1a1433694552a904136 https://git.kernel.org/stable/c/437b6551cfcc235eea1d735a874f9d421f555e17