# CVE-2022-48782: mctp: fix use after free

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2024-07-16T11:13:19.141Z
- Modified: 2026-08-05T08:52:14.211Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.16 before 5.16.11

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1dd3ecbec5f606b2a526c47925c8634b1a6bb81e> (mailing-list, patch)
- <https://git.kernel.org/stable/c/7e5b6a5c8c44310784c88c1c198dde79f6402f7b> (mailing-list, patch)

## Sources

- CVE List: [CVE-2022-48782](https://www.cve.org/CVERecord?id=CVE-2022-48782), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48782](https://nvd.nist.gov/vuln/detail/CVE-2022-48782), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48782 · Whole record: https://cve.day/CVE-2022-48782.json · Rebuilt by cve.day 2026-11-25T22:58:19.879Z
