xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.20 % · percentile 11 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
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.
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
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-130059
- GCVE · GCVE-0-2026-99400
CERT-FR advisories
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < 42db3bdf727398cb0e5020fbfec8fc0afca9deb8 affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975 affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < e32f3a262c5739128506f0dad08471dfee06a3e0 affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < 655cb24f3852b41a9ddbf0d228f483537832b075 affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < 91d0cf6244280e67bdc2787a60a10f635ac064c0 affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < c2cd6b3b480ef2ae9752ed924a2199c8c90569a1 affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < c5c34a0a5a80ecd8fea9fff960907b2924d18cd9 affected : ≥ 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 < 0643549ffecaeb716c0b75590a9b76dfa5eb35b3 Other versions : unaffected |
| Linux · Linux | affected : 5.4 unaffected : ≥ 0 < 5.4 unaffected : ≥ 5.10.275 ≤ 5.10.* unaffected : ≥ 5.15.226 ≤ 5.15.* unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.117 ≤ 6.12.* unaffected : ≥ 6.18.61 ≤ 6.18.* unaffected : ≥ 7.3.2 ≤ 7.3.* unaffected : ≥ 7.4-rc1 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |