tipc: fix double-free in tipc_buf_append()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0274f24485fc38032d4093e463dc3ff5c7a667c9, Kernel 1d5e589055880fae229e229e1929e087dbe08cf3, Kernel 29940fff14110ca48c5ccc168d121665b51bb778 and 5 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.15, >=d618d09a68e4eed7a435beb2e355250f6f40664a <0274f24485fc38032d4093e463dc3ff5c7a667c9, >=d618d09a68e4eed7a435beb2e355250f6f40664a <1d5e589055880fae229e229e1929e087dbe08cf3, >=d618d09a68e4eed7a435beb2e355250f6f40664a <29940fff14110ca48c5ccc168d121665b51bb778, >=d618d09a68e4eed7a435beb2e355250f6f40664a <4d104882bc815d4ec666ace9155f5f52715879a6, >=d618d09a68e4eed7a435beb2e355250f6f40664a <4ee4deadaae7cb2e3d53af0fc889cf92a73413c0, >=d618d09a68e4eed7a435beb2e355250f6f40664a <a438975a6dcdbd70865978c021650d1485586f0b, >=d618d09a68e4eed7a435beb2e355250f6f40664a <d293ca716e7d5dffdaecaf6b9b2f857a33dc3d3a, >=d618d09a68e4eed7a435beb2e355250f6f40664a <d3556656c6daebf8def751c7e71d11dd0a180d24 | 0274f24485fc38032d4093e463dc3ff5c7a667c9, 1d5e589055880fae229e229e1929e087dbe08cf3, 29940fff14110ca48c5ccc168d121665b51bb778, 4d104882bc815d4ec666ace9155f5f52715879a6, 4ee4deadaae7cb2e3d53af0fc889cf92a73413c0, a438975a6dcdbd70865978c021650d1485586f0b, d293ca716e7d5dffdaecaf6b9b2f857a33dc3d3a, d3556656c6daebf8def751c7e71d11dd0a180d24 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket