CVE-2026-99422

Source
https://cve.org/CVERecord?id=CVE-2026-99422
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99422.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-99422
Downstream
Published
2026-11-19T14:40:24Z
Modified
2026-11-20T21:02:30Z
Summary
ovl: use the pinned upper dir in ovl_fix_origin()
Details

In the Linux kernel, the following vulnerability has been resolved:

ovl: use the pinned upper dir in ovl_fix_origin()

Renames made directly on the upper filesystem during a lookup crash the kernel.

A dentry that is passed to vfs_setxattr() must be pinned. ovl_fix_origin() passes upper->d_parent to ovl_set_impure() without a reference, and the lookup holds no lock of the upper directory. A rename on the upper filesystem changes d_parent, and only the child pins the new parent, so a second rename and an rmdir free it.

With delays in ovl_fix_origin() and ovl_set_impure(), renaming the upper directory twice and removing the intermediate parent during the lookup of a merge directory without an origin xattr gave a KASAN use-after-free in vfs_setxattr().

Fix this by passing the upper dentry that the overlay parent holds.

[amir: add helper ovl_set_impure_dir()]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99422.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9678e630305724487f1fc101d6b83c383ff9cc90
Fixed
17a540e65e567c8e4dd165a3ce5b592842ba5ab5
Fixed
b219cdaea16b2f3e8e13a63662d462addd8a2cd0
Fixed
77c9b481faacf46b9d9282ffaa71afbac7acf819
Fixed
4f61ff2ebfb3d2967b83b6a4d456242244d5a61f

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99422.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.16.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.61
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99422.json"