CVE-2026-99904: ceph: fix longname buffer overflow in ceph_fname_to_usr()
ceph: fix longname buffer overflow in cephfnametousr()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1Fixed in 7.3.4-1 - Compensating control
In ceph_fname_to_usr(), check whether the reconstructed longname fits within altname_len and fail with -ENAMETOOLONG if it does not.
Event History
Frequently Asked Questions
Is the readdir path affected even when the reconstructed name is within NAME_MAX?
Yes. In the readdir path, the destination points to the altname supplied in the MDS reply and has capacity limited to altname_len. A reconstructed snapshot longname can fit within NAME_MAX but still exceed that destination capacity.
What behavior should be expected after the fix when a reconstructed name does not fit?
The code preserves the original destination length before decryption changes it and rejects an oversized reconstructed name with -ENAMETOOLONG, rather than copying it into the insufficient buffer.