CVE-2026-139134: net: mctp: free reassembly head skb when key_add fails on SOM
In the Linux kernel, the following vulnerability has been resolved:
net: mctp: free reassembly head skb when keyadd fails on SOM
When a start-of-message fragment creates a new reassembly key on the broadcast/bind path, mctpfragqueue() stores the skb as key->reasmhead before the key is made observable with mctpkeyadd().
If mctpkeyadd() fails (a race with another SOM packet for the same source/dest/tag, or the receiving socket going away), the error path only drops the key reference via mctpkeyunref(). The final key destructor frees the key itself but not key->reasmhead, and since the key was never added to any list, neither the expiry worker nor socket teardown can reach it to release the queued fragment. The skb is leaked.
Free key->reasmhead on the keyadd failure path before releasing the key. Other teardown paths (mctpkeydonein(), EOM delivery) already clear reasmhead before the final unref, so this only affects the failure path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
On the mctp_key_add() failure path for a start-of-message fragment, free key->reasm_head before releasing the key.
Event History
Frequently Asked Questions
What conditions are required to trigger the leak?
A start-of-message MCTP fragment must create a new reassembly key through the broadcast/bind receive path, and mctp_key_add() must then fail. The described failure cases are a race with another start-of-message packet using the same source, destination, and tag, or the receiving socket going away.
What is the impact if the issue is triggered?
The queued fragment skb stored as key->reasm_head is leaked. Because the key was never added to a list, normal expiry processing and socket teardown cannot find it and release the fragment.
Is this caused by normal MCTP reassembly completion or teardown?
No. The affected case is specifically the key_add failure path after the reassembly head skb has been stored. The existing inbound key teardown and end-of-message delivery paths already clear reasm_head before the final key reference is released.
What is the remediation described by the fix?
On mctp_key_add() failure, free key->reasm_head before releasing the key reference with mctp_key_unref().