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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 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_kernel | from 5.16 before 5.16.11 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e | mailing-list, patch | |
| https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b | mailing-list, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-48782 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2022-48782 changed 2026-08-04 | Public domain |