Menu

Star on GitHub · 3.4k

CVE-2024-35873

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: riscv: Fix vector state restore in rt_sigreturn() The RISC-V Vector specification states in "Appendix D: Calling Convention for…

Published May 19, 2024EPSS 0.20%

Overview

CVE-2024-35873 is a medium-severity vulnerability. It was published on May 19, 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:

riscv: Fix vector state restore in rt_sigreturn()

The RISC-V Vector specification states in "Appendix D: Calling

Convention for Vector State" [1] that "Executing a system call causes

all caller-saved vector registers (v0-v31, vl, vtype) and vstart to

become unspecified.". In the RISC-V kernel this is called "discarding

the vstate".

Returning from a signal handler via the rt_sigreturn() syscall, vector

discard is also performed. However, this is not an issue since the

vector state should be restored from the sigcontext, and therefore not

care about the vector discard.

The "live state" is the actual vector register in the running context,

and the "vstate" is the vector state of the task. A dirty live state,

means that the vstate and live state are not in synch.

When vectorized user_from_copy() was introduced, an bug sneaked in at

the restoration code, related to the discard of the live state.

An example when this g

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

CVE-2024-35873 is a medium-severity vulnerability. It was published on May 19, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-35873?

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

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

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-35873 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
Watch the demo →