Menu

Star on GitHub · 3.2k

CVE-2021-4440

8.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: x86/xen: Drop USERGS_SYSRET64 paravirt call commit afd30525a659ac0ae0904f0cb4a2ca75522c3123 upstream.

Published Jun 25, 2024CWE-400EPSS 0.22%

Overview

CVE-2021-4440 is a high-severity vulnerability. It was published on June 25, 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:

x86/xen: Drop USERGS_SYSRET64 paravirt call

commit afd30525a659ac0ae0904f0cb4a2ca75522c3123 upstream.

USERGS_SYSRET64 is used to return from a syscall via SYSRET, but

a Xen PV guest will nevertheless use the IRET hypercall, as there

is no sysret PV hypercall defined.

So instead of testing all the prerequisites for doing a sysret and

then mangling the stack for Xen PV again for doing an iret just use

the iret exit from the beginning.

This can easily be done via an ALTERNATIVE like it is done for the

sysenter compat case already.

It should be noted that this drops the optimization in Xen for not

restoring a few registers when returning to user mode, but it seems

as if the saved instructions in the kernel more than compensate for

this drop (a kernel build in a Xen PV guest was slightly faster with

this patch applied).

While at it remove the stale sysret32 remnants.

[ pawan: Brad Spengler and Salvatore Bonaccorso

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-2021-4440?

CVE-2021-4440 is a high-severity vulnerability. It was published on June 25, 2024 and has a CVSS 3.1 base score of 8.8 (HIGH).

How severe is CVE-2021-4440?

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-2021-4440?

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-2021-4440?

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

View all