Local sandbox escape via missing credential-transfer hook
Published Aug 17, 2024 · Updated Aug 5, 2026
Sandbox escape in the Landlock LSM in affected Linux kernels allows local users to remove Landlock restrictions using keyctl(). The Landlock credential code implements cred_prepare but omits cred_transfer, so KEYCTL_SESSION_TO_PARENT replaces credentials without copying the process security blob and loses every applied rule. Exploitation requires code execution with fork() and keyctl() access inside a Landlock sandbox; it bypasses that sandbox but does not compromise the kernel or system services.
Summary
What happened
Sandbox escape in the Landlock LSM in affected Linux kernels allows local users to remove Landlock restrictions using keyctl(). The Landlock credential code implements cred_prepare but omits cred_transfer, so KEYCTL_SESSION_TO_PARENT replaces credentials without copying the process security blob and loses every applied rule. Exploitation requires code execution with fork() and keyctl() access inside a Landlock sandbox; it bypasses that sandbox but does not compromise the kernel or system services.
The record
- CVE
- CVE-2024-42318
- Published
- Aug 17, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- Unavailable
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- Aug 17, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=385975dca53eb41031d0cbd1de318eb1bc5d6bb9 <0d74fd54db0bd0c0c224bef0da8fc95ea9c9f36c
- Affected versionversion=385975dca53eb41031d0cbd1de318eb1bc5d6bb9 <16896914bace82d7811c62f3b6d5320132384f49
- Affected versionversion=385975dca53eb41031d0cbd1de318eb1bc5d6bb9 <39705a6c29f8a2b93cf5b99528a55366c50014d1
- Affected versionversion=385975dca53eb41031d0cbd1de318eb1bc5d6bb9 <916c648323fa53b89eedb34a0988ddaf01406117
- Affected versionversion=385975dca53eb41031d0cbd1de318eb1bc5d6bb9 <b14cc2cf313bd29056fadbc8ecd7f957cf5791ff
- Affected versionversion=5.13
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
No sourced classifications are available.
Public exploit references
- Project Zero Landlock Houdini proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo