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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4a992bbd365094730a31bae1e12a6ca695336d57 to < e9bb19cc98c66ad7fc695806e10b63a5c0dcec67affected4a992bbd365094730a31bae1e12a6ca695336d57 to < 2f3bcca32ddf14dd61ea280089a3b1dd4c2493bbaffected4a992bbd365094730a31bae1e12a6ca695336d57 to < 29087f7d8a36155b805d8b70cc8940c66ed691fbaffected4a992bbd365094730a31bae1e12a6ca695336d57 to < dcc521f4255a390c6e4d14f6cca8622a91c59585affected4a992bbd365094730a31bae1e12a6ca695336d57 to < d2bfe74a8fe219a86b86c1f126e1d722a5001790affected
Linux Linux
Default version status: affected
5.15affected0 to < 5.15unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
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 ↗