{"id":"CVE-2026-99400","published":"2026-11-19T14:23:37Z","modified":"2026-11-23T08:02:21Z","title":"xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00201,"percentile":0.09807,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/42db3bdf727398cb0e5020fbfec8fc0afca9deb8","tags":[]},{"url":"https://git.kernel.org/stable/c/b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975","tags":[]},{"url":"https://git.kernel.org/stable/c/e32f3a262c5739128506f0dad08471dfee06a3e0","tags":[]},{"url":"https://git.kernel.org/stable/c/655cb24f3852b41a9ddbf0d228f483537832b075","tags":[]},{"url":"https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0","tags":[]},{"url":"https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","tags":[]},{"url":"https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","tags":[]},{"url":"https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3","tags":[]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":1.96},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 42db3bdf727398cb0e5020fbfec8fc0afca9deb8",">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975",">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < e32f3a262c5739128506f0dad08471dfee06a3e0",">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 655cb24f3852b41a9ddbf0d228f483537832b075",">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 91d0cf6244280e67bdc2787a60a10f635ac064c0",">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < c2cd6b3b480ef2ae9752ed924a2199c8c90569a1",">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < c5c34a0a5a80ecd8fea9fff960907b2924d18cd9",">= 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400, < 0643549ffecaeb716c0b75590a9b76dfa5eb35b3"]},{"vendor":"Linux","product":"Linux","versions":["5.4"]}],"euvd":{"id":"EUVD-2026-130059","exploited":false,"provenance":"source"}}