{"api_version":"1","generated_at":"2026-11-22T13:25:04+00:00","cve":"CVE-2026-99400","urls":{"html":"https://cve.report/CVE-2026-99400","api":"https://cve.report/api/cve/CVE-2026-99400.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99400","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99400"},"summary":{"title":"xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:17:52","updated_at":"2026-11-22 11:16:50"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","name":"https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","name":"https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0","name":"https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3","name":"https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99400","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99400","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 91d0cf6244280e67bdc2787a60a10f635ac064c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 c2cd6b3b480ef2ae9752ed924a2199c8c90569a1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 c5c34a0a5a80ecd8fea9fff960907b2924d18cd9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 0643549ffecaeb716c0b75590a9b76dfa5eb35b3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/xfs/libxfs/xfs_attr_leaf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"91d0cf6244280e67bdc2787a60a10f635ac064c0","status":"affected","version":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","versionType":"git"},{"lessThan":"c2cd6b3b480ef2ae9752ed924a2199c8c90569a1","status":"affected","version":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","versionType":"git"},{"lessThan":"c5c34a0a5a80ecd8fea9fff960907b2924d18cd9","status":"affected","version":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","versionType":"git"},{"lessThan":"0643549ffecaeb716c0b75590a9b76dfa5eb35b3","status":"affected","version":"9df243a1a9e607e7cf5d20ee46edd5ec84b7e400","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/xfs/libxfs/xfs_attr_leaf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.4"},{"lessThan":"5.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The overflowing length is the on-disk __be32 xfs_attr_leaf_name_remote.valuelen, stored into signed args->rmtvaluelen by xfs_attr3_leaf_getvalue. getxattr(2) only passes the destination buffer size, so the malformed input is the mounted image and the vector is local.\nAC:L - A crafted leaf value such as 0x80000000 is negative as a signed int, so args->valuelen < valuelen in xfs_attr_copy_value is false for any positive getxattr size. xfs_attr_rmtval_copyout then memcpy's one remote block; the attacker builds that image, with no race or hardware fault.\nPR:N - Reading the attr needs no credential: xattr_permission() returns 0 for security.* and only inode MAY_READ for user.*, and xfs_xattr_get checks neither capability. xfs_fs_type has no FS_USERNS_MOUNT, so the CAP_SYS_ADMIN mount is the victim's action.\nUI:R - xfs_attr_copy_value runs only after the image is mounted, from getxattr via do_getxattr, xfs_xattr_get, xfs_attr_node_get and xfs_attr3_leaf_getvalue. Mounting the attacker-supplied image is the required victim action.\nS:U - The out-of-bounds write hits the mounting kernel's heap, the kvzalloc buffer in do_getxattr. The corrupted security authority is that same kernel.\nC:H - xfs_attr_rmtval_copyout memcpy's attacker-chosen remote-block bytes, min of the unsigned rmtvaluelen and xfs_attr3_rmt_buf_space(), into a getxattr buffer that can be a single byte. That heap overflow can disclose kernel memory.\nI:H - The negative rmtvaluelen skips the ERANGE guard in xfs_attr_copy_value, and xfs_attr_rmtval_copyout then writes a full remote block past the kvzalloc'd getxattr buffer. That is an attacker-controlled out-of-bounds write.\nA:H - Smashing heap objects beside do_getxattr's buffer, while xfs_attr_rmtval_get continues because the length converted to unsigned stays far above zero, oopses or panics the kernel."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:08:06.482Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0"},{"url":"https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1"},{"url":"https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9"},{"url":"https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3"}],"title":"xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99400","datePublished":"2026-11-19T14:23:37.667Z","dateReserved":"2026-09-25T10:25:14.412Z","dateUpdated":"2026-11-22T11:08:06.482Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:17:52","lastModifiedDate":"2026-11-22 11:16:50","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99400","Ordinal":"1","Title":"xfs: reject out-of-range attribute value lengths in xfs_attr_cop","CVE":"CVE-2026-99400","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99400","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"xfs: reject out-of-range attribute value lengths in xfs_attr_cop"}]}}}