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

5.5 · MEDIUM
Published Jul 29, 2024 linux CWE-908 EPSS 0.24% (15th pctl)

Overview

CVE-2024-42096 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 29, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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:

x86: stop playing stack games in profile_pc()

The 'profile_pc()' function is used for timer-based profiling, which

isn't really all that relevant any more to begin with, but it also ends

up making assumptions based on the stack layout that aren't necessarily

valid.

Basically, the code tries to account the time spent in spinlocks to the

caller rather than the spinlock, and while I support that as a concept,

it's not worth the code complexity or the KASAN warnings when no serious

profiling is done using timers anyway these days.

And the code really does depend on stack layout that is only true in the

simplest of cases. We've lost the comment at some point (I think when

the 32-bit and 64-bit code was unified), but it used to say:

Assume the lock function has either no stack frame or a copy

of eflags from PUSHF.

which explains why it just blindly loads a word or two straight off the

stack pointer and then takes a

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 >= 0, < 4.19.317 Affected

Frequently Asked Questions

What is CVE-2024-42096?

CVE-2024-42096 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 29, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-42096?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-42096?

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

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