landlock: Fix d_parent walk
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
landlock: Fix d_parent walk
The WARN_ON_ONCE() in collect_domain_accesses() can be triggered when trying to link a root mount point. This cannot work in practice because this directory is mounted, but the VFS check is done after the call to security_path_link().
Do not use source directory's d_parent when the source directory is the mount point.
[mic: Fix commit message]
From the CVE record · Linux
A Landlock d_parent walk can trigger a kernel warning when a root mount point is used as the source of a link attempt. The link cannot succeed because the directory is mounted, but the VFS check happens after the Landlock check. The input does not specify attacker access requirements.
Engineers running the Linux kernel should check their installations; affected versions were not provided.