CVE-2026-138891
ocfs2: exit recovery thread on mount error path
Check your servers for CVE-2026-138891
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-138891 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: exit recovery thread on mount error path
When a mount fails after the cluster connection has been established, e.g. in ocfs2_mount_volume(), ocfs2_fill_super() unwinds via out_debugfs/out_super and frees the osb without disabling recovery.
A node failure event can concurrently launch the recovery thread, which blocks in __ocfs2_wait_on_mount() waiting for the volume state to become VOLUME_MOUNTED or VOLUME_DISABLED. As the mount error path neither sets VOLUME_DISABLED nor wakes osb_mount_event, the thread can never make progress: the kthread leaks and stays blocked on the wait queue embedded in the freed osb, which may then be accessed as freed memory.
Fix it by setting VOLUME_DISABLED and waking osb_mount_event on this path so the thread bails out, and replace the plain kfree(osb->recovery_map) with ocfs2_recovery_exit(), which waits for a running recovery thread to exit before the recovery map is freed.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.39% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 45dabd8fe8a825e325eda57c2243af8c6549babd, before 0d34cbc2fa9b38f569b4dd4ba843153128a52cc8 affected from b613d8dcdff322a28783aea971b005e025553b5a, before ac1aa784ef3e40fa3a5b8afbe41656dcb87e57ea affected from f1e75d128b46e3b066e7b2e7cfca10491109d44d, before cee1ff11dee837a10545ec318a049b7b3f63bfeb affected from f1e75d128b46e3b066e7b2e7cfca10491109d44d, before 302d6df5348ddc144c6316add71cbb00faecd8f4 affected from f1e75d128b46e3b066e7b2e7cfca10491109d44d, before 70d85322ef7ea9151edac53b8d1c9b8d55ebaef4 affected from f1e75d128b46e3b066e7b2e7cfca10491109d44d, before 4db84320615453cf205febbc59a715ace31f9782 affected from f1e75d128b46e3b066e7b2e7cfca10491109d44d, before 0cd83f04e3404be310a3b90b4a992de24c5df7f4 affected from f1e75d128b46e3b066e7b2e7cfca10491109d44d, before 6163a859649e9432e9c79c541f36dbf3bba9172f affected a4d3062f0ac7f458142e87451bc03a0f7b128483 affected from 5.10.163, before 5.10.275 affected from 5.15.107, before 5.15.226 affected from 5.4.229, before 5.5
Other versions: unaffected
|
| Linux |
affected 5.19 unaffected before 5.19 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-138891 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138891
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-138891
trivy image --scanners vuln IMAGE | grep CVE-2026-138891
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/0d34cbc2fa9b38f569b4dd4ba843153128a52cc8 git.kernel.org
- https://git.kernel.org/stable/c/ac1aa784ef3e40fa3a5b8afbe41656dcb87e57ea git.kernel.org
- https://git.kernel.org/stable/c/cee1ff11dee837a10545ec318a049b7b3f63bfeb git.kernel.org
- https://git.kernel.org/stable/c/302d6df5348ddc144c6316add71cbb00faecd8f4 git.kernel.org
- https://git.kernel.org/stable/c/70d85322ef7ea9151edac53b8d1c9b8d55ebaef4 git.kernel.org
- https://git.kernel.org/stable/c/4db84320615453cf205febbc59a715ace31f9782 git.kernel.org
- https://git.kernel.org/stable/c/0cd83f04e3404be310a3b90b4a992de24c5df7f4 git.kernel.org
- https://git.kernel.org/stable/c/6163a859649e9432e9c79c541f36dbf3bba9172f git.kernel.org
Source: the record CVE-2026-138891 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