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

7.5 · HIGH
Published Jul 30, 2024 linux CWE-401 EPSS 0.73% (52th pctl)

Overview

CVE-2024-42152 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 30, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, 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:

nvmet: fix a possible leak when destroy a ctrl during qp establishment

In nvmet_sq_destroy we capture sq->ctrl early and if it is non-NULL we

know that a ctrl was allocated (in the admin connect request handler)

and we need to release pending AERs, clear ctrl->sqs and sq->ctrl

(for nvme-loop primarily), and drop the final reference on the ctrl.

However, a small window is possible where nvmet_sq_destroy starts (as

a result of the client giving up and disconnecting) concurrently with

the nvme admin connect cmd (which may be in an early stage). But *before*

kill_and_confirm of sq->ref (i.e. the admin connect managed to get an sq

live reference). In this case, sq->ctrl was allocated however after it was

captured in a local variable in nvmet_sq_destroy.

This prevented the final reference drop on the ctrl.

Solve this by re-capturing the sq->ctrl after all inflight request has

completed, where for sure sq->ctrl reference

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 >= 4.8, < 5.10.222 Affected

Frequently Asked Questions

What is CVE-2024-42152?

CVE-2024-42152 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 30, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2024-42152?

This vulnerability has a CVSS 3.1 base score of 7.5, 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-2024-42152?

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

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