{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99399",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.412Z",
        "datePublished": "2026-11-19T14:23:36.794Z",
        "dateUpdated": "2026-11-23T08:02:20.579Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:02:20.579Z"
            },
            "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'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->rmtvaluelen\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": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "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->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.\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'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.\nI: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.\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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/xfs/libxfs/xfs_attr_leaf.c"
                    ],
                    "versions": [
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "cb6dcf2e5a339bf83683186652f7149e0a4c03d9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "e16b8078e804cc190e7f03bdfc0569595b541238",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "1bec5e735e51d840268ed43b3829b3b0b7ff2953",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "a15646a4d5a2c15b9cd809cd531a412501349624",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "56b701b3c272f143bb5f6a346bfbb1fe28ee14b1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "97b85a593188f63e133883525c9159f77e660197",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "1481b4644cd640f0a603d97ced300a1fbd7d3a94",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c84760659dcf237902d4cc997cd5f55cb3b2807f",
                            "lessThan": "15ccd92a782a0253f4a17895f3d3f71e5c1d1973",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/xfs/libxfs/xfs_attr_leaf.c"
                    ],
                    "versions": [
                        {
                            "version": "5.5",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.5",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.61",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.2",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.18.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "7.3.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/cb6dcf2e5a339bf83683186652f7149e0a4c03d9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e16b8078e804cc190e7f03bdfc0569595b541238"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1bec5e735e51d840268ed43b3829b3b0b7ff2953"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a15646a4d5a2c15b9cd809cd531a412501349624"
                },
                {
                    "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"
            }
        }
    }
}