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-35871

7.1 · HIGH
Published May 19, 2024 linux EPSS 0.26% (18th pctl)

Overview

CVE-2024-35871 is a high-severity vulnerability affecting linux linux_kernel. It was published on May 19, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, 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:

riscv: process: Fix kernel gp leakage

childregs represents the registers which are active for the new thread

in user context. For a kernel thread, childregs->gp is never used since

the kernel gp is not touched by switch_to. For a user mode helper, the

gp value can be observed in user space after execve or possibly by other

means.

[From the email thread]

The /* Kernel thread */ comment is somewhat inaccurate in that it is also used

for user_mode_helper threads, which exec a user process, e.g. /sbin/init or

when /proc/sys/kernel/core_pattern is a pipe. Such threads do not have

PF_KTHREAD set and are valid targets for ptrace etc. even before they exec.

childregs is the *user* context during syscall execution and it is observable

from userspace in at least five ways:

1. kernel_execve does not currently clear integer registers, so the starting

register state for PID 1 and other user processes started by the kernel

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 >= 4.15, < 5.10.216 Affected

Frequently Asked Questions

What is CVE-2024-35871?

CVE-2024-35871 is a high-severity vulnerability affecting linux linux_kernel. It was published on May 19, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2024-35871?

This vulnerability has a CVSS 3.1 base score of 7.1, 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-35871?

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-35871?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-35871 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.