ovl: fix a torn path in ovl_get_redirect()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b9f57bb52124aec87bbe344d70a30806fe22b992, Kernel 4.15, Kernel 4.20 and 8 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e04527fefba6e4e66492f122cf8cc6314f3cf3bf <b9f57bb52124aec87bbe344d70a30806fe22b992, >=4.14.221 <4.15, >=4.19.175 <4.20, >=5.10.15 <5.11, >=5.4.97 <5.5, >=e04527fefba6e4e66492f122cf8cc6314f3cf3bf <0aa08f8f07872b9f67ab20d4c51e0cf6fc924714, >=e04527fefba6e4e66492f122cf8cc6314f3cf3bf <2001cd7ca5560198131e46c6ca3c3472b06145c2, >=e04527fefba6e4e66492f122cf8cc6314f3cf3bf <a8ad9bba205f7c6f3b86fcf0bd2d98adcd750f2e, =2ea09e6753be547c3791d1383440c9a7ecd9d947, =307aa80243fd0e5e3197f89c9e464baedc01d377, =5.11, =ecdd962c4b9bd5bb49df902b2ed25e2a15975cae, =fb8caef7c020267ad30e868a5aeaa5da6ccf0c6e | b9f57bb52124aec87bbe344d70a30806fe22b992, 4.15, 4.20, 5.11, 5.5, 0aa08f8f07872b9f67ab20d4c51e0cf6fc924714, 2001cd7ca5560198131e46c6ca3c3472b06145c2, a8ad9bba205f7c6f3b86fcf0bd2d98adcd750f2e |
| linux-kernel: Kernel | >=4.19.175 <4.20, >=5.10.15 <5.11, >=5.11.0 <6.12.117, >=5.4.97 <5.5, >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=4.14.221 <4.15 | 4.20, 5.11, 6.12.117, 5.5, 6.18.61, 7.3.2, 4.15 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket