{"id":"CVE-2026-99400","aliases":[],"title":"xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: reject out-of-range attribute value lengths in xfs_attr_copy_value\n\nxfs_attr_copy_value() takes the value length as a signed int and, for a\nremote xattr, is handed args->rmtvaluelen.  That field is filled from the\non-disk __be32 xfs_attr_leaf_name_remote.valuelen in\nxfs_attr3_leaf_getvalue(), so a crafted length such as 0x80000000 is\nstored into the signed rmtvaluelen as a negative number.\n\nThe \"buffer too small\" guard in xfs_attr_copy_value() is a signed\ncomparison:\n\n\tif (args->valuelen < valuelen)\n\t\treturn -ERANGE;\n\nA negative valuelen therefore compares as smaller than the caller's\nbuffer size, skips the -ERANGE path, and is then used as a copy length,\nleading to an out-of-bounds copy of a full remote block into a small\ngetxattr(2) buffer on a mounted crafted image.\n\nReject a value length that is negative or larger than the maximum xattr\nsize before it is used, so a bogus on-disk length can no longer slip\nthrough the value copier.","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00201,"percentile":0.10519},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <0643549ffecaeb716c0b75590a9b76dfa5eb35b3","fixed":"0643549ffecaeb716c0b75590a9b76dfa5eb35b3"},{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <42db3bdf727398cb0e5020fbfec8fc0afca9deb8","fixed":"42db3bdf727398cb0e5020fbfec8fc0afca9deb8"},{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <655cb24f3852b41a9ddbf0d228f483537832b075","fixed":"655cb24f3852b41a9ddbf0d228f483537832b075"},{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <91d0cf6244280e67bdc2787a60a10f635ac064c0","fixed":"91d0cf6244280e67bdc2787a60a10f635ac064c0"},{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975","fixed":"b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975"},{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","fixed":"c2cd6b3b480ef2ae9752ed924a2199c8c90569a1"},{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","fixed":"c5c34a0a5a80ecd8fea9fff960907b2924d18cd9"},{"ecosystem":"vendor","name":"Linux","range":">=9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, <e32f3a262c5739128506f0dad08471dfee06a3e0","fixed":"e32f3a262c5739128506f0dad08471dfee06a3e0"}],"references":[{"url":"https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0","type":"other"},{"url":"https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","type":"other"},{"url":"https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","type":"other"},{"url":"https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3","type":"other"},{"url":"https://git.kernel.org/stable/c/42db3bdf727398cb0e5020fbfec8fc0afca9deb8","type":"other"},{"url":"https://git.kernel.org/stable/c/b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975","type":"other"},{"url":"https://git.kernel.org/stable/c/e32f3a262c5739128506f0dad08471dfee06a3e0","type":"other"},{"url":"https://git.kernel.org/stable/c/655cb24f3852b41a9ddbf0d228f483537832b075","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.115Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99400","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:47.960Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:53.140Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99400","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:35.304Z"}],"firstSeenAt":"2026-11-19T15:00:35.304Z","publishedAt":"2026-11-19T14:23:37.667Z","modifiedAt":"2026-11-23T08:17:44.237Z"}