CVE-2026-98984
dcache: don't put a mountpoint on a dentry that's being removed
Check your servers for CVE-2026-98984
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98984 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
dcache: don't put a mountpoint on a dentry that's being removed
rmdir(), unlink() and rename() call dont_mount() on the victim and then detach_mounts() with the victim's inode locked. do_lock_mount() takes the inode lock of the mountpoint and checks cant_mount() so a mount can't show up after detach_mounts().
But attach_recursive_mnt() makes a second mountpoint for the root of the source mount so that the mounts already located at the destination can be put on top of it. No inode is locked for that one and d_set_mounted() only refuses a dentry that is unlinked. Between detach_mounts() and d_delete() the victim is still hashed:
rmrace: b passed dont_mount() and detach_mounts(), sleeping T2: move_mount(S, /tmp/plcant/x, BENEATH) = 0 errno 0 () T1: rmdir(/tmp/plcant/d/b) = 0 errno 0 109 107 0:61 /d/b//deleted /tmp/plcant/x rw,relatime - tmpfs tmpfs rw 108 109 0:63 / /tmp/plcant/x rw,relatime - tmpfs T rw
A bind mount of the directory that's being removed is moved beneath an existing mount while the rmdir() is located between the two calls. The mount ends up on the removed directory and nothing will ever detach it.
Check cant_mount() in d_set_mounted() as well. dont_mount() raises the flag under d_lock before detach_mounts() runs so either the mountpoint is set first and detach_mounts() finds the mount or the flag is seen and the mount is refused.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1064f874abc0d05eeed8993815f584d847b72486, before 25e3ce3e2ebdd8ed3fc19dc1f7e3bc487f9240f3 affected from 1064f874abc0d05eeed8993815f584d847b72486, before 982d231ad863bb14f7bda4852ab942c0203cec4b affected from 1064f874abc0d05eeed8993815f584d847b72486, before 96ca40461d8b91e13061ec4afb59bae6f07a516a affected from 1064f874abc0d05eeed8993815f584d847b72486, before 5e6bfd9f249f2c74bb63c0f06ad959da3bee0971 affected from 1064f874abc0d05eeed8993815f584d847b72486, before 793cb67b0f52d00c67bd0e76bc57455b5c70ebb8 affected from 1064f874abc0d05eeed8993815f584d847b72486, before 390ddcea2a8aca411b931a8e2863a80ccca8d2b3 affected from 1064f874abc0d05eeed8993815f584d847b72486, before 30a1625022411a387cce9239408ece9955bc9c58 affected from 1064f874abc0d05eeed8993815f584d847b72486, before 75f4197f1e11d2eb75c2d6f916a7d4764db621e5 affected 5e6ef5ef6eaf690faad3a7c6c665ebf45d7b6ccf affected 839d42687dfce0ed0ea2c6bd8d707cc0e276fbe7 affected 808e83e5add13152bd4a88346487de68395c136b affected 6de9d08a9718ee9c12ba6343c50141c2d633e3dc affected from 4.1.40, before 4.2 affected from 4.4.54, before 4.5 affected from 4.9.15, before 4.10 affected from 4.10.3, before 4.11
Other versions: unaffected
|
| Linux |
affected 4.11 unaffected before 4.11 unaffected from 5.10.273 up to and including 5.10.* unaffected from 5.15.224 up to and including 5.15.* unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.113 up to and including 6.12.* unaffected from 6.18.57 up to and including 6.18.* unaffected from 7.2.11 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98984 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98984
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98984
trivy image --scanners vuln IMAGE | grep CVE-2026-98984
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/25e3ce3e2ebdd8ed3fc19dc1f7e3bc487f9240f3 git.kernel.org
- https://git.kernel.org/stable/c/982d231ad863bb14f7bda4852ab942c0203cec4b git.kernel.org
- https://git.kernel.org/stable/c/96ca40461d8b91e13061ec4afb59bae6f07a516a git.kernel.org
- https://git.kernel.org/stable/c/5e6bfd9f249f2c74bb63c0f06ad959da3bee0971 git.kernel.org
- https://git.kernel.org/stable/c/793cb67b0f52d00c67bd0e76bc57455b5c70ebb8 git.kernel.org
- https://git.kernel.org/stable/c/390ddcea2a8aca411b931a8e2863a80ccca8d2b3 git.kernel.org
- https://git.kernel.org/stable/c/30a1625022411a387cce9239408ece9955bc9c58 git.kernel.org
- https://git.kernel.org/stable/c/75f4197f1e11d2eb75c2d6f916a7d4764db621e5 git.kernel.org
Source: the record CVE-2026-98984 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse