{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400"
            },
            {
              "fixed": "91d0cf6244280e67bdc2787a60a10f635ac064c0"
            },
            {
              "fixed": "c2cd6b3b480ef2ae9752ed924a2199c8c90569a1"
            },
            {
              "fixed": "c5c34a0a5a80ecd8fea9fff960907b2924d18cd9"
            },
            {
              "fixed": "0643549ffecaeb716c0b75590a9b76dfa5eb35b3"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.4.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99400.json"
  },
  "details": "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-\u003ermtvaluelen.  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-\u003evaluelen \u003c 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.",
  "id": "CVE-2026-99400",
  "modified": "2026-11-19T16:45:39.586390827Z",
  "published": "2026-11-19T14:23:37.667Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99400.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99400"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value"
}