CVE-2026-99422
ovl: use the pinned upper dir in ovl_fix_origin()
Check your servers for CVE-2026-99422
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99422 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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()]
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.76% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9678e630305724487f1fc101d6b83c383ff9cc90, before 8ae1e7876107fbe7318ac5594b8bf2a887a9c578 affected from 9678e630305724487f1fc101d6b83c383ff9cc90, before 50ae0a83625d08b4be4f047c293cf1149fe7ea98 affected from 9678e630305724487f1fc101d6b83c383ff9cc90, before 17a540e65e567c8e4dd165a3ce5b592842ba5ab5 affected from 9678e630305724487f1fc101d6b83c383ff9cc90, before b219cdaea16b2f3e8e13a63662d462addd8a2cd0 affected from 9678e630305724487f1fc101d6b83c383ff9cc90, before 77c9b481faacf46b9d9282ffaa71afbac7acf819 affected from 9678e630305724487f1fc101d6b83c383ff9cc90, before 4f61ff2ebfb3d2967b83b6a4d456242244d5a61f
Other versions: unaffected
|
| Linux |
affected 4.16 unaffected before 4.16 unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.61 up to and including 6.18.* unaffected from 7.3.2 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99422 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99422
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99422
trivy image --scanners vuln IMAGE | grep CVE-2026-99422
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/8ae1e7876107fbe7318ac5594b8bf2a887a9c578 git.kernel.org
- https://git.kernel.org/stable/c/50ae0a83625d08b4be4f047c293cf1149fe7ea98 git.kernel.org
- https://git.kernel.org/stable/c/17a540e65e567c8e4dd165a3ce5b592842ba5ab5 git.kernel.org
- https://git.kernel.org/stable/c/b219cdaea16b2f3e8e13a63662d462addd8a2cd0 git.kernel.org
- https://git.kernel.org/stable/c/77c9b481faacf46b9d9282ffaa71afbac7acf819 git.kernel.org
- https://git.kernel.org/stable/c/4f61ff2ebfb3d2967b83b6a4d456242244d5a61f git.kernel.org
Source: the record CVE-2026-99422 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse