CVE-2025-39880
kernel: libceph: fix invalid accesses to ceph_connection_v1_info
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 23, 2025
Updated · July 30, 2026
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.
Statement
libceph’s messenger accessed ceph_connection_v1_info fields while running the msgr2 path, due to missing protocol checks. On 64-bit systems, the v1 union members overlap with msgr2 buffers/iterators, leading to bogus auth_retry reads (spurious authorizer invalidation) and unintended connect_seq writes, which can degrade availability (re-auth/reconnect loops).
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, prevent module libceph from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.
CVSS / CWE
CVSS 3.1 · 5.1CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE-843 · Access of Resource Using Incompatible Type ('Type Confusion')