CVE-2022-48782

In the Linux kernel, the following vulnerability has been resolved: mctp: fix use after free Clang static analysis reports this problem route.c:425:4: warning: Use of memory after it is freed trace_mctp_key_acquire(key); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ When mctp_key_add() fails, key is freed but then is later used in trace_mctp_key_acquire(). Add an else statement to use the key only when mctp_key_add() is successful.
Configurations

Configuration 1 (hide)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

21 Nov 2024, 07:34

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e - Mailing List, Patch () https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e - Mailing List, Patch
References () https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b - Mailing List, Patch () https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b - Mailing List, Patch

21 Aug 2024, 18:02

Type Values Removed Values Added
CWE CWE-416
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mctp: corregir el use after free El análisis estático de Clang informa este problema route.c:425:4: advertencia: uso de la memoria después de liberarla trace_mctp_key_acquire(key); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Cuando mctp_key_add() falla, la clave se libera pero luego se usa en trace_mctp_key_acquire(). Agregue una declaración else para usar la clave solo cuando mctp_key_add() sea exitoso.
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
References () https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e - () https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e - Mailing List, Patch
References () https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b - () https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b - Mailing List, Patch
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

16 Jul 2024, 12:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-07-16 12:15

Updated : 2024-11-21 07:34


NVD link : CVE-2022-48782

Mitre link : CVE-2022-48782

CVE.ORG link : CVE-2022-48782


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free