tipc: fix UAF in tipc_l2_send_msg()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: tipc: fix UAF in tipc_l2_send_msg() Syzbot reported a slab-use-after-free in ipvlan_hard_header() when called from tipc_l2_send_msg(). The root cause is that tipc_disable_l2_media() calls synchronize_net() while b->media_ptr is still valid. This allows concurrent RCU readers to obtain the device pointer after synchronize_net() has finished. The pointer is cleared later in bearer_disable(), but without any subsequent synchronization, allowing the device to be freed while still in use by readers. Fix this by clearing b->media_ptr in tipc_disable_l2_media() before calling synchronize_net(). This is safe to do now because the call order in bearer_disable() was reversed in 0d051bf93c06 ("tipc: make bearer packet filtering generic") to call tipc_node_delete_links() (which needs the pointer) before disable_media(). https: //lore.kernel.org/netdev/6a2c1007.428ffe26.258b27.015d.GAE@google.com/T/#u
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 282b3a056225b35024246f63feb91d769d714dad · fixed in 609ced2301be1df7e7ed2ef47d1d916674e6ba3b; From 282b3a056225b35024246f63feb91d769d714dad · fixed in 71aafa16d79b107b33837f60b6cbc7d0cb8c5708; From 282b3a056225b35024246f63feb91d769d714dad · fixed in f4002f1c669cc02e3763f479fc25ff1dfa9e2420; From 282b3a056225b35024246f63feb91d769d714dad · fixed in 50ff092633b06382e5091dd5b093ce943d4ac2f9; From 282b3a056225b35024246f63feb91d769d714dad · fixed in aef12b5ce793dea6b3a97a58fd0f946000ae8945; From 282b3a056225b35024246f63feb91d769d714dad · fixed in 0d8a12d7143126afdf9fbe2e3d438650dd6603ed; From 282b3a056225b35024246f63feb91d769d714dad · fixed in 35e0297a93c3c34a3924eeef816c03504e3ab5c5; From 282b3a056225b35024246f63feb91d769d714dad · fixed in f4c3d89fc986b0da196ddfc6cfe0ea5d5d08bec6
- Linux Linux
4.4
- KernelLinux
From 4.4.0 · fixed in 5.10.261; From 5.11.0 · fixed in 5.15.212; From 5.16.0 · fixed in 6.1.178; From 6.2.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.97; From 6.13.0 · fixed in 6.18.40; From 6.19.0 · fixed in 7.1.5
References 8
git.kernel.org
- stable/c/609ced2301be1df7e7ed2ef47d1d916674e6ba3b
- stable/c/71aafa16d79b107b33837f60b6cbc7d0cb8c5708
- stable/c/f4002f1c669cc02e3763f479fc25ff1dfa9e2420
- stable/c/50ff092633b06382e5091dd5b093ce943d4ac2f9
- stable/c/aef12b5ce793dea6b3a97a58fd0f946000ae8945
- stable/c/0d8a12d7143126afdf9fbe2e3d438650dd6603ed
- stable/c/35e0297a93c3c34a3924eeef816c03504e3ab5c5
- stable/c/f4c3d89fc986b0da196ddfc6cfe0ea5d5d08bec6