# CVE-2025-68736: landlock: Fix handling of disconnected directories

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); 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.23% (percentile 8, 2026-11-28)
- **Published:** 2025-12-24T12:09:35.081Z
- **Modified:** 2026-10-16T15:16:52.470Z

## Who should check

- Anyone running Linux \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 4f5cdc82a6c7e22cfd9a92d203cec13a52a3f363; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< fbf718d5afe21057694a0c0223a18b0c7a5960b6; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 426d5b681b2f3339ff04da39b81d71176dc8c87c; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< cadb28f8b3fd6908e3051e86158c65c3a8e1c907; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1
- Anyone running Linux 5.13

## Description

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

landlock: Fix handling of disconnected directories

Disconnected files or directories can appear when they are visible and
opened from a bind mount, but have been renamed or moved from the source
of the bind mount in a way that makes them inaccessible from the mount
point (i.e. out of scope).

Previously, access rights tied to files or directories opened through a
disconnected directory were collected by walking the related hierarchy
down to the root of the filesystem, without taking into account the
mount point because it couldn't be found. This could lead to
inconsistent access results, potential access right widening, and
hard-to-debug renames, especially since such paths cannot be printed.

For a sandboxed task to create a disconnected directory, it needs to
have write access (i.e. FS\_MAKE\_REG, FS\_REMOVE\_FILE, and FS\_REFER) to
the underlying source of the bind mount, and read access to the related
mount point.   Because a sandboxed task cannot acquire more access
rights than those defined by its Landlock domain, this could lead to
inconsistent access rights due to missing permissions that should be
inherited from the mount point hierarchy, while inheriting permissions
from the filesystem hierarchy hidden by this mount point instead.

Landlock now handles files and directories opened from disconnected
directories by taking into account the filesystem hierarchy when the
mount point is not found in the hierarchy walk, and also always taking
into account the mount point from which these disconnected directories
were opened.  This ensures that a rename is not allowed if it would
widen access rights \[1\].

The rationale is that, even if disconnected hierarchies might not be
visible or accessible to a sandboxed task, relying on the collected
access rights from them improves the guarantee that access rights will
not be widened during a rename because of the access right comparison
between the source and the destination (see LANDLOCK\_ACCESS\_FS\_REFER).
It may look like this would grant more access on disconnected files and
directories, but the security policies are always enforced for all the
evaluated hierarchies.  This new behavior should be less surprising to
users and safer from an access control perspective.

Remove a wrong WARN\_ON\_ONCE() canary in collect\_domain\_accesses() and
fix the related comment.

Because opened files have their access rights stored in the related file
security properties, there is no impact for disconnected or unlinked
files.

## Affected and fixed versions

- Linux: \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 4f5cdc82a6c7e22cfd9a92d203cec13a52a3f363; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< fbf718d5afe21057694a0c0223a18b0c7a5960b6; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 426d5b681b2f3339ff04da39b81d71176dc8c87c; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< cadb28f8b3fd6908e3051e86158c65c3a8e1c907; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68736.md
Affected: Linux >= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, < 4f5cdc82a6c7e22cfd9a92d203cec13a52a3f363; >= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, < fbf718d5afe21057694a0c0223a18b0c7a5960b6; >= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, < 426d5b681b2f3339ff04da39b81d71176dc8c87c; >= cb2c7d1a1776057c9a1f48e…
Fixed in: Linux 4f5cdc82a6c7e22cfd9a92d203cec13a52a3f363, Linux 426d5b681b2f3339ff04da39b81d71176dc8c87c, Linux 49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1

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-2025-68736 being exploited?

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

### How serious is CVE-2025-68736?

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

### Which versions are affected by CVE-2025-68736?

Linux \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 4f5cdc82a6c7e22cfd9a92d203cec13a52a3f363; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< fbf718d5afe21057694a0c0223a18b0c7a5960b6; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 426d5b681b2f3339ff04da39b81d71176dc8c87c; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< cadb28f8b3fd6908e3051e86158c65c3a8e1c907; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1; Linux 5.13.

### Is there a fix for CVE-2025-68736?

Yes. Fixed in Linux 4f5cdc82a6c7e22cfd9a92d203cec13a52a3f363, Linux 426d5b681b2f3339ff04da39b81d71176dc8c87c, Linux 49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1. Upgrade Linux to 49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1 or later.

### How do I check if I'm affected by CVE-2025-68736?

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/4f5cdc82a6c7e22cfd9a92d203cec13a52a3f363>
- other: <https://git.kernel.org/stable/c/fbf718d5afe21057694a0c0223a18b0c7a5960b6>
- other: <https://git.kernel.org/stable/c/426d5b681b2f3339ff04da39b81d71176dc8c87c>
- other: <https://git.kernel.org/stable/c/cadb28f8b3fd6908e3051e86158c65c3a8e1c907>
- other: <https://git.kernel.org/stable/c/49c9e09d961025b22e61ef9ad56aa1c21b6ce2f1>

## 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-2025-68736>

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