{"id":"CVE-2026-99904","aliases":["CVE-2026-99904"],"related":[],"kind":"vulnerability","state":"published","title":"ceph: fix longname buffer overflow in ceph_fname_to_usr()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix longname buffer overflow in ceph_fname_to_usr()\n\nSnapshot longname reconstruction formats \"_<name>_<inode>\" via snprintf()\nand memcpy()s the result into oname->name.  Checking the length against\nNAME_MAX only protects the LOOKUPNAME/export callers, whose buffer is\nallocated with fscrypt_fname_alloc_buffer(NAME_MAX).  The readdir path\npoints oname->name straight at the altname in the MDS reply, whose\ncapacity is altname_len; the reconstructed name can exceed that while\nstill fitting under NAME_MAX, overflowing the in-place destination.\n\nSave the actual oname->len before the decryption overwrites it, and fail\nwith -ENAMETOOLONG when the reconstructed name would not fit.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix longname buffer overflow in ceph_fname_to_usr()\n\nSnapshot longname reconstruction formats \"_<name>_<inode>\" via snprintf()\nand memcpy()s the result into oname->name.  Checking the length against\nNAME_MAX only protects the LOOKUPNAME/export callers, whose buffer is\nallocated with fscrypt_fname_alloc_buffer(NAME_MAX).  The readdir path\npoints oname->name straight at the altname in the MDS reply, whose\ncapacity is altname_len; the reconstructed name can exceed that while\nstill fitting under NAME_MAX, overflowing the in-place destination.\n\nSave the actual oname->len before the decryption overwrites it, and fail\nwith -ENAMETOOLONG when the reconstructed name would not fit.","source":"cvelist"}],"published":"2026-11-30T13:18:08.522Z","modified":"2026-12-01T06:17:57.410Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dd66df0053ef84add5e684df517aa9b498342381","fixed":"437541c22e9679d2cddb2028e03122d1d0851039","status":"affected"},{"type":"git","introduced":"dd66df0053ef84add5e684df517aa9b498342381","fixed":"fc4fb91ec42f1bb371f17784ac5a928c73f4f739","status":"affected"},{"type":"git","introduced":"dd66df0053ef84add5e684df517aa9b498342381","fixed":"8b03dcc96978da9480c908b5a2fd92e697531e33","status":"affected"},{"type":"git","introduced":"dd66df0053ef84add5e684df517aa9b498342381","fixed":"0c162c18a774ab36c090088d2b27ed9ddb095fa4","status":"affected"},{"type":"git","introduced":"dd66df0053ef84add5e684df517aa9b498342381","fixed":"71975d6e0db17646102488cf54480fda9de0f7a7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/437541c22e9679d2cddb2028e03122d1d0851039","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc4fb91ec42f1bb371f17784ac5a928c73f4f739","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8b03dcc96978da9480c908b5a2fd92e697531e33","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c162c18a774ab36c090088d2b27ed9ddb095fa4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71975d6e0db17646102488cf54480fda9de0f7a7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99904","url":"https://www.cve.org/CVERecord?id=CVE-2026-99904","licence":"CVE Terms of Use","modified":"2026-12-01T05:44:17.011Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99904","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99904","licence":"Public domain","modified":"2026-12-01T06:17:57.410Z"}],"updatedAt":"2026-12-01T06:32:20.906Z","epss":{"score":0.0053,"percentile":0.46284,"date":"2026-12-01T12:00:22.000Z"}}