ceph: fix longname buffer overflow in ceph_fname_to_usr() (Linux Linux)

CVE-2026-99904
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.52 % · percentile 46 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ dd66df0053ef84add5e684df517aa9b498342381 < 437541c22e9679d2cddb2028e03122d1d0851039
affected : ≥ dd66df0053ef84add5e684df517aa9b498342381 < fc4fb91ec42f1bb371f17784ac5a928c73f4f739
affected : ≥ dd66df0053ef84add5e684df517aa9b498342381 < 8b03dcc96978da9480c908b5a2fd92e697531e33
affected : ≥ dd66df0053ef84add5e684df517aa9b498342381 < 0c162c18a774ab36c090088d2b27ed9ddb095fa4
affected : ≥ dd66df0053ef84add5e684df517aa9b498342381 < 71975d6e0db17646102488cf54480fda9de0f7a7
Other versions : unaffected
Linux · Linux
affected : 6.6
unaffected : ≥ 0 < 6.6
unaffected : ≥ 6.6.163 ≤ 6.6.*
unaffected : ≥ 6.12.118 ≤ 6.12.*
unaffected : ≥ 6.18.64 ≤ 6.18.*
unaffected : ≥ 7.3.4 ≤ 7.3.*
unaffected : ≥ 7.4-rc1 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD