CVE-2026-99400 (GCVE-0-2026-99400)

Vulnerability from cvelistv5 – Published: 2026-11-19 14:23 – Updated: 2026-11-22 11:08
VLAI
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: xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value xfs_attr_copy_value() takes the value length as a signed int and, for a remote xattr, is handed args->rmtvaluelen. That field is filled from the on-disk __be32 xfs_attr_leaf_name_remote.valuelen in xfs_attr3_leaf_getvalue(), so a crafted length such as 0x80000000 is stored into the signed rmtvaluelen as a negative number. The "buffer too small" guard in xfs_attr_copy_value() is a signed comparison: if (args->valuelen < valuelen) return -ERANGE; A negative valuelen therefore compares as smaller than the caller's buffer size, skips the -ERANGE path, and is then used as a copy length, leading to an out-of-bounds copy of a full remote block into a small getxattr(2) buffer on a mounted crafted image. Reject a value length that is negative or larger than the maximum xattr size before it is used, so a bogus on-disk length can no longer slip through the value copier.
Impacted products
Vendor Product Version
Linux Linux Affected: 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 , < 91d0cf6244280e67bdc2787a60a10f635ac064c0 (git)
Affected: 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 , < c2cd6b3b480ef2ae9752ed924a2199c8c90569a1 (git)
Affected: 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 , < c5c34a0a5a80ecd8fea9fff960907b2924d18cd9 (git)
Affected: 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 , < 0643549ffecaeb716c0b75590a9b76dfa5eb35b3 (git)
Create a notification for this product.
Linux Linux Affected: 5.4
Unaffected: 0 , < 5.4 (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.61 , ≤ 6.18.* (semver)
Unaffected: 7.3.2 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "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-\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\u0027s\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-\u003ermtvaluelen 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-\u003evaluelen \u003c valuelen in xfs_attr_copy_value is false for any positive getxattr size. xfs_attr_rmtval_copyout then memcpy\u0027s 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\u0027s 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\u0027s heap, the kvzalloc buffer in do_getxattr. The corrupted security authority is that same kernel.\nC:H - xfs_attr_rmtval_copyout memcpy\u0027s 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\u0027d getxattr buffer. That is an attacker-controlled out-of-bounds write.\nA:H - Smashing heap objects beside do_getxattr\u0027s 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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99400",
      "date": "2026-11-22",
      "epss": "0.00221",
      "percentile": "0.12706"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-21T01:09:17.000Z",
      "cve": "CVE-2026-99400",
      "id": "msrc_CVE-2026-99400",
      "initial_release_date": "2026-11-21T01:09:17.000Z",
      "product_status:known_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99400.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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-\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\u0027s\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",
        "lastModified": "2026-11-22T11:16:50.517",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-19T15:17:52.497",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/91d0cf6244280e67bdc2787a60a10f635ac064c0"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-22T11:32:58+00:00",
      "cve": "CVE-2026-99400",
      "id": "CVE-2026-99400",
      "initial_release_date": "2026-11-19T14:23:37.667000+00:00",
      "product_status:known_affected": "162",
      "product_status:known_not_affected": "42",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: xfs: out-of-bounds write via crafted attribute length",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99400.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-11-20T17:46:56Z",
      "cve": "CVE-2026-99400",
      "id": "CVE-2026-99400",
      "initial_release_date": "2026-11-20T17:46:56Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99400",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99400.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…