Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99904

published high CVSS 3.1 · 7.5

ceph: fix longname buffer overflow in ceph_fname_to_usr()

Published
30 Nov 2026, 13:18:08 UTC
Updated
01 Dec 2026, 05:44:17 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxdd66df0053ef84add5e684df517aa9b498342381 to < 437541c22e9679d2cddb2028e03122d1d0851039 · dd66df0053ef84add5e684df517aa9b498342381 to < fc4fb91ec42f1bb371f17784ac5a928c73f4f739 · dd66df0053ef84add5e684df517aa9b498342381 to < 8b03dcc96978da9480c908b5a2fd92e697531e33 · dd66df0053ef84add5e684df517aa9b498342381 to < 0c162c18a774ab36c090088d2b27ed9ddb095fa4 · dd66df0053ef84add5e684df517aa9b498342381 to < 71975d6e0db17646102488cf54480fda9de0f7a7 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected; Pending Fix Not stated Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: ceph: fix longname buffer overflow in ceph_fname_to_usr() Snapshot longname reconstruction formats "_<name>_<inode>" via snprintf() and memcpy()s the result into oname->name. Checking the length against NAME_MAX only protects the LOOKUPNAME/export callers, whose buffer is allocated with fscrypt_fname_alloc_buffer(NAME_MAX). The readdir path points oname->name straight at the altname in the MDS reply, whose capacity is altname_len; the reconstructed name can exceed that while still fitting under NAME_MAX, overflowing the in-place destination. Save the actual oname->len before the decryption overwrites it, and fail with -ENAMETOOLONG when the reconstructed name would not fit.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The bytes come from a CEPH_MSG_CLIENT_REPLY to the victim's CEPH_MDS_OP_LSSNAP. parse_reply_info_readdir() points oname.name at the lease altname inside the front buffer, which mds_alloc_msg() sizes with kvmalloc(front_len). ceph_fname_to_usr() then memcpy()s "_<name>_<ino>" over it. A hostile MDS on a routable TCP session can end the front right at the altname. AC:H - parse_longname() must resolve the MDS-named ino to a cached dir that IS_ENCRYPTED and passes fscrypt_has_encryption_key(), so the victim must have added an fscrypt key on this CephFS mount, which the MDS cannot cause. Without a key the raw-name path returns first. With a legitimate MDS the overrun only hits the next InodeStat header in the same reply and gives -EIO. PR:N - The attacker is the MDS endpoint and needs no account or capability on the client. handle_reply() runs parse_reply_info() on the reply to the registered LSSNAP tid, and nothing on the client checks the altname layout or front_len before the in-place decrypt and memcpy. UI:R - The victim must mount the cluster and getdents() a .snap directory; ceph_readdir() sends CEPH_MDS_OP_LSSNAP only for a CEPH_SNAPDIR. info->dir_entries exists only for that client request, so the MDS cannot push the reply unsolicited. S:U - The write corrupts the client kernel's own slab heap next to the reply front. No guest/host, IOMMU or sandbox boundary is crossed, so the impact stays in the kernel's own security authority. C:H - This is an out-of-bounds slab write of up to 22 bytes (a plaintext byte, '_', and the decimal i_ino) into the head of the neighbouring object, in a kmalloc cache the MDS selects through front_len. Corrupting a length or pointer field there can be leveraged into a kernel memory read. I:H - memcpy(oname->name, tmp_buf, name_len) in ceph_fname_to_usr() writes up to 2 + digits(i_ino) bytes past an altname that ends at the end of the kvmalloc'd reply front, into an adjacent heap object. The bytes are constrained, but the target object can be groomed, so this is a real heap out-of-bounds write. A:H - Overwriting the start of the next slab object (list pointers or refcounts) with ASCII digits leads to a non-canonical pointer dereference or slab corruption. If the front was vmalloc'd, the write hits the guard page and faults. Either way the client kernel oopses.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux dd66df0053ef84add5e684df517aa9b498342381 to < 437541c22e9679d2cddb2028e03122d1d0851039 (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < fc4fb91ec42f1bb371f17784ac5a928c73f4f739 (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < 8b03dcc96978da9480c908b5a2fd92e697531e33 (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < 0c162c18a774ab36c090088d2b27ed9ddb095fa4 (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < 71975d6e0db17646102488cf54480fda9de0f7a7 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.6 (affected)0 to < 6.6 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

ceph: fix longname buffer overflow in ceph_fname_to_usr()

Provenance

Schema
5.2
Searchable
yes
Content hash
e75ffd9c94181bb423ddf0e030ad79e3d6420c6a0e5560b309a74dce2adb3696
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected