Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-42318

8.8 · HIGH
Published Aug 17, 2024 linux EPSS 0.30% (22th pctl)

Overview

CVE-2024-42318 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.13, < 5.15.165 Affected

Frequently Asked Questions

What is CVE-2024-42318?

CVE-2024-42318 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2024-42318 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.