tipc: fix double-free in tipc_buf_append()
Description
In the Linux kernel, the following vulnerability has been resolved:
tipc: fix double-free in tipc_buf_append()
tipc_msg_validate() can potentially reallocate the skb it is validating, freeing the old one. In tipc_buf_append(), it was being called with a pointer to a local variable which was a copy of the caller's skb pointer.
If the skb was reallocated and validation subsequently failed, the error handling path would free the original skb pointer, which had already been freed, leading to double-free.
Fix this by checking if head now points to a newly allocated reassembled skb. If it does, reassign *headbuf for later freeing operations.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
References
8- git.kernel.org/stable/c/0274f24485fc38032d4093e463dc3ff5c7a667c9mitre
- git.kernel.org/stable/c/1d5e589055880fae229e229e1929e087dbe08cf3mitre
- git.kernel.org/stable/c/29940fff14110ca48c5ccc168d121665b51bb778mitre
- git.kernel.org/stable/c/4d104882bc815d4ec666ace9155f5f52715879a6mitre
- git.kernel.org/stable/c/4ee4deadaae7cb2e3d53af0fc889cf92a73413c0mitre
- git.kernel.org/stable/c/a438975a6dcdbd70865978c021650d1485586f0bmitre
- git.kernel.org/stable/c/d293ca716e7d5dffdaecaf6b9b2f857a33dc3d3amitre
- git.kernel.org/stable/c/d3556656c6daebf8def751c7e71d11dd0a180d24mitre
News mentions
0No linked articles in our index yet.