# CVE-2026-99419: ovl: do not copy up a dentry that was removed

- Severity: not scored yet
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-19T14:40:18.713Z
- Modified: 2026-11-23T08:17:45.407Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ovl: do not copy up a dentry that was removed

A change to a removed file through an open descriptor replaces whatever
has its old name in the upper layer.

Copy up must only create a name in the upper directory, never replace
one. After an unlink, an rmdir or a rename over a lower dentry, a
dentry that an open file keeps alive still has its old parent and name,
but in the upper directory that name is now a whiteout or a new object.
ovl_copy_up_workdir() renames the copy over it, which brings back the
removed object and destroys whatever took its name.

An unprivileged user opened a lower FIFO and unlinked it, root created
a file at that name, and fchmod on the old descriptor replaced the file
of root with the FIFO.

Fix this by looking up the target name of the rename in
ovl_copy_up_workdir() with LOOKUP_EXCL, so that copy up fails with
-EEXIST if the name is taken, as copy up with O_TMPFILE already does
when it links the copy to the name.

[amir: use LOOKUP_EXCL instead of relying on d_unhashed()]

(As written by CVE List.)

## Affected

- Linux Linux: from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before 509166108df0ef63f946f328c0228e80ca6da67e; from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before 7795a4233280a77d0f4905c3313e46e94c9d97a4; from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before a13c8b1cc720e463255eef7026ef90d5156d2ebe; from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before 1f1e53002416b8574a5b168e6f61d02e1685bc07; from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before 383a883cf71525752a3092bba3c22aa1ab04df37; from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before 1d9706fb79a9499f5a0f7d7f755b6bb9b14cc426; from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before 0defa3e443bbdd38628f0b594809c52295836dec; from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c before f635192ad223d2009ee640b63adf5ce3198aa338; 3.18 (not affected: before 3.18; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; 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/509166108df0ef63f946f328c0228e80ca6da67e>
- <https://git.kernel.org/stable/c/7795a4233280a77d0f4905c3313e46e94c9d97a4>
- <https://git.kernel.org/stable/c/a13c8b1cc720e463255eef7026ef90d5156d2ebe>
- <https://git.kernel.org/stable/c/1f1e53002416b8574a5b168e6f61d02e1685bc07>
- <https://git.kernel.org/stable/c/383a883cf71525752a3092bba3c22aa1ab04df37>
- <https://git.kernel.org/stable/c/1d9706fb79a9499f5a0f7d7f755b6bb9b14cc426>
- <https://git.kernel.org/stable/c/0defa3e443bbdd38628f0b594809c52295836dec>
- <https://git.kernel.org/stable/c/f635192ad223d2009ee640b63adf5ce3198aa338>

## Sources

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

---

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