CVE-2026-99904

Source
https://cve.org/CVERecord?id=CVE-2026-99904
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99904.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99904
Downstream
Published
2026-11-30T13:18:08Z
Modified
2026-11-30T15:02:31Z
Summary
ceph: fix longname buffer overflow in ceph_fname_to_usr()
Details

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

ceph: fix longname buffer overflow in ceph_fname_to_usr()

Snapshot longname reconstruction formats "" 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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99904.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dd66df0053ef84add5e684df517aa9b498342381
Fixed
437541c22e9679d2cddb2028e03122d1d0851039
Fixed
fc4fb91ec42f1bb371f17784ac5a928c73f4f739
Fixed
8b03dcc96978da9480c908b5a2fd92e697531e33
Fixed
0c162c18a774ab36c090088d2b27ed9ddb095fa4
Fixed
71975d6e0db17646102488cf54480fda9de0f7a7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99904.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.118
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.64
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99904.json"