Menu

Star on GitHub · 3.4k

CVE-2024-42318

8.8 · HIGH

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 invok…

Published Aug 17, 2024EPSS 0.30%

Overview

CVE-2024-42318 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 8.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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.)

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-42318?

CVE-2024-42318 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 8.8 (HIGH).

How severe is CVE-2024-42318?

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-42318?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-42318?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-42318 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all
LiveWatch live →