{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99400",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.412Z",
        "datePublished": "2026-11-19T14:23:37.667Z",
        "dateUpdated": "2026-11-23T08:02:21.700Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:02:21.700Z"
            },
            "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->rmtvaluelen.  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->valuelen < valuelen)\n\t\treturn -ERANGE;\n\nA negative valuelen therefore compares as smaller than the caller's\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": {
                        "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 overflowing length is the on-disk __be32 xfs_attr_leaf_name_remote.valuelen, stored into signed args->rmtvaluelen 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->valuelen < valuelen in xfs_attr_copy_value is false for any positive getxattr size. xfs_attr_rmtval_copyout then memcpy's 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's 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's heap, the kvzalloc buffer in do_getxattr. The corrupted security authority is that same kernel.\nC:H - xfs_attr_rmtval_copyout memcpy's 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'd getxattr buffer. That is an attacker-controlled out-of-bounds write.\nA:H - Smashing heap objects beside do_getxattr's buffer, while xfs_attr_rmtval_get continues because the length converted to unsigned stays far above zero, oopses or panics the kernel."
                        }
                    ]
                }
            ],
            "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": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "42db3bdf727398cb0e5020fbfec8fc0afca9deb8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "e32f3a262c5739128506f0dad08471dfee06a3e0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "655cb24f3852b41a9ddbf0d228f483537832b075",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "91d0cf6244280e67bdc2787a60a10f635ac064c0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "c2cd6b3b480ef2ae9752ed924a2199c8c90569a1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "c5c34a0a5a80ecd8fea9fff960907b2924d18cd9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9df243a1a9e607e7cf5d20ee46edd5ec84b7e400",
                            "lessThan": "0643549ffecaeb716c0b75590a9b76dfa5eb35b3",
                            "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.4",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.4",
                            "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.4",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.18.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "7.3.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/42db3bdf727398cb0e5020fbfec8fc0afca9deb8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b3f78fa60d4be346df7d5dfcbde7a3c05a7a1975"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e32f3a262c5739128506f0dad08471dfee06a3e0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/655cb24f3852b41a9ddbf0d228f483537832b075"
                },
                {
                    "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"
            }
        }
    }
}