Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F1088145A05 for ; Tue, 23 Sep 2025 06:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758607282; cv=none; b=f3efl3ELoyHpUnTeRY14UD1wKeEreHhtdyXRDB13TcZ/7VBqhMj94XcFwHmwYCQUH+Ydv78dhlJ9wjKWf1YhzffiLAQiQCJL8EwTH7enHQH39n1MwKLzwolozeBnh6SHhfdnF0KarV69ptIbY+ViJz+rv4ZaHKdyZM7Q4D2A7fQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758607282; c=relaxed/simple; bh=s1l96v/8gEY2LW/zfmVEW0EkEhbiCRNSczC6x2avjiE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=liKt4URxneGB2EyiM1aIxWEj5Ui/8x4d7oMYGTMif2f6Iw0wkdhyOy9Vx7kJVlxZXUtVjFO6mG0Fs6onBbyuZFPBfleUr9mGTtJ0LTme1P64eAtnm6nGNffkJr5p2bMclTG2CAg3Nxn7FFVtE/jbJIL7ET5m9rLaA0uHzIW0LZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TliKQJXd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TliKQJXd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35935C4CEF5; Tue, 23 Sep 2025 06:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758607281; bh=s1l96v/8gEY2LW/zfmVEW0EkEhbiCRNSczC6x2avjiE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TliKQJXdZQxPlaqOhWwfPD8GfHDrRvbEokEf7npIuBTZIwWk0B3dStL6RPsdqToRp AfFBW8Jgk8mLfT8gXD7wjcMeffo9JgREx3EKSJyP+Y63CjeG1c9cB8CGryQcYqyt04 CTlb2OGQUWAjysT6Q59BXYoCdx3JvBI9sw9JNWNE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39880: libceph: fix invalid accesses to ceph_connection_v1_info Date: Tue, 23 Sep 2025 08:01:11 +0200 Message-ID: <2025092301-CVE-2025-39880-17c5@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3147; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=s0/PHpAAG7IfKHmo+wRiqo6Is/x2g59B1CB1/K/pK9k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmXzOe+5Jm6esUjZdYqi/aL/JPrjqdkfI2WSMvzOnQvN HjaN9fejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIuC/D/JANxtNUrhz7+DPd d94LL4Ur6fPvKjMs6NgwZ67xtHPRs/Z4Ku5/WiuiwszxGQA= 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 invalid accesses to ceph_connection_v1_info There is a place where generic code in messenger.c is reading and another place where it is writing to con->v1 union member without checking that the union member is active (i.e. msgr1 is in use). On 64-bit systems, con->v1.auth_retry overlaps with con->v2.out_iter, so such a read is almost guaranteed to return a bogus value instead of 0 when msgr2 is in use. This ends up being fairly benign because the side effect is just the invalidation of the authorizer and successive fetching of new tickets. con->v1.connect_seq overlaps with con->v2.conn_bufs and the fact that it's being written to can cause more serious consequences, but luckily it's not something that happens often. The Linux kernel CVE team has assigned CVE-2025-39880 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit cd1a677cad994021b19665ed476aea63f5d54f31 and fixed in 6.1.153 with commit 591ea9c30737663a471b2bb07b27ddde86b020d5 Issue introduced in 5.11 with commit cd1a677cad994021b19665ed476aea63f5d54f31 and fixed in 6.6.107 with commit 23538cfbeed87159a5ac6c61e7a6de3d8d4486a8 Issue introduced in 5.11 with commit cd1a677cad994021b19665ed476aea63f5d54f31 and fixed in 6.12.48 with commit 35dbbc3dbf8bccb2d77c68444f42c1e6d2d27983 Issue introduced in 5.11 with commit cd1a677cad994021b19665ed476aea63f5d54f31 and fixed in 6.16.8 with commit 6bd8b56899be0b514945f639a89ccafb8f8dfaef Issue introduced in 5.11 with commit cd1a677cad994021b19665ed476aea63f5d54f31 and fixed in 6.17-rc6 with commit cdbc9836c7afadad68f374791738f118263c5371 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-2025-39880 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/messenger.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/591ea9c30737663a471b2bb07b27ddde86b020d5 https://git.kernel.org/stable/c/23538cfbeed87159a5ac6c61e7a6de3d8d4486a8 https://git.kernel.org/stable/c/35dbbc3dbf8bccb2d77c68444f42c1e6d2d27983 https://git.kernel.org/stable/c/6bd8b56899be0b514945f639a89ccafb8f8dfaef https://git.kernel.org/stable/c/cdbc9836c7afadad68f374791738f118263c5371