CVE-2026-99399
published high CVSS 3.1 · 7.8xfs: reject remote xattr entries with an out-of-range value length
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc84760659dcf237902d4cc997cd5f55cb3b2807f to < cb6dcf2e5a339bf83683186652f7149e0a4c03d9 · c84760659dcf237902d4cc997cd5f55cb3b2807f to < e16b8078e804cc190e7f03bdfc0569595b541238 · c84760659dcf237902d4cc997cd5f55cb3b2807f to < 1bec5e735e51d840268ed43b3829b3b0b7ff2953 · c84760659dcf237902d4cc997cd5f55cb3b2807f to < a15646a4d5a2c15b9cd809cd531a412501349624 · c84760659dcf237902d4cc997cd5f55cb3b2807f to < 56b701b3c272f143bb5f6a346bfbb1fe28ee14b1 · c84760659dcf237902d4cc997cd5f55cb3b2807f to < 97b85a593188f63e133883525c9159f77e660197 · c84760659dcf237902d4cc997cd5f55cb3b2807f to < 1481b4644cd640f0a603d97ced300a1fbd7d3a94 · c84760659dcf237902d4cc997cd5f55cb3b2807f to < 15ccd92a782a0253f4a17895f3d3f71e5c1d1973 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.5 (affected) · 0 to < 5.5 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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->rmtvaluelen, 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. PR: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. UI: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. S: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. C:H - xfs_attr_rmtval_copyout() memcpy's 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. I:H - The destination is smaller than one remote block: 24 bytes in get_vfs_caps_from_disk(), or the exact user size kvzalloc'd by do_getxattr(). The controlled memcpy past that object can overwrite a return address or heap metadata and hijack kernel control flow. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c84760659dcf237902d4cc997cd5f55cb3b2807f to < cb6dcf2e5a339bf83683186652f7149e0a4c03d9 (affected · git)c84760659dcf237902d4cc997cd5f55cb3b2807f to < e16b8078e804cc190e7f03bdfc0569595b541238 (affected · git)c84760659dcf237902d4cc997cd5f55cb3b2807f to < 1bec5e735e51d840268ed43b3829b3b0b7ff2953 (affected · git)c84760659dcf237902d4cc997cd5f55cb3b2807f to < a15646a4d5a2c15b9cd809cd531a412501349624 (affected · git)c84760659dcf237902d4cc997cd5f55cb3b2807f to < 56b701b3c272f143bb5f6a346bfbb1fe28ee14b1 (affected · git)c84760659dcf237902d4cc997cd5f55cb3b2807f to < 97b85a593188f63e133883525c9159f77e660197 (affected · git)c84760659dcf237902d4cc997cd5f55cb3b2807f to < 1481b4644cd640f0a603d97ced300a1fbd7d3a94 (affected · git)c84760659dcf237902d4cc997cd5f55cb3b2807f to < 15ccd92a782a0253f4a17895f3d3f71e5c1d1973 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.5 (affected)0 to < 5.5 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/1481b4644cd640f0a603d97ced300a1fbd7d3a94
- https://git.kernel.org/stable/c/15ccd92a782a0253f4a17895f3d3f71e5c1d1973
- https://git.kernel.org/stable/c/1bec5e735e51d840268ed43b3829b3b0b7ff2953
- https://git.kernel.org/stable/c/56b701b3c272f143bb5f6a346bfbb1fe28ee14b1
- https://git.kernel.org/stable/c/97b85a593188f63e133883525c9159f77e660197
- https://git.kernel.org/stable/c/a15646a4d5a2c15b9cd809cd531a412501349624
- https://git.kernel.org/stable/c/cb6dcf2e5a339bf83683186652f7149e0a4c03d9
- https://git.kernel.org/stable/c/e16b8078e804cc190e7f03bdfc0569595b541238
Provider assertions
1Linux · cna
xfs: reject remote xattr entries with an out-of-range value length
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b849aa49f3bb7ae7298cd89df8c27f5464fa2d8069b6c85857727ba21f204e1c
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record