Vulnerability record
ceph: fix longname buffer overflow in ceph_fname_to_usr()
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…
7.5/CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability
AV:NAC:HPR:NUI:RScope
S:UImpact
C:HI:HA:HRemediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources