# CVE-2026-99306: ceph: reject mdsmaps that claim more than CEPH\_MAX\_MDS ranks

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.74% (percentile 51, 2026-11-28)
- **Published:** 2026-11-16T09:59:30.541Z
- **Modified:** 2026-11-23T08:17:35.543Z

## Who should check

- Anyone running Linux \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 09517f7290d67a7d8d52ef09a969b4788a4bf1dc; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 3e4779e926ce5141205741d6aa50aef2d58615b3; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< a2d198f691e6a4e0db370eaacb0cfa094bcbc914; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 7931e6798f419bda9ac8cf0c095323eff90a7f52; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< e9d72cf5d1bf5b4ddfe86707ada614973d75bf64; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 0574e4aff8e4b28e0d5636204ed4ba2350b8701a; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< c1742590d2b2fc5fb217e1a9b520108f1fe282e5
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

ceph: reject mdsmaps that claim more than CEPH\_MAX\_MDS ranks

check\_new\_map() sizes its export-target bitmap from CEPH\_MAX\_MDS but walks
it with newmap-\>possible\_max\_rank, which comes straight off the wire:
ceph\_mdsmap\_decode() sets it to max(m\_num\_active\_mds, m\_max\_mds), then
overwrites it with the size of the "in" set.  Neither is bounded by
CEPH\_MAX\_MDS, only by m\_info allocating, so a monitor announcing more ranks
than the bitmap holds makes test\_bit() read past the end of targets\[\].  The
clear\_bit() loop above indexes the same bitmap, though it is additionally
bounded by mdsc-\>max\_sessions.  The map arrives on the monitor connection,
which is unauthenticated in legacy msgr mode.

CEPH\_MAX\_MDS is a protocol constant from src/mds/mdstypes.h, and the
reserved inode ranges in super.h are laid out one rank apart over that
span, so a map claiming more ranks is corrupt.  Reject it where the rank
space is established rather than letting the count reach check\_new\_map().

  BUG: KASAN: stack-out-of-bounds in check\_new\_map (fs/ceph/mds\_client.c:5968)
  Read of size 8 at addr ffffc90000ac7798 by task kworker/1:2/127
  Workqueue: ceph-msgr ceph\_con\_workfn
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl (lib/dump\_stack.c:94 lib/dump\_stack.c:120)
   print\_report (mm/kasan/report.c:378 mm/kasan/report.c:482)
   kasan\_report (mm/kasan/report.c:595)
   kasan\_check\_range (mm/kasan/generic.c:186 mm/kasan/generic.c:200)
   check\_new\_map (fs/ceph/mds\_client.c:5968)
   ceph\_mdsc\_handle\_mdsmap (fs/ceph/mds\_client.c:7060)
   extra\_mon\_dispatch (fs/ceph/super.c:802)
   mon\_dispatch (net/ceph/mon\_client.c:1483)
   ceph\_con\_process\_message (net/ceph/messenger.c:1424)
   ceph\_con\_v1\_try\_read (net/ceph/messenger\_v1.c:1430)
   ceph\_con\_workfn (net/ceph/messenger.c:1576)
   process\_one\_work (kernel/workqueue.c:3396)
   worker\_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)
   kthread (kernel/kthread.c:436)
   ret\_from\_fork (arch/x86/kernel/process.c:158)
   ret\_from\_fork\_asm (arch/x86/entry/entry\_64.S:245)
   \</TASK\>
  The buggy address belongs to stack of task kworker/1:2/127
   and is located at offset 288 in frame:
   check\_new\_map (fs/ceph/mds\_client.c:5846)
  This frame has 1 object:
   \[32, 288) 'targets'

## Affected and fixed versions

- Linux: \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 09517f7290d67a7d8d52ef09a969b4788a4bf1dc; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 3e4779e926ce5141205741d6aa50aef2d58615b3; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< a2d198f691e6a4e0db370eaacb0cfa094bcbc914; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 7931e6798f419bda9ac8cf0c095323eff90a7f52; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< e9d72cf5d1bf5b4ddfe86707ada614973d75bf64; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 0574e4aff8e4b28e0d5636204ed4ba2350b8701a; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< c1742590d2b2fc5fb217e1a9b520108f1fe282e5 (cvelist)
- Linux: 5.15 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99306. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99306.md
Affected: Linux >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < 09517f7290d67a7d8d52ef09a969b4788a4bf1dc; >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < 3e4779e926ce5141205741d6aa50aef2d58615b3; >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < a2d198f691e6a4e0db370eaacb0cfa094bcbc914; >= d517b3983dd3106ca92d6c5…
Fixed in: Linux 09517f7290d67a7d8d52ef09a969b4788a4bf1dc, Linux 3e4779e926ce5141205741d6aa50aef2d58615b3, Linux 7931e6798f419bda9ac8cf0c095323eff90a7f52, Linux 0574e4aff8e4b28e0d5636204ed4ba2350b8701a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99306 being exploited?

There is no confirmed exploitation: CVE-2026-99306 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99306?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-99306?

Linux \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 09517f7290d67a7d8d52ef09a969b4788a4bf1dc; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 3e4779e926ce5141205741d6aa50aef2d58615b3; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< a2d198f691e6a4e0db370eaacb0cfa094bcbc914; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 7931e6798f419bda9ac8cf0c095323eff90a7f52; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< e9d72cf5d1bf5b4ddfe86707ada614973d75bf64; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< 0574e4aff8e4b28e0d5636204ed4ba2350b8701a; \>= d517b3983dd3106ca92d6c5d0d09415a4a09481c, \< c1742590d2b2fc5fb217e1a9b520108f1fe282e5; Linux 5.15.

### Is there a fix for CVE-2026-99306?

Yes. Fixed in Linux 09517f7290d67a7d8d52ef09a969b4788a4bf1dc, Linux 3e4779e926ce5141205741d6aa50aef2d58615b3, Linux 7931e6798f419bda9ac8cf0c095323eff90a7f52, Linux 0574e4aff8e4b28e0d5636204ed4ba2350b8701a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99306?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/09517f7290d67a7d8d52ef09a969b4788a4bf1dc>
- other: <https://git.kernel.org/stable/c/3e4779e926ce5141205741d6aa50aef2d58615b3>
- other: <https://git.kernel.org/stable/c/a2d198f691e6a4e0db370eaacb0cfa094bcbc914>
- other: <https://git.kernel.org/stable/c/7931e6798f419bda9ac8cf0c095323eff90a7f52>
- other: <https://git.kernel.org/stable/c/e9d72cf5d1bf5b4ddfe86707ada614973d75bf64>
- other: <https://git.kernel.org/stable/c/0574e4aff8e4b28e0d5636204ed4ba2350b8701a>
- other: <https://git.kernel.org/stable/c/c1742590d2b2fc5fb217e1a9b520108f1fe282e5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99306>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99306> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99306>
