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.
The tipc_msg_validate() function may reallocate the skb (socket buffer) pointer, freeing the original buffer. In tipc_buf_append(), the pointer passed to this function was a local copy of the caller's skb pointer, not the original pointer. If validation failed after reallocation, the error handling path freed the original skb pointer again — even though it was already freed during reallocation. The fix consists of checking whether the head pointer points to a newly allocated buffer of the reassembled skb, and in such case reassigning *headbuf for subsequent memory release operations.
An attacker can cause heap corruption through double-free, which consequently may result in arbitrary code execution in kernel context (RCE), privilege escalation, or system failure (kernel panic / DoS).
Apply patches available from the vendor according to references — fixes have been published in the Linux kernel stable repository (including commits: 0274f24485fc, 1d5e589055880f, 29940fff14110c, 4d104882bc815d, 4ee4deadaae7cb). It is recommended to update to the latest stable kernel version containing the described fix. If immediate update is not possible, consider disabling the TIPC subsystem in the kernel, if it is not required.
Linux kernel with active TIPC subsystem; specific versions indicated in vendor references (commits available in stable.kernel.org repository).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux Kernel
OSLinux4.15 – 5.10.258 (excl.)5.11 – 5.15.209 (excl.)5.16 – 6.1.175 (excl.)6.2 – 6.6.141 (excl.)6.7 – 6.12.91 (excl.)6.13 – 6.18.33 (excl.)6.19 – 7.0.10 (excl.)
Related vulnerabilities
Type confusion w V8 (Google Chrome) — zdalne uszkodzenie sterty
Commvault Command Center – nieuwierzytelniony RCE przez path traversal w ZIP
RCE przez YAML deserialization w IBM Aspera Faspex
RCE w VMware Workspace ONE Access i Identity Manager poprzez server-side template injection
Command Injection w VMware Workspace One Access i Identity Manager