All vulnerabilities

Servers and applications

CVE-2026-139390

ocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim

Severity
Unrated
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6
Sources
CVE Program

Description

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

syzbot detected a circular locking dependency on &osb->nfs_sync_rwlock:

CPU0 CPU1 lock(fs_reclaim); lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]); lock(fs_reclaim); rlock(&osb->nfs_sync_rwlock);

* DEADLOCK *

Chain exists of: &osb->nfs_sync_rwlock --> &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> fs_reclaim

CPU0 is kswapd. The dentry shrinker runs under fs_reclaim and reaches ocfs2_delete_inode() through ->evict_inode():

kswapd balance_pgdat shrink_node shrink_slab super_cache_scan prune_dcache_sb shrink_dentry_list dentry_kill ocfs2_dentry_iput evict ocfs2_evict_inode ocfs2_delete_inode ocfs2_nfs_sync_lock down_read(&osb->nfs_sync_rwlock) //C0: grabbing

CPU1 is a task deleting an inode. It takes nfs_sync_rwlock first, then the orphan dir and inode alloc system inode i_rwsems, and allocates the metadata reservation with GFP_KERNEL while holding them:

evict ocfs2_evict_inode ocfs2_delete_inode

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.3.6
  • From 6.13 before 6.18.65
  • From 6.7 before 6.12.119
  • From 6.2 before 6.6.163
All 7 release lines
  • From 2.6.30 before 5.10.275
  • From 5.11 before 5.15.226
  • From 5.16 before 6.1.193
  • From 6.2 before 6.6.163
  • From 6.7 before 6.12.119
  • From 6.13 before 6.18.65
  • From 6.19 before 7.3.6

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
257,106GitHub, 29 Nov 2026
Forks
66,781GitHub, 29 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-139390