CVE-2026-138890
ocfs2: free replay slots in ocfs2_recovery_exit()
Check your servers for CVE-2026-138890
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-138890 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:
ocfs2: free replay slots in ocfs2_recovery_exit()
Commit ce2fcf1516d6 ("ocfs2: fix memory leak in ocfs2_mount_volume()") added ocfs2_free_replay_slots() calls to the mount error paths out_dismount and out_check_volume to fix a leak of osb->replay_map. However these calls are unlocked while the bail path of the recovery thread, which is woken up by out_dismount right before the call, also frees the replay slots under osb->recovery_lock. Both sides can thus observe a non-NULL osb->replay_map and trigger a double free.
Fix this by moving ocfs2_free_replay_slots() into ocfs2_recovery_exit() after ocfs2_recovery_disable(), which waits for a running recovery thread to exit under osb->recovery_lock, and drop the unlocked call sites. Both ocfs2_dismount_volume() and the out_super path of ocfs2_fill_super() call ocfs2_recovery_exit(), so the replay slots are freed on every path. Since super.c no longer references it, make ocfs2_free_replay_slots() static again.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2b7e59ed2e77136e9360274f8f0fc208a003e95c, before 153361baf48f9b9a15592cee490d4cad1519158c affected from 8059e200259e9c483d715fc2df6340c227c3e196, before 565b4f2f115e375ad94815284ed7904f030badef affected from 50ab0ca3aff4da26037113d69f5a756d8c1a92cd, before f621e88163ff80ef8bbf54949a08afa771f0edd4 affected from ce2fcf1516d674a174d9b34d1e1024d64de9fba3, before bd5ad94a4e0e80afc3d794c8a945ef7116656885 affected from ce2fcf1516d674a174d9b34d1e1024d64de9fba3, before 7edfee4c087cb1e10a52572ac2d402060661c174 affected from ce2fcf1516d674a174d9b34d1e1024d64de9fba3, before 407e148354ac954f70a1b54077b4a6ea0f669dbe affected from ce2fcf1516d674a174d9b34d1e1024d64de9fba3, before 13c2a268eac34b044847cc3da9c1f85204a3deda affected from ce2fcf1516d674a174d9b34d1e1024d64de9fba3, before 1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0 affected 7ef516888c4d30ae41bfcd79e7077d86d92794c5 affected 4efe1d2db731bad19891e2fb9b338724b1f598cc affected from 5.10.163, before 5.10.275 affected from 5.15.107, before 5.15.226 affected from 6.1.2, before 6.1.193 affected from 5.4.229, before 5.5 affected from 6.0.16, before 6.1
Other versions: unaffected
|
| Linux |
affected 6.2 unaffected before 6.2 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 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-138890 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138890
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-138890
trivy image --scanners vuln IMAGE | grep CVE-2026-138890
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/153361baf48f9b9a15592cee490d4cad1519158c git.kernel.org
- https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef git.kernel.org
- https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4 git.kernel.org
- https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885 git.kernel.org
- https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174 git.kernel.org
- https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe git.kernel.org
- https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda git.kernel.org
- https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0 git.kernel.org
Source: the record CVE-2026-138890 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