# CVE-2026-99422: ovl: use the pinned upper dir in ovl_fix_origin()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-19T14:40:24.816Z
- Modified: 2026-11-23T08:17:45.663Z
- Assigned by: Linux

## 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()]

(As written by CVE List.)

## Affected

- Linux Linux: from 9678e630305724487f1fc101d6b83c383ff9cc90 before 8ae1e7876107fbe7318ac5594b8bf2a887a9c578; from 9678e630305724487f1fc101d6b83c383ff9cc90 before 50ae0a83625d08b4be4f047c293cf1149fe7ea98; from 9678e630305724487f1fc101d6b83c383ff9cc90 before 17a540e65e567c8e4dd165a3ce5b592842ba5ab5; from 9678e630305724487f1fc101d6b83c383ff9cc90 before b219cdaea16b2f3e8e13a63662d462addd8a2cd0; from 9678e630305724487f1fc101d6b83c383ff9cc90 before 77c9b481faacf46b9d9282ffaa71afbac7acf819; from 9678e630305724487f1fc101d6b83c383ff9cc90 before 4f61ff2ebfb3d2967b83b6a4d456242244d5a61f; 4.16 (not affected: before 4.16; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.61 up to 6.18.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/8ae1e7876107fbe7318ac5594b8bf2a887a9c578>
- <https://git.kernel.org/stable/c/50ae0a83625d08b4be4f047c293cf1149fe7ea98>
- <https://git.kernel.org/stable/c/17a540e65e567c8e4dd165a3ce5b592842ba5ab5>
- <https://git.kernel.org/stable/c/b219cdaea16b2f3e8e13a63662d462addd8a2cd0>
- <https://git.kernel.org/stable/c/77c9b481faacf46b9d9282ffaa71afbac7acf819>
- <https://git.kernel.org/stable/c/4f61ff2ebfb3d2967b83b6a4d456242244d5a61f>

## Sources

- CVE List: [CVE-2026-99422](https://www.cve.org/CVERecord?id=CVE-2026-99422), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99422](https://nvd.nist.gov/vuln/detail/CVE-2026-99422), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99422 · Whole record: https://cve.day/CVE-2026-99422.json · Rebuilt by cve.day 2026-11-25T22:59:52.063Z
