net: mctp: unshare packets when reassembling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: mctp: unshare packets when reassembling
Ensure that the frag_list used for reassembly isn't shared with other packets. This avoids incorrect reassembly when packets are cloned, and prevents a memory leak due to circular references between fragments and their skb_shared_info.
The upcoming MCTP-over-USB driver uses skb_clone which can trigger the problem - other MCTP drivers don't share SKBs.
A kunit test is added to reproduce the issue.
From the CVE record · Linux
The Linux kernel's MCTP packet reassembly can use a fragment list shared with cloned packets, causing incorrect reassembly and a memory leak. The upcoming MCTP-over-USB driver uses the packet-cloning operation that can trigger this issue; other MCTP drivers do not share packets. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with MCTP support should check their kernel version; affected versions are not specified.