# CVE-2026-99399: xfs: reject remote xattr entries with an out-of-range value length

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-19T14:23:36.794Z
- Modified: 2026-11-23T08:17:44.090Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

xfs: reject remote xattr entries with an out-of-range value length

xfs_attr3_leaf_verify_entry() validates a remote attribute entry's name
but never bounds its on-disk value length (xfs_attr_leaf_name_remote.
valuelen, a __be32). A crafted leaf with valuelen = 0x80000000 passes
the verifier and the CRC.

That length is later assigned into the signed int args->rmtvaluelen
(xfs_attr3_leaf_getvalue), becoming negative, which slips past the signed
-ERANGE check in xfs_attr_copy_value(); a getxattr() with a small buffer
then memcpy()s a full remote block into the small kvalue buffer
(xfs_attr_rmtval_copyout) -- a heap out-of-bounds write with
attacker-controlled content, from an unprivileged getxattr(2) on a
mounted crafted image.

Reject remote entries whose value length exceeds XFS_XATTR_SIZE_MAX in
the leaf verifier, so the malicious block is rejected at read time.

(As written by CVE List.)

## Affected

- Linux Linux: from c84760659dcf237902d4cc997cd5f55cb3b2807f before cb6dcf2e5a339bf83683186652f7149e0a4c03d9; from c84760659dcf237902d4cc997cd5f55cb3b2807f before e16b8078e804cc190e7f03bdfc0569595b541238; from c84760659dcf237902d4cc997cd5f55cb3b2807f before 1bec5e735e51d840268ed43b3829b3b0b7ff2953; from c84760659dcf237902d4cc997cd5f55cb3b2807f before a15646a4d5a2c15b9cd809cd531a412501349624; from c84760659dcf237902d4cc997cd5f55cb3b2807f before 56b701b3c272f143bb5f6a346bfbb1fe28ee14b1; from c84760659dcf237902d4cc997cd5f55cb3b2807f before 97b85a593188f63e133883525c9159f77e660197; from c84760659dcf237902d4cc997cd5f55cb3b2807f before 1481b4644cd640f0a603d97ced300a1fbd7d3a94; from c84760659dcf237902d4cc997cd5f55cb3b2807f before 15ccd92a782a0253f4a17895f3d3f71e5c1d1973; 5.5 (not affected: before 5.5; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.61 up to 6.18.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/cb6dcf2e5a339bf83683186652f7149e0a4c03d9>
- <https://git.kernel.org/stable/c/e16b8078e804cc190e7f03bdfc0569595b541238>
- <https://git.kernel.org/stable/c/1bec5e735e51d840268ed43b3829b3b0b7ff2953>
- <https://git.kernel.org/stable/c/a15646a4d5a2c15b9cd809cd531a412501349624>
- <https://git.kernel.org/stable/c/56b701b3c272f143bb5f6a346bfbb1fe28ee14b1>
- <https://git.kernel.org/stable/c/97b85a593188f63e133883525c9159f77e660197>
- <https://git.kernel.org/stable/c/1481b4644cd640f0a603d97ced300a1fbd7d3a94>
- <https://git.kernel.org/stable/c/15ccd92a782a0253f4a17895f3d3f71e5c1d1973>

## Sources

- CVE List: [CVE-2026-99399](https://www.cve.org/CVERecord?id=CVE-2026-99399), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99399](https://nvd.nist.gov/vuln/detail/CVE-2026-99399), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99399 · Whole record: https://cve.day/CVE-2026-99399.json · Rebuilt by cve.day 2026-11-25T22:59:52.056Z
