{"schema":"threatline.record/2","record":{"id":"CVE-2026-97594","aliases":[],"summary":"landlock: Fix use-after-free of the source's parent directory","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nlandlock: Fix use-after-free of the source's parent directory\n\ncurrent_check_refer_path() reads old_dentry->d_parent without holding a\nreference nor a lock on it, and then dereferences it in\ncollect_domain_accesses() and in the audit record.\n\nA reference on a child does not pin its parent: __d_move() reassigns\ndentry->d_parent and drops the reference the child held on its former\nparent.  hook_path_rename() is not affected because the rename path\ncalls lock_rename() before the hook, so the source cannot be reparented\nunder it.  hook_path_link() has no such protection: filename_linkat()\nholds a reference on the source dentry but neither locks nor references\nits parent, so a concurrent rename(2) can reparent the source while\nsecurity_path_link() runs, and the former parent can then be removed and\nfreed while the hook walks it.\n\nA process can trigger this after entering a Landlock domain that handles\nat least one filesystem access right.  The process can then race a\nlinkat(2) loop against rename(2) and rmdir(2):\n\n  BUG: KASAN: slab-use-after-free in collect_domain_accesses+0x278/0x290\n  Read of size 4 at addr ffff888160bd53f4 by task llrepro2/549\n   collect_domain_accesses+0x278/0x290\n   current_check_refer_path+0x952/0x1120\n   security_path_link+0x1be/0x320\n   filename_linkat+0x342/0x6d0\n   __x64_sys_linkat+0xfa/0x150\n  Freed by task 562:\n   kmem_cache_free+0x139/0x4c0\n   i_callback+0x4b/0x80\n   rcu_core+0x7dc/0x10a0\n\nTake a reference on the dentry selected as the source parent, using\ndget() for the common-mount-root case and dget_parent() otherwise.\nRelease it after the hierarchy walk and synchronous audit logging.\n\n[mic: Clarify the caller, reachability, and reference handling]","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97594","source_modified_at":"2026-10-21T12:53:22.513Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"b91c3e4ea756b12b7d992529226edce1cfd854d7","lessThan":"48fc1c74052c956c59d5b16b5e18e0dd36b76aa2","status":"affected","versionType":"git"},{"version":"b91c3e4ea756b12b7d992529226edce1cfd854d7","lessThan":"4c37992b9668c4f37aae41dd95c369f7b6009915","status":"affected","versionType":"git"},{"version":"b91c3e4ea756b12b7d992529226edce1cfd854d7","lessThan":"379efd2ce8b26fd35feb13ccc2f671ff105a5052","status":"affected","versionType":"git"},{"version":"b91c3e4ea756b12b7d992529226edce1cfd854d7","lessThan":"ba29c46ccfe3ebadfb8aa18149186c49f84b14f8","status":"affected","versionType":"git"},{"version":"b91c3e4ea756b12b7d992529226edce1cfd854d7","lessThan":"2c6dc792538260a8087ac5b22c31b3b8e47c85d6","status":"affected","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97594","source_modified_at":"2026-10-21T12:53:22.513Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"5.19","status":"affected"},{"version":"0","lessThan":"5.19","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.53","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.7","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97594","source_modified_at":"2026-10-21T12:53:22.513Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"48fc1c74052c956c59d5b16b5e18e0dd36b76aa2","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97594","source_modified_at":"2026-10-21T12:53:22.513Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"4c37992b9668c4f37aae41dd95c369f7b6009915","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97594","source_modified_at":"2026-10-21T12:53:22.513Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"379efd2ce8b26fd35feb13ccc2f671ff105a5052","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97594","source_modified_at":"2026-10-21T12:53:22.513Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"2c6dc792538260a8087ac5b22c31b3b8e47c85d6","basis":"first unaffected version stated in the CVE record"}],"cvss":7.8,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00159,"percentile":0.04646,"score_date":"2026-10-23"},"published_at":"2026-09-25T10:22:10.548Z","modified_at":"2026-10-21T12:53:22.513Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-97594","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T12:53:22.513Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-97594","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/48fc1c74052c956c59d5b16b5e18e0dd36b76aa2"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/4c37992b9668c4f37aae41dd95c369f7b6009915"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/379efd2ce8b26fd35feb13ccc2f671ff105a5052"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/ba29c46ccfe3ebadfb8aa18149186c49f84b14f8"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/2c6dc792538260a8087ac5b22c31b3b8e47c85d6"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-21T12:53:22.513Z","content_hash":"1c51e300c849605fecc2f4e0f790f088e82c2f72120f52f52693314b97dfcdc0"}}
