8.8

CVE-2024-42318: landlock: Don't lose track of restrictions on cred_transfer

Modified
AliasesUBUNTU-CVE-2024-42318DEBIAN-CVE-2024-42318
Published 17-08-2024Last modified 05-08-2026

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.

Priority
Routine

Not severe (CVSS 8.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.30%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 21 · Related 18

Timeline

  1. 17-08-2024
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

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
Show all 24 references