CVE-2026-99399 (GCVE-0-2026-99399)
Vulnerability from cvelistv5 – Published: 2026-11-19 14:23 – Updated: 2026-11-22 11:08
VLAI
EPSS
VEX
Title
xfs: reject remote xattr entries with an out-of-range value length
Summary
In the Linux kernel, the following vulnerability has been resolved:
xfs: reject remote xattr entries with an out-of-range value length
xfs_attr3_leaf_verify_entry() validates a remote attribute entry's name
but never bounds its on-disk value length (xfs_attr_leaf_name_remote.
valuelen, a __be32). A crafted leaf with valuelen = 0x80000000 passes
the verifier and the CRC.
That length is later assigned into the signed int args->rmtvaluelen
(xfs_attr3_leaf_getvalue), becoming negative, which slips past the signed
-ERANGE check in xfs_attr_copy_value(); a getxattr() with a small buffer
then memcpy()s a full remote block into the small kvalue buffer
(xfs_attr_rmtval_copyout) -- a heap out-of-bounds write with
attacker-controlled content, from an unprivileged getxattr(2) on a
mounted crafted image.
Reject remote entries whose value length exceeds XFS_XATTR_SIZE_MAX in
the leaf verifier, so the malicious block is rejected at read time.
Severity
7.8 (High)
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
c84760659dcf237902d4cc997cd5f55cb3b2807f , < 56b701b3c272f143bb5f6a346bfbb1fe28ee14b1
(git)
Affected: c84760659dcf237902d4cc997cd5f55cb3b2807f , < 97b85a593188f63e133883525c9159f77e660197 (git) Affected: c84760659dcf237902d4cc997cd5f55cb3b2807f , < 1481b4644cd640f0a603d97ced300a1fbd7d3a94 (git) Affected: c84760659dcf237902d4cc997cd5f55cb3b2807f , < 15ccd92a782a0253f4a17895f3d3f71e5c1d1973 (git) |
|
| Linux | Linux |
Affected:
5.5
Unaffected: 0 , < 5.5 (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) |
{
"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": "56b701b3c272f143bb5f6a346bfbb1fe28ee14b1",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "97b85a593188f63e133883525c9159f77e660197",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "1481b4644cd640f0a603d97ced300a1fbd7d3a94",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "15ccd92a782a0253f4a17895f3d3f71e5c1d1973",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"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.5"
},
{
"lessThan": "5.5",
"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.5",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.61",
"versionStartIncluding": "5.5",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3.2",
"versionStartIncluding": "5.5",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.4-rc1",
"versionStartIncluding": "5.5",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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\u0027s 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."
}
],
"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 malformed input is the on-disk __be32 xfs_attr_leaf_name_remote.valuelen. xfs_attr3_leaf_read_verify() accepts the leaf because xfs_attr3_leaf_verify_entry() checks the name and valueblk but, before this fix, not valuelen. do_getxattr() and get_vfs_caps_from_disk() pass only a name and a short buffer.\nAC:L - The attacker sets that valuelen to 0x80000000, points valueblk at a remote block, and gives the block a header xfs_attr3_rmt_hdr_ok() accepts. xfs_attr3_leaf_getvalue() stores the __be32 in signed args-\u003ermtvaluelen, the signed comparison in xfs_attr_copy_value() does not reject it, and xfs_attr_rmtval_copyout() copies one remote payload on every such get.\nPR:N - The attacker needs no host credential. After the victim mounts the image, cap_bprm_creds_from_file() calls get_vfs_caps_from_disk(), and that __vfs_getxattr(XATTR_NAME_CAPS) copies into a 24-byte stack buffer with no capability check. inode_doinit_use_xattr() likewise calls __vfs_getxattr(XATTR_NAME_SELINUX) into a 255-byte buffer during d_instantiate.\nUI:R - The out-of-range valuelen cannot be created by setxattr; it has to be planted in the leaf of a crafted image. mount_capable() requires capable(CAP_SYS_ADMIN) for XFS, so a privileged user must mount that image before xfs_attr_node_get() will read the leaf.\nS:U - The memcpy destination is a kernel buffer in the kernel that mounted the image (vfs_ns_cap_data on the execve stack, or the kvzalloc buffer in do_getxattr), so the corruption and the resulting privilege change stay within that kernel.\nC:H - xfs_attr_rmtval_copyout() memcpy\u0027s xfs_attr3_rmt_buf_space() bytes of image-chosen payload over the short destination. That out-of-bounds write can replace neighboring kernel pointers and is usable as a disclosure primitive.\nI:H - The destination is smaller than one remote block: 24 bytes in get_vfs_caps_from_disk(), or the exact user size kvzalloc\u0027d by do_getxattr(). The controlled memcpy past that object can overwrite a return address or heap metadata and hijack kernel control flow.\nA:H - The overflow corrupts kernel stack or slab memory and panics the system. xfs_attr_rmtval_get() keeps calling xfs_bmapi_read() while the length, converted from the negative rmtvaluelen to unsigned 0x80000000, remains non-zero."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-22T11:08:05.160Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/56b701b3c272f143bb5f6a346bfbb1fe28ee14b1"
},
{
"url": "https://git.kernel.org/stable/c/97b85a593188f63e133883525c9159f77e660197"
},
{
"url": "https://git.kernel.org/stable/c/1481b4644cd640f0a603d97ced300a1fbd7d3a94"
},
{
"url": "https://git.kernel.org/stable/c/15ccd92a782a0253f4a17895f3d3f71e5c1d1973"
}
],
"title": "xfs: reject remote xattr entries with an out-of-range value length",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-99399",
"datePublished": "2026-11-19T14:23:36.794Z",
"dateReserved": "2026-09-25T10:25:14.412Z",
"dateUpdated": "2026-11-22T11:08:05.160Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-99399",
"date": "2026-11-22",
"epss": "0.00224",
"percentile": "0.13163"
},
"microsoft_vex": {
"current_release_date": "2026-11-21T01:08:56.000Z",
"cve": "CVE-2026-99399",
"id": "msrc_CVE-2026-99399",
"initial_release_date": "2026-11-21T01:08:56.000Z",
"product_status:known_affected": "1",
"source": "Microsoft CSAF VEX",
"status": "final",
"title": "xfs: reject remote xattr entries with an out-of-range value length",
"url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99399.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": "cb6dcf2e5a339bf83683186652f7149e0a4c03d9",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "e16b8078e804cc190e7f03bdfc0569595b541238",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "1bec5e735e51d840268ed43b3829b3b0b7ff2953",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "a15646a4d5a2c15b9cd809cd531a412501349624",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "56b701b3c272f143bb5f6a346bfbb1fe28ee14b1",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "97b85a593188f63e133883525c9159f77e660197",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "1481b4644cd640f0a603d97ced300a1fbd7d3a94",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"versionType": "git"
},
{
"lessThan": "15ccd92a782a0253f4a17895f3d3f71e5c1d1973",
"status": "affected",
"version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
"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.5"
},
{
"lessThan": "5.5",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.275",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.226",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.193",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.163",
"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 remote xattr entries with an out-of-range value length\n\nxfs_attr3_leaf_verify_entry() validates a remote attribute entry\u0027s 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",
"lastModified": "2026-11-23T08:17:44.090",
"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.380",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/1481b4644cd640f0a603d97ced300a1fbd7d3a94"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/15ccd92a782a0253f4a17895f3d3f71e5c1d1973"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/1bec5e735e51d840268ed43b3829b3b0b7ff2953"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/56b701b3c272f143bb5f6a346bfbb1fe28ee14b1"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/97b85a593188f63e133883525c9159f77e660197"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/a15646a4d5a2c15b9cd809cd531a412501349624"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/cb6dcf2e5a339bf83683186652f7149e0a4c03d9"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/e16b8078e804cc190e7f03bdfc0569595b541238"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-22T11:32:54+00:00",
"cve": "CVE-2026-99399",
"id": "CVE-2026-99399",
"initial_release_date": "2026-11-19T14:23:36.794000+00:00",
"product_status:known_affected": "162",
"product_status:known_not_affected": "42",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: kernel: Heap buffer overflow via crafted XFS filesystem image",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99399.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2026-11-20T17:46:59Z",
"cve": "CVE-2026-99399",
"id": "CVE-2026-99399",
"initial_release_date": "2026-11-20T17:46:59Z",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2026-99399",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99399.json",
"version": "2"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
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…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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…