xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value
CVE-2026-99400Published 19 Nov 2026, 14:23 UTC
Real-world risk
3.0/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.8
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Linux)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Linux kernelUbiquitous | = 5.4 | 7.4-rc1 |
What to do
Update to a fixed version: 7.4-rc1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 11), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.35 × threat 0.852.975
- Rounded to one decimal between 0.1 and 103.0
Exploitation and evidence timeline
- 19 Nov 2026 Published
- 3 Dec 2026 Risk 3.0 (cvss fallback)
Weakness
No weakness type given.
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
- CVE-2026-99400 on CVE.org