Menu

Star on GitHub · 3.2k

CVE-2024-42096

5.5 · MEDIUM

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…

Published Jul 29, 2024CWE-908EPSS 0.24%

Overview

CVE-2024-42096 is a medium-severity vulnerability. 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, 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-42096?

CVE-2024-42096 is a medium-severity vulnerability. 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, 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-42096?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-42096 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 MEDIUM CVEs from 2024

View all