ovl: fix a torn path in ovl_get_redirect()
- CVE-2026-99417
- GHSA-gf6p-4r6j-5cjv
- EUVD-2026-130083
Description
In the Linux kernel, the following vulnerability has been resolved: ovl: fix a torn path in ovl_get_redirect() A hard link of a metacopy file that races with a rename of an ancestor stores a redirect to the wrong lower file. Each component of an absolute redirect must be the name that a dentry has in the parent that the walk continues with. ovl_get_redirect() copies the name under d_lock and calls dget_parent() after the unlock, and the callers for a hard link hold no lock that stops a rename across directories. A rename between the two steps combines the old name with the new parent. With delays in ovl_get_redirect(), an unprivileged user hard-linked a metacopy file while renaming its ancestor to another directory, the stored redirect named another lower path, and after a remount the file showed the data of a root-only file. Fix this by taking the parent first and checking it again under d_lock.
Text from the CVE.org record.
Recommendation
Linux
- If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
- If you run a version from 5.4.97 to before 5.5update to 5.5 or laterMinor version change: check the release notes
- If you run a version from 4.19.175 to before 4.20update to 4.20 or laterMinor version change: check the release notes
- If you run a version from 4.14.221 to before 4.15update to 4.15 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 5.10.15 to before 5.10.275 5.10.275 from 5.4.97 to before 5.5 5.5 from 4.19.175 to before 4.20 4.20 from 4.14.221 to before 4.15 4.15 5.11 none stated before 5.11: not affected none stated from 5.10.275 up to 5.10.*: not affected none stated from 5.15.226 up to 5.15.*: not affected none stated and 6 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.