Description
In the Linux kernel, the following vulnerability has been resolved: ceph: validate encoded xattr name lengths __build_xattrs() advances over an MDS-provided name length before checking that the name remains in the encoded xattr blob. On 32-bit clients, UINT_MAX wraps the cursor and is stored as a negative internal name length. A later ordinary listxattr() converts it back to a UINT_MAX memcpy size and corrupts kernel memory. Check the name range before advancing and reject name, value, or aggregate sizes that overflow the signed internal accounting. The malformed blob corrupted kernel state in two baseline boots. It was rejected cleanly twice with this change, while normal and length-only controls remained safe.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
References
- git.kernel.org/stable/c/8ece97b24aa11f56c01a3652b54b8cf3724b094d
- git.kernel.org/stable/c/cd81c4e2a491c0652226369ce8109e6af348ff04
- git.kernel.org/stable/c/e2079f1bcad6f19fe690a46a90a1e4246884f767
- git.kernel.org/stable/c/b69c4acf01c46155bf5225a06e6e0a8bcdaeb8c4
- git.kernel.org/stable/c/082e1416aab544c25fbb8e2aee95e332f6e00c43
- git.kernel.org/stable/c/6f8082c1fb88f478826d355ec3cefc6ff09da6e1
- git.kernel.org/stable/c/4348550560ec3af12b234e447210d71b51738b92
- git.kernel.org/stable/c/166375898d29fea050a9abec855da6075050d5c9
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.