{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139390 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139390 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139390 and fix it if it is affected.\n\nWhat it is: CVE-2026-139390 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139390 in the wild and no public exploit code.\n\nAffected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-139390/ (Markdown: https://insights.sbomify.com/CVE-2026-139390/index.md)","id":"CVE-2026-139390","markdown":"https://insights.sbomify.com/CVE-2026-139390/index.md","name":"CVE-2026-139390","record":{"aliases":["BELL-CVE-2026-139390","DEBIAN-CVE-2026-139390","GHSA-78v2-vgfv-pf7c","UBUNTU-CVE-2026-139390"],"analysis":null,"analysis_generated_by":null,"assigner":"Linux","component":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim\n\nsyzbot detected a circular locking dependency on \u0026osb-\u003enfs_sync_rwlock:\n\n       CPU0                    CPU1\n       ----                    ----\n  lock(fs_reclaim);\n                               lock(\u0026ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);\n                               lock(fs_reclaim);\n  rlock(\u0026osb-\u003enfs_sync_rwlock);\n\n *** DEADLOCK ***\n\nChain exists of:\n  \u0026osb-\u003enfs_sync_rwlock --\u003e \u0026ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --\u003e fs_reclaim\n\nCPU0 is kswapd.  The dentry shrinker runs under fs_reclaim and reaches\nocfs2_delete_inode() through -\u003eevict_inode():\n\nkswapd\n balance_pgdat\n  shrink_node\n   shrink_slab\n    super_cache_scan\n     prune_dcache_sb\n      shrink_dentry_list\n       dentry_kill\n        ocfs2_dentry_iput\n         evict\n          ocfs2_evict_inode\n           ocfs2_delete_inode\n            ocfs2_nfs_sync_lock\n             down_read(\u0026osb-\u003enfs_sync_rwlock)      //C0: grabbing\n\nCPU1 is a task deleting an inode.  It takes nfs_sync_rwlock first, then\nthe orphan dir and inode alloc system inode i_rwsems, and allocates the\nmetadata reservation with GFP_KERNEL while holding them:\n\nevict\n ocfs2_evict_inode\n  ocfs2_delete_inode\n  + ocfs2_nfs_sync_lock\n  |  down_read(\u0026osb-\u003enfs_sync_rwlock)              //C1: hold\n  + ocfs2_wipe_inode\n     + inode_lock(orphan_dir_inode)                //C1: hold\n     + ocfs2_truncate_for_delete\n     |  ocfs2_commit_truncate\n     |   ocfs2_remove_btree_range\n     |    ocfs2_reserve_blocks_for_rec_trunc\n     |     ocfs2_reserve_new_metadata_blocks\n     |      kzalloc_obj()                          //C1: grabbing\n     |      // GFP_KERNEL -\u003e might_alloc -\u003e fs_reclaim_acquire\n     + ocfs2_remove_inode\n        inode_lock(inode_alloc_inode)\n\njbd2 pins allocations to GFP_NOFS for the lifetime of a transaction\nhandle, but these reservations are made before ocfs2_start_trans(), so\nfs_reclaim is acquired with ocfs2 locks still held and the cycle closes.\n\nThe same cycle is reachable from ocfs2_get_dentry() and\nocfs2_get_parent(), which hold nfs_sync_rwlock for write across\nocfs2_test_inode_bit() and ocfs2_iget().\n\nThis is more than a lockdep artifact.  A GFP_KERNEL allocation under the\norphan dir i_rwsem enters direct reclaim, which runs the shrinkers, which\ncan evict another ocfs2 inode and re-enter ocfs2_wipe_inode() on the same\ntask; the second inode_lock() on the singleton orphan dir inode then\nself-deadlocks, since i_rwsem is not recursive.\n\nEstablish a GFP_NOFS allocation context for the whole nfs_sync_rwlock\ncritical section so that nothing holding it can recurse into filesystem\nreclaim.  Do it in ocfs2_nfs_sync_lock()/ocfs2_nfs_sync_unlock() rather\nthan at the call sites, so that future callers cannot forget it.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"ocfs2: fix possible deadlock between nfs_sync_rwlock and fs_reclaim","id":"CVE-2026-139390","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":8,"n_vendor_status":0,"next":{"headline":"ocfs2: retain all security xattrs during inode creation","id":"CVE-2026-139391"},"nickname":null,"packages":[],"prev":{"headline":"ocfs2: validate chunk and block counts of the local quota file","id":"CVE-2026-139389"},"products":["Linux"],"published":"2026-11-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-30","vendor_status":[],"vendors":["Linux"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-139390/"}