CVE-2024-42318: landlock: Don't lose track of restrictions on cred_transfer
Vulnerability summary
CVE-2024-42318 is a high (CVSS 8.8) vulnerability in linux. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 22.6% of scored vulnerabilities.
Not severe (CVSS 8.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 21 · Related 18Timeline
- 17-08-2024PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: landlock: Don't lose track of restrictions on cred_transfer When a process' cred struct is replaced, this _almost_ always invokes the cred_prepare LSM hook; but in one special case (when KEYCTL_SESSION_TO_PARENT updates the parent's credentials), the cred_transfer LSM hook is used instead. Landlock only implements the cred_prepare hook, not cred_transfer, so KEYCTL_SESSION_TO_PARENT causes all information on Landlock restrictions to be lost. This basically means that a process with the ability to use the fork() and keyctl() syscalls can get rid of all Landlock restrictions on itself. Fix it by adding a cred_transfer hook that does the same thing as the existing cred_prepare hook. (Implemented by having hook_cred_prepare() call hook_cred_transfer() so that the two functions are less likely to accidentally diverge in the future.)
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
23%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.30% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu117 products
- linux< 5.15.0-125.135 | < 6.8.0-50.51
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.15.0-1072.78 | < 6.8.0-1020.22
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 385975dca53eb41031d0cbd1de318eb1bc5d6bb9, < 916c648323fa53b89eedb34a0988ddaf01406117 | ≥ 385975dca53eb41031d0cbd1de318eb1bc5d6bb9, < 0d74fd54db0bd0c0c224bef0da8fc95ea9c9f36c | ≥ 385975dca53eb41031d0cbd1de318eb1bc5d6bb9, < 16896914bace82d7811c62f3b6d5320132384f49 | ≥ 385975dca53eb41031d0cbd1de318eb1bc5d6bb9, < b14cc2cf313bd29056fadbc8ecd7f957cf5791ff | ≥ 385975dca53eb41031d0cbd1de318eb1bc5d6bb9, < 39705a6c29f8a2b93cf5b99528a55366c50014d1 | 5.13
- linux_kernel≥ 5.13, < 5.15.165 | ≥ 5.16, < 6.1.103 | ≥ 6.2, < 6.6.44 | ≥ 6.7, < 6.10.3
Debian1 product
- linux< 6.1.106-1 | < 6.10.3-1
3 vendors · 120 products
References
24 links- www.openwall.com/lists/oss-security/2024/08/17/2Mailing List