{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99422",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.413Z",
        "datePublished": "2026-11-19T14:40:24.816Z",
        "dateUpdated": "2026-11-23T08:02:33.650Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:02:33.650Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\novl: use the pinned upper dir in ovl_fix_origin()\n\nRenames made directly on the upper filesystem during a lookup crash the\nkernel.\n\nA dentry that is passed to vfs_setxattr() must be pinned.\novl_fix_origin() passes upper->d_parent to ovl_set_impure() without a\nreference, and the lookup holds no lock of the upper directory. A\nrename on the upper filesystem changes d_parent, and only the child\npins the new parent, so a second rename and an rmdir free it.\n\nWith delays in ovl_fix_origin() and ovl_set_impure(), renaming the upper\ndirectory twice and removing the intermediate parent during the lookup\nof a merge directory without an origin xattr gave a KASAN\nuse-after-free in vfs_setxattr().\n\nFix this by passing the upper dentry that the overlay parent holds.\n\n[amir: add helper ovl_set_impure_dir()]"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - ovl_fix_origin() is called from ovl_lookup() (overlay directory ->lookup, via __lookup_slow() on a path walk) and passes upper->d_parent to ovl_set_impure(). That parent is freed by two rename()s of the upper dentry plus rmdir() of the intermediate directory on the upper filesystem.\nAC:L - The attacker builds a merge directory with no origin xattr, then runs the lookup together with the two upper rename()s and the rmdir(). lookup_one_unlocked() has already dropped the upper directory i_rwsem, and both sides of the race are the attacker's own syscalls.\nPR:L - Search access on the overlay and write access on the upper directory are sufficient. overlayfs sets FS_USERNS_MOUNT, and a userxattr mount in an unprivileged user namespace leaves noxattr false, so ovl_fix_origin() runs on directories that user owns.\nUI:N - The attacker creates the layers, mounts overlay, walks the merge directory into ovl_fix_origin(), and performs the upper rename and rmdir themselves.\nS:U - ovl_set_impure() feeds the freed upper parent to vfs_setxattr() in the kernel that is handling the attacker's lookup and rename, so the corruption is a local kernel privilege escalation.\nC:H - vfs_setxattr() reads dentry->d_inode and the inode's xattr handlers from the upper parent after rmdir has freed that dentry. Reclaiming the dentry-cache object exposes the replacement's kernel pointers to this path.\nI:H - vfs_setxattr() calls inode_lock() and handler->set() on the freed upper parent's d_inode. A reclaimed dentry-cache slot gives that path a kernel write through the corrupted inode.\nA:H - Freeing the unpinned upper parent while ovl_set_impure() is inside vfs_setxattr() is the KASAN use-after-free reported for this bug and oopses on the dead dentry."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/overlayfs/namei.c",
                        "fs/overlayfs/overlayfs.h"
                    ],
                    "versions": [
                        {
                            "version": "9678e630305724487f1fc101d6b83c383ff9cc90",
                            "lessThan": "8ae1e7876107fbe7318ac5594b8bf2a887a9c578",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9678e630305724487f1fc101d6b83c383ff9cc90",
                            "lessThan": "50ae0a83625d08b4be4f047c293cf1149fe7ea98",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9678e630305724487f1fc101d6b83c383ff9cc90",
                            "lessThan": "17a540e65e567c8e4dd165a3ce5b592842ba5ab5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9678e630305724487f1fc101d6b83c383ff9cc90",
                            "lessThan": "b219cdaea16b2f3e8e13a63662d462addd8a2cd0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9678e630305724487f1fc101d6b83c383ff9cc90",
                            "lessThan": "77c9b481faacf46b9d9282ffaa71afbac7acf819",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9678e630305724487f1fc101d6b83c383ff9cc90",
                            "lessThan": "4f61ff2ebfb3d2967b83b6a4d456242244d5a61f",
                            "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/overlayfs/namei.c",
                        "fs/overlayfs/overlayfs.h"
                    ],
                    "versions": [
                        {
                            "version": "4.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.16",
                            "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": "4.16",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.18.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.3.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/8ae1e7876107fbe7318ac5594b8bf2a887a9c578"
                },
                {
                    "url": "https://git.kernel.org/stable/c/50ae0a83625d08b4be4f047c293cf1149fe7ea98"
                },
                {
                    "url": "https://git.kernel.org/stable/c/17a540e65e567c8e4dd165a3ce5b592842ba5ab5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b219cdaea16b2f3e8e13a63662d462addd8a2cd0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/77c9b481faacf46b9d9282ffaa71afbac7acf819"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4f61ff2ebfb3d2967b83b6a4d456242244d5a61f"
                }
            ],
            "title": "ovl: use the pinned upper dir in ovl_fix_origin()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}