Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99422

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

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99422: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from the source: 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()]

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= 9678e630305724487f1fc101d6b83c383ff9cc90, < 8ae1e7876107fbe7318ac5594b8bf2a887a9c578; Linux Linux >= 9678e630305724487f1fc101d6b83c383ff9cc90, < 50ae0a83625d08b4be4f047c293cf1149fe7ea98; Linux Linux >= 9678e630305724487f1fc101d6b83c383ff9cc90, < 17a540e65e567c8e4dd165a3ce5b592842ba5ab5; Linux Linux >= 9678e630305724487f1fc101d6b83c383ff9cc90, < b219cdaea16b2f3e8e13a63662d462addd8a2cd0; Linux Linux >= 9678e630305724487f1fc101d6b83c383ff9cc90, < 77c9b481faacf46b9d9282ffaa71afbac7acf819; Linux Linux >= 9678e630305724487f1fc101d6b83c383ff9cc90, < 4f61ff2ebfb3d2967b83b6a4d456242244d5a61f; Linux Linux 4.16; Linux Linux < 4.16; Linux Linux 6.1.193 (fixed in 6.1.193); Linux Linux 6.6.163 (fixed in 6.6.163); Linux Linux 6.12.117 (fixed in 6.12.117); Linux Linux 6.18.61 (fixed in 6.18.61)

ProductVersionsFixed in
Linux Linux>= 9678e630305724487f1fc101d6b83c383ff9cc90, < 8ae1e7876107fbe7318ac5594b8bf2a887a9c578—
Linux Linux>= 9678e630305724487f1fc101d6b83c383ff9cc90, < 50ae0a83625d08b4be4f047c293cf1149fe7ea98—
Linux Linux>= 9678e630305724487f1fc101d6b83c383ff9cc90, < 17a540e65e567c8e4dd165a3ce5b592842ba5ab5—
Linux Linux>= 9678e630305724487f1fc101d6b83c383ff9cc90, < b219cdaea16b2f3e8e13a63662d462addd8a2cd0—
Linux Linux>= 9678e630305724487f1fc101d6b83c383ff9cc90, < 77c9b481faacf46b9d9282ffaa71afbac7acf819—
Linux Linux>= 9678e630305724487f1fc101d6b83c383ff9cc90, < 4f61ff2ebfb3d2967b83b6a4d456242244d5a61f—
Linux Linux4.16—
Linux Linux< 4.16—
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1176.12.117
Linux Linux6.18.616.18.61
Linux Linux7.3.27.3.2
Linux Linux7.4-rc17.4-rc1

Action recommended by the source

Upgrade to a fixed version: 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1.

Fixed in: 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.