{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-31598","published":"2026-04-24T15:16:37.560000Z","last_modified":"2026-11-11T23:10:00.263000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","primary":false},"auth":false,"cwes":["CWE-667","CWE-362"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.6","version_end_excluding":"6.6.136"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.7","version_end_excluding":"6.12.83"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.13","version_end_excluding":"6.18.24"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.19","version_end_excluding":"6.19.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"7.0","version_end_excluding":"7.0.1"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2026-31598/","html_en":"/en/cve/CVE-2026-31598/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31598","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31598"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix possible deadlock between unlink and dio_end_io_write\n\nocfs2_unlink takes orphan dir inode_lock first and then ip_alloc_sem,\nwhile in ocfs2_dio_end_io_write, it acquires these locks in reverse order.\nThis creates an ABBA lock ordering violation on lock classes\nocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE] and\nocfs2_file_ip_alloc_sem_key.\n\nLock Chain #0 (orphan dir inode_lock -> ip_alloc_sem):\nocfs2_unlink\n  ocfs2_prepare_orphan_dir\n    ocfs2_lookup_lock_orphan_dir\n      inode_lock(orphan_dir_inode) <- lock A\n    __ocfs2_prepare_orphan_dir\n      ocfs2_prepare_dir_for_insert\n        ocfs2_extend_dir\n\t  ocfs2_expand_inline_dir\n\t    down_write(&oi->ip_alloc_sem) <- Lock B\n\nLock Chain #1 (ip_alloc_sem -> orphan dir inode_lock):\nocfs2_dio_end_io_write\n  down_write(&oi->ip_alloc_sem) <- Lock B\n  ocfs2_del_inode_from_orphan()\n    inode_lock(orphan_dir_inode) <- Lock A\n\nDeadlock Scenario:\n  CPU0 (unlink)                     CPU1 (dio_end_io_write)\n  ------                            ------\n  inode_lock(orphan_dir_inode)\n                                    down_write(ip_alloc_sem)\n  down_write(ip_alloc_sem)\n                                    inode_lock(orphan_dir_inode)\n\nSince ip_alloc_sem is to protect allocation changes, which is unrelated\nwith operations in ocfs2_del_inode_from_orphan.  So move\nocfs2_del_inode_from_orphan out of ip_alloc_sem to fix the deadlock.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/297d8d7bb6a2bf133d3a3636edbdf94101cbd719","tags":[]},{"url":"https://git.kernel.org/stable/c/2b884d52273c60c298bd570163e8053657bbaff6","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/32630dee18c6bb2175c8a865a474749492eaf19c","tags":[]},{"url":"https://git.kernel.org/stable/c/4b80b5a838a32437f2cae0662578bac216a2c51a","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/93f35419eb84d58820040642cb6e7528fe4aba7a","tags":[]},{"url":"https://git.kernel.org/stable/c/b02da26a992db0c0e2559acbda0fc48d4a2fd337","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/bc0fb5c7d54c78be43a536df0e20dee32adb27d3","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/e049f7a9bd80b7319590789ea5e1c523d6339d91","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/f9fb1a7b635849322e1d7b7b6b26389778ec8e82","tags":["Patch"]}]},"bulletins":[{"source":"suse","id":"SUSE-SU-2026:3602-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20263602-1/","published":"2026-10-02T15:40:54+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}},{"source":"suse","id":"SUSE-SU-2026:3595-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20263595-1/","published":"2026-09-09T12:14:50+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}},{"source":"suse","id":"SUSE-SU-2026:3810-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20263810-1/","published":"2026-08-26T10:47:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}}]}