{"id":"CVE-2026-99690","summary":"ocfs2: cache the mount context for dentry lock callbacks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: cache the mount context for dentry lock callbacks\n\nocfs2_drop_dentry_lock() drops the inode reference before releasing the\nDENTRY lock.  This lets inode eviction release the local inode and open\nlocks before a remote unlink can proceed past the DENTRY lock.\n\nA DLM callback can still arrive before the DENTRY lock has been dropped.\nocfs2_get_dentry_osb() obtains the mount context through dl_inode-\u003ei_sb,\nwhich can access a freed inode when the downconvert thread drops the\nlast inode reference in its post-unlock callback:\n\n  Downconvert thread                     DLM callback thread\n  ------------------                     -------------------\n  ocfs2_process_blocked_lock()\n    ocfs2_dentry_post_unlock()\n      ocfs2_dentry_lock_put()\n        ocfs2_drop_dentry_lock()\n          iput(dl-\u003edl_inode)\n          [inode reclaimed after RCU]\n                                         ocfs2_blocking_ast()\n                                           ocfs2_get_dentry_osb()\n                                             dl-\u003edl_inode-\u003ei_sb\n          ocfs2_simple_drop_lockres()\n\nStore the mount context in the DENTRY lock resource's l_priv field and use\nthe default mount-context lookup.  Recover the containing dentry lock with\ncontainer_of(), as already done for refcount locks, and remove\nocfs2_get_dentry_osb().  ocfs2_dismount_volume() shuts down the DLM before\nfreeing the mount context, so callbacks can use it without accessing the\ninode.  Preserve the existing iput-before-unlock order to avoid delaying\nlocal inode and open lock release until after the DENTRY lock is released.","modified":"2026-11-20T07:01:03.402225812Z","published":"2026-11-20T05:50:34.973Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99690.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b4696e0bfc358619adaeab25ad35b4979af8331"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85bc2a3b1bece826c908a31c34a4865a80136bee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a392e0231b9d823f2e62e21fef68ad6145119dca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee8997a4521964631d6cc0e511a186f69ce84dbd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99690.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99690"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8ed6b23709b346f7bfc1edab47003a205a6a9f69"},{"fixed":"a392e0231b9d823f2e62e21fef68ad6145119dca"},{"fixed":"ee8997a4521964631d6cc0e511a186f69ce84dbd"},{"fixed":"85bc2a3b1bece826c908a31c34a4865a80136bee"},{"fixed":"5b4696e0bfc358619adaeab25ad35b4979af8331"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fc597a301fb2947af29ce67c12a419c39f044975"}]}],"versions":["v3.12.74","v3.12.73","v3.12.72","v3.12.71","v3.12.70","v3.12.69","v3.12.68","v3.12.67","v3.12.66","v3.12.65","v3.12.64","v3.12.63","v3.12.62","v3.12.61","v3.12.60","v3.12.59","v3.12.58","v3.12.57","v3.12.56","v3.12.55","v3.12.54","v3.12.53","v3.12.52","v3.12.51","v3.12.50","v3.12.49","v3.12.48","v3.12.47","v3.12.46","v3.12.45","v3.12.44","v3.12.43","v3.12.42","v3.12.41","v3.12.40","v3.12.39","v3.12.38","v3.12.37","v3.12.36","v3.12.35","v3.12.34","v3.12.33","v3.12.32","v3.12.31","v3.12.30","v3.12.29","v3.12.28","v3.12.27","v3.12.26","v3.12.25","v3.12.24"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99690.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.12.24"},{"fixed":"3.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.15.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99690.json"}}],"schema_version":"1.9.2"}