Menu

Star on GitHub · 3.2k

CVE-2024-42152

7.5 · HIGH

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…

Published Jul 30, 2024CWE-401EPSS 0.73%

Overview

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

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

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

View all