CVEvulnerability
CVE-2022-48782
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2024-07-16
- Last modified
- 2026-08-04
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
- 8.8 HIGH — CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-416
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 configurations
• linux linux kernel (>= 5.16 < 5.16.11)
Related
Weakness · CWE (1)
- CWE-416 Use After Free weakness
References
- https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e Mailing List, Patch
- https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b Mailing List, Patch
- https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e Mailing List, Patch
- https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b Mailing List, Patch