Menu

Star on GitHub · 3.2k

CVE-2021-47131

8.1 · HIGH

In the Linux kernel, the following vulnerability has been resolved: net/tls: Fix use-after-free after the TLS device goes down and up When a netdev with active TLS offload goes down, tls_device_d…

Published Mar 15, 2024CWE-416EPSS 0.75%

Overview

CVE-2021-47131 is a high-severity vulnerability. It was published on March 15, 2024 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

net/tls: Fix use-after-free after the TLS device goes down and up

When a netdev with active TLS offload goes down, tls_device_down is

called to stop the offload and tear down the TLS context. However, the

socket stays alive, and it still points to the TLS context, which is now

deallocated. If a netdev goes up, while the connection is still active,

and the data flow resumes after a number of TCP retransmissions, it will

lead to a use-after-free of the TLS context.

This commit addresses this bug by keeping the context alive until its

normal destruction, and implements the necessary fallbacks, so that the

connection can resume in software (non-offloaded) kTLS mode.

On the TX side tls_sw_fallback is used to encrypt all packets. The RX

side already has all the necessary fallbacks, because receiving

non-decrypted packets is supported. The thing needed on the RX side is

to block resync requests, which are normally produce

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

CVE-2021-47131 is a high-severity vulnerability. It was published on March 15, 2024 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2021-47131?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-47131?

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

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