CVE-2022-48782
published high CVSS 3.1 · 8.8mctp: fix use after free
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4f9e1ba6de45aa8797a83f1fe5b82ec4bac16899 to < 1dd3ecbec5f606b2a526c47925c8634b1a6bb81e · 4f9e1ba6de45aa8797a83f1fe5b82ec4bac16899 to < 7e5b6a5c8c44310784c88c1c198dde79f6402f7b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.16 (affected) · 0 to < 5.16 (unaffected · semver) · 5.16.11 through 5.16.* (unaffected · semver) · 5.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:A - The bug is in mctp_route_input(), reached when ETH_P_MCTP packets are received on MCTP netdevs (I2C/SMBus or serial bindings). Those transports are chassis/management-fabric or link-local interconnects, not Internet-routable L3, so Adjacent matches the highest realistic exposure. AC:L - mctp_key_add() fails on a duplicate (src,dest,tag) key, which the code documents as a race with another SOM packet; an attacker who sends concurrent matching fragmented SOM frames controls both sides of that race and can trigger the UAF reliably. PR:N - Packet delivery into mctp_pkttype_receive()/mctp_route_input() performs no authentication or capability check on the sender. An on-bus peer needs no local account; CAP_NET_* checks apply only to AF_MCTP bind/sendto, not to wire reception. UI:N - Exploitation requires only attacker-sent MCTP frames toward a host with MCTP routing/sockets configured; no victim user action is required. S:U - Impact is memory corruption in the receiving kernel’s MCTP stack and does not cross a separate security authority such as a guest-to-host or IOMMU boundary. C:H - Use-after-free of struct mctp_sk_key (trace read plus mctp_key_unref on freed storage) enables heap reuse and disclosure of attacker-controlled or adjacent kernel memory. I:H - The same UAF/double-free path yields a heap corruption primitive that can be turned into arbitrary write or control-flow hijacking via standard slab shaping. A:H - Dereferencing and re-freeing the dropped key causes kernel oops/panic or heap allocator corruption, so availability impact is High even without full exploitation.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4f9e1ba6de45aa8797a83f1fe5b82ec4bac16899 to < 1dd3ecbec5f606b2a526c47925c8634b1a6bb81e (affected · git)4f9e1ba6de45aa8797a83f1fe5b82ec4bac16899 to < 7e5b6a5c8c44310784c88c1c198dde79f6402f7b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.16 (affected)0 to < 5.16 (unaffected · semver)5.16.11 through 5.16.* (unaffected · semver)5.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
mctp: fix use after free
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 424f65202093fb28f5661e62b136de002bf8564d5ce440da03596cae3b43a33a
- Ingested
- 23 Sep 2026, 08:04:03 UTC
- Source record
- Official CVE record