net: mctp: free reassembly head skb when key_add fails on SOM
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
net: mctp: free reassembly head skb when key_add fails on SOM
When a start-of-message fragment creates a new reassembly key on the broadcast/bind path, mctp_frag_queue() stores the skb as key->reasm_head before the key is made observable with mctp_key_add().
If mctp_key_add() 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 mctp_key_unref(). The final key destructor frees the key itself but not key->reasm_head, 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->reasm_head on the key_add failure path before releasing the key. Other teardown paths (__mctp_key_done_in(), EOM delivery) already clear reasm_head before the final unref, so this only affects the failure path.
| Product | Versions |
|---|---|
| Linux Linux | 4a992bbd365094730a31bae1e12a6ca695336d57 to before e9bb19cc98c66ad7fc695806e10b63a5c0dcec67 Affected4a992bbd365094730a31bae1e12a6ca695336d57 to before 2f3bcca32ddf14dd61ea280089a3b1dd4c2493bb Affected4a992bbd365094730a31bae1e12a6ca695336d57 to before 29087f7d8a36155b805d8b70cc8940c66ed691fb Affected4a992bbd365094730a31bae1e12a6ca695336d57 to before dcc521f4255a390c6e4d14f6cca8622a91c59585 Affected4a992bbd365094730a31bae1e12a6ca695336d57 to before d2bfe74a8fe219a86b86c1f126e1d722a5001790 Affected |
| Linux Linux | 5.15 Affectedbefore 5.15 Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/e9bb19cc98c66ad7fc695806e10b63a5c0dcec67
- https://git.kernel.org/stable/c/2f3bcca32ddf14dd61ea280089a3b1dd4c2493bb
- https://git.kernel.org/stable/c/29087f7d8a36155b805d8b70cc8940c66ed691fb
- https://git.kernel.org/stable/c/dcc521f4255a390c6e4d14f6cca8622a91c59585
- https://git.kernel.org/stable/c/d2bfe74a8fe219a86b86c1f126e1d722a5001790
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.