{"id":"CVE-2026-99399","aliases":["CVE-2026-99399"],"related":[],"kind":"vulnerability","state":"published","title":"xfs: reject remote xattr entries with an out-of-range value length","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: reject remote xattr entries with an out-of-range value length\n\nxfs_attr3_leaf_verify_entry() validates a remote attribute entry's name\nbut never bounds its on-disk value length (xfs_attr_leaf_name_remote.\nvaluelen, a __be32). A crafted leaf with valuelen = 0x80000000 passes\nthe verifier and the CRC.\n\nThat length is later assigned into the signed int args->rmtvaluelen\n(xfs_attr3_leaf_getvalue), becoming negative, which slips past the signed\n-ERANGE check in xfs_attr_copy_value(); a getxattr() with a small buffer\nthen memcpy()s a full remote block into the small kvalue buffer\n(xfs_attr_rmtval_copyout) -- a heap out-of-bounds write with\nattacker-controlled content, from an unprivileged getxattr(2) on a\nmounted crafted image.\n\nReject remote entries whose value length exceeds XFS_XATTR_SIZE_MAX in\nthe leaf verifier, so the malicious block is rejected at read time.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: reject remote xattr entries with an out-of-range value length\n\nxfs_attr3_leaf_verify_entry() validates a remote attribute entry's name\nbut never bounds its on-disk value length (xfs_attr_leaf_name_remote.\nvaluelen, a __be32). A crafted leaf with valuelen = 0x80000000 passes\nthe verifier and the CRC.\n\nThat length is later assigned into the signed int args->rmtvaluelen\n(xfs_attr3_leaf_getvalue), becoming negative, which slips past the signed\n-ERANGE check in xfs_attr_copy_value(); a getxattr() with a small buffer\nthen memcpy()s a full remote block into the small kvalue buffer\n(xfs_attr_rmtval_copyout) -- a heap out-of-bounds write with\nattacker-controlled content, from an unprivileged getxattr(2) on a\nmounted crafted image.\n\nReject remote entries whose value length exceeds XFS_XATTR_SIZE_MAX in\nthe leaf verifier, so the malicious block is rejected at read time.","source":"cvelist"}],"published":"2026-11-19T14:23:36.794Z","modified":"2026-11-23T08:17:44.090Z","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":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"cb6dcf2e5a339bf83683186652f7149e0a4c03d9","status":"affected"},{"type":"git","introduced":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"e16b8078e804cc190e7f03bdfc0569595b541238","status":"affected"},{"type":"git","introduced":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"1bec5e735e51d840268ed43b3829b3b0b7ff2953","status":"affected"},{"type":"git","introduced":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"a15646a4d5a2c15b9cd809cd531a412501349624","status":"affected"},{"type":"git","introduced":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"56b701b3c272f143bb5f6a346bfbb1fe28ee14b1","status":"affected"},{"type":"git","introduced":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"97b85a593188f63e133883525c9159f77e660197","status":"affected"},{"type":"git","introduced":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"1481b4644cd640f0a603d97ced300a1fbd7d3a94","status":"affected"},{"type":"git","introduced":"c84760659dcf237902d4cc997cd5f55cb3b2807f","fixed":"15ccd92a782a0253f4a17895f3d3f71e5c1d1973","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","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/cb6dcf2e5a339bf83683186652f7149e0a4c03d9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e16b8078e804cc190e7f03bdfc0569595b541238","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1bec5e735e51d840268ed43b3829b3b0b7ff2953","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a15646a4d5a2c15b9cd809cd531a412501349624","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/56b701b3c272f143bb5f6a346bfbb1fe28ee14b1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/97b85a593188f63e133883525c9159f77e660197","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1481b4644cd640f0a603d97ced300a1fbd7d3a94","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/15ccd92a782a0253f4a17895f3d3f71e5c1d1973","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99399","url":"https://www.cve.org/CVERecord?id=CVE-2026-99399","licence":"CVE Terms of Use","modified":"2026-11-23T08:02:20.579Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99399","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99399","licence":"Public domain","modified":"2026-11-23T08:17:44.090Z"}],"updatedAt":"2026-11-25T22:59:52.056Z","epss":{"score":0.0021,"percentile":0.11833,"date":"2026-12-01T12:00:22.000Z"}}