{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c84760659dcf237902d4cc997cd5f55cb3b2807f"
            },
            {
              "fixed": "56b701b3c272f143bb5f6a346bfbb1fe28ee14b1"
            },
            {
              "fixed": "97b85a593188f63e133883525c9159f77e660197"
            },
            {
              "fixed": "1481b4644cd640f0a603d97ced300a1fbd7d3a94"
            },
            {
              "fixed": "15ccd92a782a0253f4a17895f3d3f71e5c1d1973"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.5.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-99399.json"
  },
  "details": "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-\u003ermtvaluelen\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.",
  "id": "CVE-2026-99399",
  "modified": "2026-11-19T16:46:11.679966805Z",
  "published": "2026-11-19T14:23:36.794Z",
  "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/1481b4644cd640f0a603d97ced300a1fbd7d3a94"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/15ccd92a782a0253f4a17895f3d3f71e5c1d1973"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/56b701b3c272f143bb5f6a346bfbb1fe28ee14b1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/97b85a593188f63e133883525c9159f77e660197"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99399.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99399"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "xfs: reject remote xattr entries with an out-of-range value length"
}