{"api_version":"1","generated_at":"2026-11-22T20:39:56+00:00","cve":"CVE-2026-99690","urls":{"html":"https://cve.report/CVE-2026-99690","api":"https://cve.report/api/cve/CVE-2026-99690.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99690","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99690"},"summary":{"title":"ocfs2: cache the mount context for dentry lock callbacks","description":"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->i_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->dl_inode)\n          [inode reclaimed after RCU]\n                                         ocfs2_blocking_ast()\n                                           ocfs2_get_dentry_osb()\n                                             dl->dl_inode->i_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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:04","updated_at":"2026-11-22 11:17:06"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/85bc2a3b1bece826c908a31c34a4865a80136bee","name":"https://git.kernel.org/stable/c/85bc2a3b1bece826c908a31c34a4865a80136bee","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5b4696e0bfc358619adaeab25ad35b4979af8331","name":"https://git.kernel.org/stable/c/5b4696e0bfc358619adaeab25ad35b4979af8331","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ee8997a4521964631d6cc0e511a186f69ce84dbd","name":"https://git.kernel.org/stable/c/ee8997a4521964631d6cc0e511a186f69ce84dbd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a392e0231b9d823f2e62e21fef68ad6145119dca","name":"https://git.kernel.org/stable/c/a392e0231b9d823f2e62e21fef68ad6145119dca","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99690","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99690","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8ed6b23709b346f7bfc1edab47003a205a6a9f69 a392e0231b9d823f2e62e21fef68ad6145119dca git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8ed6b23709b346f7bfc1edab47003a205a6a9f69 ee8997a4521964631d6cc0e511a186f69ce84dbd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8ed6b23709b346f7bfc1edab47003a205a6a9f69 85bc2a3b1bece826c908a31c34a4865a80136bee git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8ed6b23709b346f7bfc1edab47003a205a6a9f69 5b4696e0bfc358619adaeab25ad35b4979af8331 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fc597a301fb2947af29ce67c12a419c39f044975 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.12.24 3.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99690","cve":"CVE-2026-99690","epss":"0.001680000","percentile":"0.061900000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ocfs2/dcache.h","fs/ocfs2/dlmglue.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a392e0231b9d823f2e62e21fef68ad6145119dca","status":"affected","version":"8ed6b23709b346f7bfc1edab47003a205a6a9f69","versionType":"git"},{"lessThan":"ee8997a4521964631d6cc0e511a186f69ce84dbd","status":"affected","version":"8ed6b23709b346f7bfc1edab47003a205a6a9f69","versionType":"git"},{"lessThan":"85bc2a3b1bece826c908a31c34a4865a80136bee","status":"affected","version":"8ed6b23709b346f7bfc1edab47003a205a6a9f69","versionType":"git"},{"lessThan":"5b4696e0bfc358619adaeab25ad35b4979af8331","status":"affected","version":"8ed6b23709b346f7bfc1edab47003a205a6a9f69","versionType":"git"},{"status":"affected","version":"fc597a301fb2947af29ce67c12a419c39f044975","versionType":"git"},{"lessThan":"3.13","status":"affected","version":"3.12.24","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ocfs2/dcache.h","fs/ocfs2/dlmglue.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.15"},{"lessThan":"3.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"3.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"3.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"3.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"3.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12.24","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->i_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->dl_inode)\n          [inode reclaimed after RCU]\n                                         ocfs2_blocking_ast()\n                                           ocfs2_get_dentry_osb()\n                                             dl->dl_inode->i_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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - ocfs2_get_dentry_osb() reads dl->dl_inode->i_sb from ocfs2_blocking_ast() after this node attached the lock in ocfs2_lookup() via ocfs2_dentry_attach_lock(). A peer ocfs2_unlink() only reaches that callback through an ordinary EX request in ocfs2_remote_dentry_delete(); the inode iput() frees was created by that local lookup.\nAC:L - The attacker repeats a local ocfs2_lookup() and a peer unlink. The EX request makes ocfs2_dentry_convert_worker() return UNBLOCK_STOP_POST so ocfs2_drop_dentry_lock() iput()s the inode; the first BAST runs before that iput. dlm_flush_asts() clears highest_blocked, so dropping a second node's PR holder makes dlm_shuffle_lists() queue a later BAST into ocfs2_blocking_ast() after reclaim and before ocfs2_simple_drop_lockres() returns.\nPR:L - ocfs2_lookup() and ocfs2_unlink() perform no capability check, and ocfs2_dentry_lock() skips the cluster lock only for ocfs2_mount_local() or a hard-readonly volume. A local user who can look up the name and unlink it (directory write) on an already clustered mount reaches both sides of the race.\nUI:N - The attacker issues the ocfs2_lookup() that igrab()s dl_inode in ocfs2_dentry_attach_lock() and the unlink that starts the downconvert. No other user has to open the file or mount the volume.\nS:U - The ocfs2_super derived from the freed inode is the mount on the node that holds the dentry lock, and ocfs2_wake_downconvert_thread() only wakes that node's dc_task. The fault stays in the same kernel security authority.\nC:H - ocfs2_get_dentry_osb() loads i_sb and s_fs_info from the ocfs2_inode_info after ocfs2_drop_dentry_lock()'s iput() has queued it for RCU free through ocfs2_free_inode(). Reclaim of that ocfs2_inode_cachep object lets the callback consume freed memory as a pointer.\nI:H - ocfs2_wake_downconvert_thread() runs on every BAST after that load: it spin_lock_irqsave()s osb->dc_task_lock, increments osb->dc_wake_sequence, and wake_up()s osb->dc_event. Those stores follow i_sb and s_fs_info taken from the freed ocfs2_inode_info.\nA:H - If the reclaimed inode's i_sb is unmapped, poisoned, or not a super_block, the s_fs_info load in OCFS2_SB() faults inside ocfs2_blocking_ast(), before ocfs2_simple_drop_lockres() finishes dropping the DENTRY lock."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:46.635Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/a392e0231b9d823f2e62e21fef68ad6145119dca"},{"url":"https://git.kernel.org/stable/c/ee8997a4521964631d6cc0e511a186f69ce84dbd"},{"url":"https://git.kernel.org/stable/c/85bc2a3b1bece826c908a31c34a4865a80136bee"},{"url":"https://git.kernel.org/stable/c/5b4696e0bfc358619adaeab25ad35b4979af8331"}],"title":"ocfs2: cache the mount context for dentry lock callbacks","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99690","datePublished":"2026-11-20T05:50:34.973Z","dateReserved":"2026-09-25T10:25:14.429Z","dateUpdated":"2026-11-22T11:09:46.635Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:04","lastModifiedDate":"2026-11-22 11:17:06","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99690","Ordinal":"1","Title":"ocfs2: cache the mount context for dentry lock callbacks","CVE":"CVE-2026-99690","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99690","Ordinal":"1","NoteData":"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->i_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->dl_inode)\n          [inode reclaimed after RCU]\n                                         ocfs2_blocking_ast()\n                                           ocfs2_get_dentry_osb()\n                                             dl->dl_inode->i_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.","Type":"Description","Title":"ocfs2: cache the mount context for dentry lock callbacks"}]}}}