CVE-2026-80879
ocfs2: fix circular locking dependency in ocfs2_dio_end_io_write
Check your servers for CVE-2026-80879
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-80879 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: fix circular locking dependency in ocfs2_dio_end_io_write
A circular locking dependency involves INODE_ALLOC_SYSTEM_INODE, EXTENT_ALLOC_SYSTEM_INODE, and ORPHAN_DIR_SYSTEM_INODE.
1. ocfs2_mknod() acquires INODE_ALLOC then EXTENT_ALLOC.
2. ocfs2_dio_end_io_write() acquires EXTENT_ALLOC for unwritten extents, then ORPHAN_DIR via ocfs2_del_inode_from_orphan() while still holding EXTENT_ALLOC.
3. ocfs2_wipe_inode() acquires ORPHAN_DIR then INODE_ALLOC via ocfs2_remove_inode.
Break the cycle in ocfs2_dio_end_io_write() by freeing the allocation contexts (releasing EXTENT_ALLOC) before acquiring ORPHAN_DIR.
WARNING: possible circular locking dependency detected ------------------------------------------------------ is trying to acquire lock: ffff8881e78b33a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
but task is already holding lock: ffff8881e78b4fa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299
the existing dependency chain (in reverse order) is:
-> #2 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}: inode_lock include/linux/fs.h:1029 [inline] ocfs2_del_inode_from_orphan+0x12e/0x7a0 fs/ocfs2/namei.c:2728 ocfs2_dio_end_io+0xf9c/0x1370 fs/ocfs2/aops.c:2418 dio_complete+0x25b/0x790 fs/direct-io.c:281
-> #1 (&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}: inode_lock include/linux/fs.h:1029 [inline] ocfs2_reserve_suballoc_bits+0x16d/0x4840 fs/ocfs2/suballoc.c:882 ocfs2_reserve_new_metadata_blocks+0x415/0x9a0 fs/ocfs2/suballoc.c:1078 ocfs2_mknod+0x10f3/0x2260 fs/ocfs2/namei.c:351
-> #0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}: __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 down_write+0x96/0x200 kernel/locking/rwsem.c:1625 inode_lock include/linux/fs.h:1029 [inline] ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline] ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
Chain exists of: &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]
Possible unsafe locking scenario:
CPU0 CPU1 ---- ---- lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]); lock(&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]); lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]); lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);
*** DEADLOCK ***
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.00% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 97c03c0e9f73a5049794b3c69ee60fb5e8b0ebd8, before f0ae0a6ca87dc2d4a789f71cdedb808ba6c16990 affected from 1e99bb19994246514d63e656492904176f9d5edd, before 137e8b4823a9a11928428d4ec0a0cacb2f50a769 affected from 91e05ac2336d00d5b99fc774be4bd50039084796, before 4273548e418bd935430d35e9d052870f323441f3 affected from 886f97fa59d0bbfa9859fb1a66dd9e014b522d89, before 49b34bd3ad69611af03590a23abf2cda9ac1073d affected from ea5bb1d20da756e4f41a48dad42b2e7d6e73f71e, before ff187c502b39389b0d732cb7050a3db8e5ebfcd6 affected from 3c636a3edca9c3f180b3079f94fe7e115730d9c6, before ae1f3460833d3e427420ab260278ec0e45d68c86 affected from d647c5b2fbf81560818dacade360abc8c00a9665, before f3dd1e534e9de64669415f8239e0094afecfed78 affected from d647c5b2fbf81560818dacade360abc8c00a9665, before ff6f26c58421614b02694ac9d219ac61d924bc68 affected 069c3fb310e9336cf48cfdf8748a32c29fd0193d affected from 5.10.258, before 5.10.261 affected from 5.15.209, before 5.15.212 affected from 6.1.175, before 6.1.178 affected from 6.6.140, before 6.6.145 affected from 6.12.86, before 6.12.97 affected from 6.18.27, before 6.18.40 affected from 7.0.4, before 7.1
Other versions: unaffected
|
| Linux |
affected 7.1 unaffected before 7.1 unaffected from 5.10.261 up to and including 5.10.* unaffected from 5.15.212 up to and including 5.15.* unaffected from 6.1.178 up to and including 6.1.* unaffected from 6.6.145 up to and including 6.6.* unaffected from 6.12.97 up to and including 6.12.* unaffected from 6.18.40 up to and including 6.18.* unaffected from 7.1.5 up to and including 7.1.* unaffected 7.2 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-80879 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-80879
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-80879
trivy image --scanners vuln IMAGE | grep CVE-2026-80879
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/f0ae0a6ca87dc2d4a789f71cdedb808ba6c16990 git.kernel.org
- https://git.kernel.org/stable/c/137e8b4823a9a11928428d4ec0a0cacb2f50a769 git.kernel.org
- https://git.kernel.org/stable/c/4273548e418bd935430d35e9d052870f323441f3 git.kernel.org
- https://git.kernel.org/stable/c/49b34bd3ad69611af03590a23abf2cda9ac1073d git.kernel.org
- https://git.kernel.org/stable/c/ff187c502b39389b0d732cb7050a3db8e5ebfcd6 git.kernel.org
- https://git.kernel.org/stable/c/ae1f3460833d3e427420ab260278ec0e45d68c86 git.kernel.org
- https://git.kernel.org/stable/c/f3dd1e534e9de64669415f8239e0094afecfed78 git.kernel.org
- https://git.kernel.org/stable/c/ff6f26c58421614b02694ac9d219ac61d924bc68 git.kernel.org
Source: the record CVE-2026-80879 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