# CVE-2026-97594: landlock: Fix use-after-free of the source's parent directory

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-09-25T10:22:10.548Z
- **Modified:** 2026-10-30T13:21:08.963Z

## Who should check

- Anyone running Linux \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 0475440ff8c04be26a88733af0c85f597bb28c0a; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 48fc1c74052c956c59d5b16b5e18e0dd36b76aa2; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 4c37992b9668c4f37aae41dd95c369f7b6009915; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 379efd2ce8b26fd35feb13ccc2f671ff105a5052; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< ba29c46ccfe3ebadfb8aa18149186c49f84b14f8; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 2c6dc792538260a8087ac5b22c31b3b8e47c85d6
- Anyone running Linux 5.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

landlock: Fix use-after-free of the source's parent directory

current\_check\_refer\_path() reads old\_dentry-\>d\_parent without holding a
reference nor a lock on it, and then dereferences it in
collect\_domain\_accesses() and in the audit record.

A reference on a child does not pin its parent: \_\_d\_move() reassigns
dentry-\>d\_parent and drops the reference the child held on its former
parent.  hook\_path\_rename() is not affected because the rename path
calls lock\_rename() before the hook, so the source cannot be reparented
under it.  hook\_path\_link() has no such protection: filename\_linkat()
holds a reference on the source dentry but neither locks nor references
its parent, so a concurrent rename(2) can reparent the source while
security\_path\_link() runs, and the former parent can then be removed and
freed while the hook walks it.

A process can trigger this after entering a Landlock domain that handles
at least one filesystem access right.  The process can then race a
linkat(2) loop against rename(2) and rmdir(2):

  BUG: KASAN: slab-use-after-free in collect\_domain\_accesses+0x278/0x290
  Read of size 4 at addr ffff888160bd53f4 by task llrepro2/549
   collect\_domain\_accesses+0x278/0x290
   current\_check\_refer\_path+0x952/0x1120
   security\_path\_link+0x1be/0x320
   filename\_linkat+0x342/0x6d0
   \_\_x64\_sys\_linkat+0xfa/0x150
  Freed by task 562:
   kmem\_cache\_free+0x139/0x4c0
   i\_callback+0x4b/0x80
   rcu\_core+0x7dc/0x10a0

Take a reference on the dentry selected as the source parent, using
dget() for the common-mount-root case and dget\_parent() otherwise.
Release it after the hierarchy walk and synchronous audit logging.

\[mic: Clarify the caller, reachability, and reference handling\]

## Affected and fixed versions

- Linux: \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 0475440ff8c04be26a88733af0c85f597bb28c0a; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 48fc1c74052c956c59d5b16b5e18e0dd36b76aa2; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 4c37992b9668c4f37aae41dd95c369f7b6009915; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 379efd2ce8b26fd35feb13ccc2f671ff105a5052; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< ba29c46ccfe3ebadfb8aa18149186c49f84b14f8; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 2c6dc792538260a8087ac5b22c31b3b8e47c85d6 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 2c6dc792538260a8087ac5b22c31b3b8e47c85d6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97594. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97594.md
Affected: Linux >= b91c3e4ea756b12b7d992529226edce1cfd854d7, < 0475440ff8c04be26a88733af0c85f597bb28c0a; >= b91c3e4ea756b12b7d992529226edce1cfd854d7, < 48fc1c74052c956c59d5b16b5e18e0dd36b76aa2; >= b91c3e4ea756b12b7d992529226edce1cfd854d7, < 4c37992b9668c4f37aae41dd95c369f7b6009915; >= b91c3e4ea756b12b7d99252…
Fixed in: Linux 0475440ff8c04be26a88733af0c85f597bb28c0a, Linux 48fc1c74052c956c59d5b16b5e18e0dd36b76aa2, Linux 4c37992b9668c4f37aae41dd95c369f7b6009915, Linux 379efd2ce8b26fd35feb13ccc2f671ff105a5052, Linux 2c6dc792538260a8087ac5b22c31b3b8e47c85d6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-97594 being exploited?

There is no confirmed exploitation: CVE-2026-97594 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-97594?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-97594?

Linux \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 0475440ff8c04be26a88733af0c85f597bb28c0a; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 48fc1c74052c956c59d5b16b5e18e0dd36b76aa2; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 4c37992b9668c4f37aae41dd95c369f7b6009915; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 379efd2ce8b26fd35feb13ccc2f671ff105a5052; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< ba29c46ccfe3ebadfb8aa18149186c49f84b14f8; \>= b91c3e4ea756b12b7d992529226edce1cfd854d7, \< 2c6dc792538260a8087ac5b22c31b3b8e47c85d6; Linux 5.19.

### Is there a fix for CVE-2026-97594?

Yes. Fixed in Linux 0475440ff8c04be26a88733af0c85f597bb28c0a, Linux 48fc1c74052c956c59d5b16b5e18e0dd36b76aa2, Linux 4c37992b9668c4f37aae41dd95c369f7b6009915, Linux 379efd2ce8b26fd35feb13ccc2f671ff105a5052, Linux 2c6dc792538260a8087ac5b22c31b3b8e47c85d6. Upgrade Linux to 2c6dc792538260a8087ac5b22c31b3b8e47c85d6 or later.

### How do I check if I'm affected by CVE-2026-97594?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0475440ff8c04be26a88733af0c85f597bb28c0a>
- other: <https://git.kernel.org/stable/c/48fc1c74052c956c59d5b16b5e18e0dd36b76aa2>
- other: <https://git.kernel.org/stable/c/4c37992b9668c4f37aae41dd95c369f7b6009915>
- other: <https://git.kernel.org/stable/c/379efd2ce8b26fd35feb13ccc2f671ff105a5052>
- other: <https://git.kernel.org/stable/c/ba29c46ccfe3ebadfb8aa18149186c49f84b14f8>
- other: <https://git.kernel.org/stable/c/2c6dc792538260a8087ac5b22c31b3b8e47c85d6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97594>

HTML: <https://flawdb.com/CVE-2026-97594> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97594>
