Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99400

CVE-2026-99400: xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99400: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from the source: 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.

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 42db3bdf727398cb0e5020fbfec8fc0afca9deb8; Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975; Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < e32f3a262c5739128506f0dad08471dfee06a3e0; Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 655cb24f3852b41a9ddbf0d228f483537832b075; Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 91d0cf6244280e67bdc2787a60a10f635ac064c0; Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < c2cd6b3b480ef2ae9752ed924a2199c8c90569a1; Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < c5c34a0a5a80ecd8fea9fff960907b2924d18cd9; Linux Linux >= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 0643549ffecaeb716c0b75590a9b76dfa5eb35b3; Linux Linux 5.4; Linux Linux < 5.4; Linux Linux 5.10.275 (fixed in 5.10.275); Linux Linux 5.15.226 (fixed in 5.15.226)

ProductVersionsFixed in
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 42db3bdf727398cb0e5020fbfec8fc0afca9deb8—
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975—
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < e32f3a262c5739128506f0dad08471dfee06a3e0—
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 655cb24f3852b41a9ddbf0d228f483537832b075—
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 91d0cf6244280e67bdc2787a60a10f635ac064c0—
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < c2cd6b3b480ef2ae9752ed924a2199c8c90569a1—
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < c5c34a0a5a80ecd8fea9fff960907b2924d18cd9—
Linux Linux>= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 0643549ffecaeb716c0b75590a9b76dfa5eb35b3—
Linux Linux5.4—
Linux Linux< 5.4—
Linux Linux5.10.2755.10.275
Linux Linux5.15.2265.15.226
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1176.12.117
Linux Linux6.18.616.18.61
Linux Linux7.3.27.3.2
Linux Linux7.4-rc17.4-rc1

Action recommended by the source

Upgrade to a fixed version: 5.10.275, 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1.

Fixed in: 5.10.275, 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.