CVE-2022-48782
JSON

8.8high

mctp: fix use after free

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 4f9e1ba6de45aa8797a83f1fe5b82ec4bac16899 before 1dd3ecbec5f606b2a526c47925c8634b1a6bb81e, from 4f9e1ba6de45aa8797a83f1fe5b82ec4bac16899 before 7e5b6a5c8c44310784c88c1c198dde79f6402f7b, 5.16
Not affected: before 5.16, from 5.16.11 up to 5.16.*, from 5.17 up to *
CVE List
linux linux_kernelfrom 5.16 before 5.16.11NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (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.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-48782 changed 2026-08-05CVE Terms of Use
NVDCVE-2022-48782 changed 2026-08-04Public domain