# CVE-2026-99304: ceph: fix integer overflow in the snap trace bounds check

- **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.76% (percentile 51, 2026-11-28)
- **Published:** 2026-11-16T09:59:29.159Z
- **Modified:** 2026-11-23T08:17:35.217Z

## Who should check

- Anyone running Linux \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< b4e69d35322036487941d32fd4055deb6a49f267; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 63560ef6e6bd060414fe67fc2d1c89008184ad17; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 442b879c34020ae8034626c83192f94bf6e048e0; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< dc59983d1a4c8968645c7005f843ec6d8c86291e; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< bf8f13872959af1d87e36b7d27096a09fdcf6e47; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< f0dbd6b9b05e919ebab668f3479aebbcd2431fce; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 25ae51760b751d170e29425b7851ee577e2cd5ba; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< b3bf89767e3ca9506f1c7167cac97c41ec254d42
- Anyone running Linux 2.6.34

## Description

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

ceph: fix integer overflow in the snap trace bounds check

ceph\_update\_snap\_trace() bounds the two encoded snapid arrays that follow a
struct ceph\_mds\_snap\_realm with sizeof(u64) \* (num\_snaps +
num\_prior\_parent\_snaps).  Both counts come straight off the wire as \_\_le32,
so the addition is evaluated in unsigned int and wraps before sizeof(u64)
promotes it to size\_t: an MDS sending num\_snaps = 1 and
num\_prior\_parent\_snaps = 0xffffffff makes the sum zero and the check
degenerates to ceph\_decode\_need(&p, e, 0, bad), which always passes.
dup\_array() then reads num\_snaps \* 8 bytes past the end of the message
front, which ceph\_msg\_new2() allocates at exactly front\_len bytes.  An
unsolicited CEPH\_MSG\_CLIENT\_SNAP reaches this from a malicious or
compromised MDS with no client-side action, as do the snaptraces carried in
an MDS reply and in a cap import.

Compute the length with size\_add()/size\_mul() so it saturates at SIZE\_MAX
instead of wrapping, in the style fs/ceph/mdsmap.c already uses for
num\_export\_targets.

  BUG: KASAN: slab-out-of-bounds in dup\_array (include/linux/unaligned.h:28 fs/ceph/snap.c:500)
  Read of size 8 at addr ffff8880102a16c8 by task kworker/1:2/129
  Workqueue: ceph-msgr ceph\_con\_workfn
  Call Trace:
   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)
   dup\_array (include/linux/unaligned.h:28 fs/ceph/snap.c:500)
   ceph\_update\_snap\_trace (fs/ceph/snap.c:836)
   ceph\_handle\_snap (fs/ceph/snap.c:1155)
   mds\_dispatch (fs/ceph/mds\_client.c:7234)
   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)
  ...
  The buggy address is located 0 bytes to the right of
   allocated 72-byte region \[ffff8880102a1680, ffff8880102a16c8)

## Affected and fixed versions

- Linux: \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< b4e69d35322036487941d32fd4055deb6a49f267; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 63560ef6e6bd060414fe67fc2d1c89008184ad17; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 442b879c34020ae8034626c83192f94bf6e048e0; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< dc59983d1a4c8968645c7005f843ec6d8c86291e; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< bf8f13872959af1d87e36b7d27096a09fdcf6e47; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< f0dbd6b9b05e919ebab668f3479aebbcd2431fce; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 25ae51760b751d170e29425b7851ee577e2cd5ba; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< b3bf89767e3ca9506f1c7167cac97c41ec254d42 (cvelist)
- Linux: 2.6.34 (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-99304. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99304.md
Affected: Linux >= 963b61eb041e8850807d95f8d7a4c6a454c45000, < b4e69d35322036487941d32fd4055deb6a49f267; >= 963b61eb041e8850807d95f8d7a4c6a454c45000, < 63560ef6e6bd060414fe67fc2d1c89008184ad17; >= 963b61eb041e8850807d95f8d7a4c6a454c45000, < 442b879c34020ae8034626c83192f94bf6e048e0; >= 963b61eb041e8850807d95f…
Fixed in: Linux 63560ef6e6bd060414fe67fc2d1c89008184ad17, Linux 442b879c34020ae8034626c83192f94bf6e048e0, Linux 25ae51760b751d170e29425b7851ee577e2cd5ba

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-99304 being exploited?

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

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

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

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

Linux \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< b4e69d35322036487941d32fd4055deb6a49f267; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 63560ef6e6bd060414fe67fc2d1c89008184ad17; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 442b879c34020ae8034626c83192f94bf6e048e0; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< dc59983d1a4c8968645c7005f843ec6d8c86291e; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< bf8f13872959af1d87e36b7d27096a09fdcf6e47; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< f0dbd6b9b05e919ebab668f3479aebbcd2431fce; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< 25ae51760b751d170e29425b7851ee577e2cd5ba; \>= 963b61eb041e8850807d95f8d7a4c6a454c45000, \< b3bf89767e3ca9506f1c7167cac97c41ec254d42; Linux 2.6.34.

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

Yes. Fixed in Linux 63560ef6e6bd060414fe67fc2d1c89008184ad17, Linux 442b879c34020ae8034626c83192f94bf6e048e0, Linux 25ae51760b751d170e29425b7851ee577e2cd5ba. No fix listed yet: follow the vendor advisory.

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

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/b4e69d35322036487941d32fd4055deb6a49f267>
- other: <https://git.kernel.org/stable/c/63560ef6e6bd060414fe67fc2d1c89008184ad17>
- other: <https://git.kernel.org/stable/c/442b879c34020ae8034626c83192f94bf6e048e0>
- other: <https://git.kernel.org/stable/c/dc59983d1a4c8968645c7005f843ec6d8c86291e>
- other: <https://git.kernel.org/stable/c/bf8f13872959af1d87e36b7d27096a09fdcf6e47>
- other: <https://git.kernel.org/stable/c/f0dbd6b9b05e919ebab668f3479aebbcd2431fce>
- other: <https://git.kernel.org/stable/c/25ae51760b751d170e29425b7851ee577e2cd5ba>
- other: <https://git.kernel.org/stable/c/b3bf89767e3ca9506f1c7167cac97c41ec254d42>

## 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-99304>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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