Executive Summary

Informations
Name CVE-2024-42152 First vendor Publication 2024-07-30
Vendor Cve Last vendor Modification 2024-11-21

Security-Database Scoring CVSS v3

Cvss vector : CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Overall CVSS Score 4.7
Base Score 4.7 Environmental Score 4.7
impact SubScore 3.6 Temporal Score 4.7
Exploitabality Sub Score 1
 
Attack Vector Local Attack Complexity High
Privileges Required Low User Interaction None
Scope Unchanged Confidentiality Impact None
Integrity Impact None Availability Impact High
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector :
Cvss Base Score N/A Attack Range N/A
Cvss Impact Score N/A Attack Complexity N/A
Cvss Expoit Score N/A Authentication N/A
Calculate full CVSS 2.0 Vectors scores

Detail

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 is final, and move forward based on that.

This issue was observed in an environment with many hosts connecting multiple ctrls simoutanuosly, creating a delay in allocating a ctrl leading up to this race window.

Original Source

Url : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42152

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-401 Failure to Release Memory Before Removing Last Reference ('Memory Leak')

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 8
Os 3636

Sources (Detail)

https://git.kernel.org/stable/c/2f3c22b1d3d7e86712253244797a651998c141fa
https://git.kernel.org/stable/c/5502c1f1d0d7472706cc1f201aecf1c935d302d1
https://git.kernel.org/stable/c/818004f2a380420c19872171be716174d4985e33
https://git.kernel.org/stable/c/940a71f08ef153ef807f751310b0648d1fa5d0da
https://git.kernel.org/stable/c/b4fed1443a6571d49c6ffe7d97af3bbe5ee6dff5
https://git.kernel.org/stable/c/c758b77d4a0a0ed3a1292b3fd7a2aeccd1a169a4
Source Url

Alert History

If you want to see full details history, please login or register.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Date Informations
2025-01-08 03:04:09
  • Multiple Updates
2025-01-07 03:03:42
  • Multiple Updates
2024-12-25 03:02:19
  • Multiple Updates
2024-12-12 03:05:15
  • Multiple Updates
2024-11-25 09:23:17
  • Multiple Updates
2024-11-22 21:22:31
  • Multiple Updates
2024-11-21 21:22:03
  • Multiple Updates
2024-11-20 02:58:52
  • Multiple Updates
2024-11-14 02:59:10
  • Multiple Updates
2024-11-09 02:59:11
  • Multiple Updates
2024-10-26 02:56:35
  • Multiple Updates
2024-10-25 02:58:29
  • Multiple Updates
2024-10-23 02:57:42
  • Multiple Updates
2024-10-03 02:53:01
  • Multiple Updates
2024-10-02 02:51:25
  • Multiple Updates
2024-09-15 02:49:07
  • Multiple Updates
2024-09-12 02:48:39
  • Multiple Updates
2024-09-07 02:47:38
  • Multiple Updates
2024-09-06 02:46:48
  • Multiple Updates
2024-09-04 02:50:00
  • Multiple Updates
2024-08-22 02:47:52
  • Multiple Updates
2024-08-09 21:27:33
  • Multiple Updates
2024-07-30 17:27:23
  • Multiple Updates
2024-07-30 13:27:26
  • First insertion