xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value
- State
- Published
- Severity
- 7.8 High
- Published
- Nov 19, 2026
- Updated
- Nov 23, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value
xfs_attr_copy_value() takes the value length as a signed int and, for a remote xattr, is handed args->rmtvaluelen. That field is filled from the on-disk __be32 xfs_attr_leaf_name_remote.valuelen in xfs_attr3_leaf_getvalue(), so a crafted length such as 0x80000000 is stored into the signed rmtvaluelen as a negative number.
The "buffer too small" guard in xfs_attr_copy_value() is a signed comparison:
if (args->valuelen < valuelen) return -ERANGE;
A negative valuelen therefore compares as smaller than the caller's buffer size, skips the -ERANGE path, and is then used as a copy length, leading to an out-of-bounds copy of a full remote block into a small getxattr(2) buffer on a mounted crafted image.
Reject a value length that is negative or larger than the maximum xattr size before it is used, so a bogus on-disk length can no longer slip through the value copier.
| Product | Versions |
|---|---|
| Linux Linux | 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before 42db3bdf727398cb0e5020fbfec8fc0afca9deb8 Affected9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975 Affected9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before e32f3a262c5739128506f0dad08471dfee06a3e0 Affected9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before 655cb24f3852b41a9ddbf0d228f483537832b075 Affected9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before 91d0cf6244280e67bdc2787a60a10f635ac064c0 Affected9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before c2cd6b3b480ef2ae9752ed924a2199c8c90569a1 Affected9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before c5c34a0a5a80ecd8fea9fff960907b2924d18cd9 Affected9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 to before 0643549ffecaeb716c0b75590a9b76dfa5eb35b3 Affected |
| Linux Linux | 5.4 Affectedbefore 5.4 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.8 High | Linux |
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/42db3bdf727398cb0e5020fbfec8fc0afca9deb8
- https://git.kernel.org/stable/c/b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975
- https://git.kernel.org/stable/c/e32f3a262c5739128506f0dad08471dfee06a3e0
- https://git.kernel.org/stable/c/655cb24f3852b41a9ddbf0d228f483537832b075
- https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0
- https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1
- https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9
- https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.