CVE-2026-139195: Linux kernel libceph lets a Ceph server’s bad connect_seq trip a WARN_ON, panicking clients that run panic_on_warn

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

The kernel’s Ceph client talks to monitors and OSDs through libceph, and when it uses the older messenger protocol (msgr1) it finishes a connection handshake by reading the peer’s READY/SEQ reply. The kernel CNA record says process_connect() “WARN_ON()s when the peer’s READY/SEQ reply carries a connect_seq other than ours + 1. That value comes off the wire, so a misbehaving or malicious server can trigger the warning at will (and panic machines running with panic_on_warn).” The fix checks the value first and fails the connection with a protocol error, as the other bad-reply paths already did. The CNA and Red Hat score it 7.5 as a remote denial of service. If a host mounts CephFS or maps RBD images in the kernel, upgrade to 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later, and in the meantime prefer the msgr2 protocol and do not run those clients with panic_on_warn.

CVE-2026-139195 at a glance.

ComponentLinux kernel, Ceph client messenger v1 (net/ceph/messenger_v1.c): process_connect(), the CEPH_MSGR_TAG_READY/SEQ branch
Affected versionsevery kernel with the Ceph client (the record starts the range at the initial git import; the messenger arrived in 2.6.34): before 5.15.226, 6.1 before 6.1.193, 6.6 before 6.6.163, 6.12 before 6.12.119, 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc1. The record lists no 5.10 or 5.4 backport
Fixed inmainline 7.4-rc1 (commit 6dfc1b1a, Nguyen Ngoc Thang, authored 2 October 2026, signed off by Ilya Dryomov; net/ceph/messenger_v1.c +6/−2) and stable 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6. The change compares the wire connect_seq with ours + 1 before any state is modified and, on mismatch, sets “protocol error, bad connect_seq” and returns −1; the old post-hoc WARN_ON is removed. Fixes 31b8006e10a4 (“ceph: messenger library”); reported by syzbot
SeverityKernel CNA CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H); NVD shows the CNA metric only; Red Hat Important, 7.5 on the same vector (draft, CWE-617 reachable assertion), bug 2587175 “libceph: Denial of Service via invalid sequence number in connection reply”; Ubuntu Medium, no score
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00718 (55th percentile) on 1 December 2026
Who is exposedA Linux host that mounts CephFS or maps RBD images with the in-kernel client over the legacy msgr1 protocol, talking to a cluster node that is compromised, impersonated or simply buggy. With panic_on_warn=1 the host panics; without it the connection is torn down, the kernel is tainted and the log fills. Red Hat: exposure “is limited to systems actively using kernel-level Ceph services (CephFS or RBD) over the legacy messenger v1 protocol”
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

Every Ceph connection in the kernel client starts with a handshake: the client sends its connect_seq, the server replies, and when the server accepts it answers READY (or SEQ) carrying what it believes the next sequence number is. The client expects exactly its own value plus one. In the vulnerable code the client first adopted the reply, moved the connection to the open state and printed its debug line, and only then asserted with WARN_ON that the sequence matched.

A WARN_ON is a developer’s assertion, not an error path: it prints a stack trace, sets the taint flag and carries on, and on a system booted with panic_on_warn it halts the machine. Because the asserted value arrives from the network, anyone who can answer the client’s connection, a hostile OSD, a monitor behind a hijacked address or a server with a bug of its own, can trigger it on every reconnect. That is why both the CNA and Red Hat score it as network-reachable with no privileges and availability-only impact.

The fix is small: the comparison is done before any connection state changes, and a mismatch sets con->error_msg to “protocol error, bad connect_seq” and returns −1, so the connection fails the same way the other malformed-reply cases in that function already failed. Nguyen Ngoc Thang authored the patch on 2 October 2026 after a syzbot report, Alex Markuze reviewed it and Ilya Dryomov took it into the Ceph tree; it touches only net/ceph/messenger_v1.c (six lines added, two removed). The msgr2 code path has its own handshake and is not named in the record.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The Ceph client is built as a module on every general-purpose distribution, so “vulnerable” means the package ships the code; a host is exposed only when the module is loaded and a cluster is in use.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSAunstable 7.3.6-1
UbuntuMedium, no Ubuntu CVSS; linux needs evaluation in every supported release (26.10, 26.04 LTS, 24.04 LTS, 22.04 LTS, 20.04 LTS and the ESM releases); no USN on 2 December 2026nothing released on 2 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.5 (bug 2587175, CWE-617); kernel and kernel-rt affected in RHEL 8, 9 and 10 and the OpenShift 4/5 RHCOS images; RHEL 6 and 7 not affected; no errata on 2 December 2026—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later

How to check

Three questions settle a host: is the kernel in the affected range, is the Ceph client in use at all, and is it speaking msgr1 to the cluster. The fourth, whether panic_on_warn is set, decides whether the outcome is a crash or a noisy reconnect.

# 1. the running kernel: fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later
uname -r

# 2. is the kernel Ceph client in use (CephFS mounts, RBD maps)
lsmod | grep -E '^(libceph|ceph|rbd) '
grep -E ' ceph | fuse.ceph' /proc/mounts
ls /dev/rbd* 2>/dev/null; rbd showmapped 2>/dev/null

# 3. which messenger: v2 addresses carry "v2:" and ms_mode=; bare host:6789 addresses are msgr1
grep ceph /proc/mounts | grep -oE 'ms_mode=[a-z-]+' ; grep -oE 'v[12]:[0-9a-f.:\[\]]+' /etc/ceph/ceph.conf 2>/dev/null | sort -u

# 4. does a warning become a panic here
sysctl kernel.panic_on_warn

No libceph module and no Ceph mount or RBD map means the code is never reached and the page is a note for the next kernel update. A client in the affected range that connects with ms_mode=legacy, or whose monitor addresses are plain host:6789 entries, is using msgr1 and is exposed to whatever answers those connections; with kernel.panic_on_warn = 1, which some hardened builds and most CI fuzzing images set, a single bad reply halts the host.

How to fix it

Update the kernel and reboot; the Ceph client is in the core kernel package, not a separate module package. Until the kernel is fixed, two settings reduce the exposure: speaking msgr2 to the cluster, which uses a different handshake, and leaving panic_on_warn off on storage clients so a hostile reply costs a reconnect rather than the machine.

# Debian forky / sid (7.3.6-1 carries the fix); trixie and bookworm: watch the tracker row above
apt update && apt install linux-image-amd64 && systemctl reboot
# RHEL / Rocky / Alma: no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot
# Ubuntu: no USN yet; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# Interim: move kernel mounts to msgr2 (Ceph Nautilus or later cluster, kernel 5.11 or later client)
mount -t ceph admin@.cephfs=/ /mnt/cephfs -o ms_mode=crc        # or ms_mode=secure
# and make sure a hostile reply cannot halt the client
sysctl -w kernel.panic_on_warn=0

Switching to msgr2 moves the client off the code path the record names, but a cluster still offering v1 addresses to other clients is still a cluster whose nodes someone may impersonate, so treat it as a bridge to the fixed kernel. What not to do: do not disable the Ceph client’s connection retries or shorten its timeouts to “contain” the problem; the warning fires on the reply, not on the retry, and the fixed kernel already turns it into a clean protocol error.

Sources

  • CVE-2026-139195 at CVE.org — the kernel CNA record: the “that value comes off the wire, so a misbehaving or malicious server can trigger the warning at will (and panic machines running with panic_on_warn)” sentence, the affected file and the git and semver ranges (30 November 2026)
  • Fix commit 6dfc1b1a (mainline, 7.4-rc1; Nguyen Ngoc Thang, 2 October 2026; net/ceph/messenger_v1.c +6/−2; Fixes 31b8006e10a4, Reported-by syzbot, Reviewed-by Alex Markuze, Signed-off-by Ilya Dryomov) and the six stable backports in the record (git.kernel.org refuses automated readers; the GitHub patch view was read on 2 December 2026)
  • NVD entry — Received on 30 November 2026; shows the CNA’s metric as its only score, no NVD score or CWE on 2 December 2026
  • Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium, needs evaluation in every release, no USN) · Red Hat (Important 7.5, bug 2587175, CWE-617, RHEL 8/9/10 affected) · SUSE and Alpine (both refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00718 (percentile 0.551) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.