{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-99690", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-09-25T10:25:14.429Z", "datePublished": "2026-11-20T05:50:34.973Z", "dateUpdated": "2026-11-23T08:06:04.740Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-11-23T08:06:04.740Z" }, "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": { "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" }, "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." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/ocfs2/dcache.h", "fs/ocfs2/dlmglue.c" ], "versions": [ { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "f0a9113dd9bcf06d6d4053ca6debf5ff8b29447b", "status": "affected", "versionType": "git" }, { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "86dd70951750f393b38e11eae558e30ec83c2d06", "status": "affected", "versionType": "git" }, { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "e95883b44156336508eda86e908bfa02634887f1", "status": "affected", "versionType": "git" }, { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "2bb821de615273c256725cc390c748ad5efc5e8b", "status": "affected", "versionType": "git" }, { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "a392e0231b9d823f2e62e21fef68ad6145119dca", "status": "affected", "versionType": "git" }, { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "ee8997a4521964631d6cc0e511a186f69ce84dbd", "status": "affected", "versionType": "git" }, { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "85bc2a3b1bece826c908a31c34a4865a80136bee", "status": "affected", "versionType": "git" }, { "version": "8ed6b23709b346f7bfc1edab47003a205a6a9f69", "lessThan": "5b4696e0bfc358619adaeab25ad35b4979af8331", "status": "affected", "versionType": "git" }, { "version": "fc597a301fb2947af29ce67c12a419c39f044975", "status": "affected", "versionType": "git" }, { "version": "3.12.24", "lessThan": "3.13", "status": "affected", "versionType": "semver" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/ocfs2/dcache.h", "fs/ocfs2/dlmglue.c" ], "versions": [ { "version": "3.15", "status": "affected" }, { "version": "0", "lessThan": "3.15", "status": "unaffected", "versionType": "semver" }, { "version": "5.10.275", "lessThanOrEqual": "5.10.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.15.226", "lessThanOrEqual": "5.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.193", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.163", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.118", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.64", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3.5", "lessThanOrEqual": "7.3.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.4-rc2", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "5.10.275" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "5.15.226" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "6.1.193" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "6.6.163" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "6.12.118" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "6.18.64" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "7.3.5" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.15", "versionEndExcluding": "7.4-rc2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.12.24" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/f0a9113dd9bcf06d6d4053ca6debf5ff8b29447b" }, { "url": "https://git.kernel.org/stable/c/86dd70951750f393b38e11eae558e30ec83c2d06" }, { "url": "https://git.kernel.org/stable/c/e95883b44156336508eda86e908bfa02634887f1" }, { "url": "https://git.kernel.org/stable/c/2bb821de615273c256725cc390c748ad5efc5e8b" }, { "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" } } } }