{"id":"CVE-2026-99400","aliases":["CVE-2026-99400"],"related":[],"kind":"vulnerability","state":"published","title":"xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-11-19T14:23:37.667Z","modified":"2026-11-23T08:17:44.237Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"42db3bdf727398cb0e5020fbfec8fc0afca9deb8","status":"affected"},{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975","status":"affected"},{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"e32f3a262c5739128506f0dad08471dfee06a3e0","status":"affected"},{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"655cb24f3852b41a9ddbf0d228f483537832b075","status":"affected"},{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"91d0cf6244280e67bdc2787a60a10f635ac064c0","status":"affected"},{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","status":"affected"},{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","status":"affected"},{"type":"git","introduced":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","fixed":"0643549ffecaeb716c0b75590a9b76dfa5eb35b3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/42db3bdf727398cb0e5020fbfec8fc0afca9deb8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e32f3a262c5739128506f0dad08471dfee06a3e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/655cb24f3852b41a9ddbf0d228f483537832b075","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99400","url":"https://www.cve.org/CVERecord?id=CVE-2026-99400","licence":"CVE Terms of Use","modified":"2026-11-23T08:02:21.700Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99400","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99400","licence":"Public domain","modified":"2026-11-23T08:17:44.237Z"}],"updatedAt":"2026-11-25T22:59:52.056Z","epss":{"score":0.00201,"percentile":0.10547,"date":"2026-12-01T12:00:22.000Z"}}