7.8
CWE
416
Advisory Published
Updated

CVE-2022-49017: tipc: re-fetch skb cb after tipc_msg_validate

First published: Mon Oct 21 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: tipc: re-fetch skb cb after tipc_msg_validate As the call trace shows, the original skb was freed in tipc_msg_validate(), and dereferencing the old skb cb would cause an use-after-free crash. BUG: KASAN: use-after-free in tipc_crypto_rcv_complete+0x1835/0x2240 [tipc] Call Trace: <IRQ> tipc_crypto_rcv_complete+0x1835/0x2240 [tipc] tipc_crypto_rcv+0xd32/0x1ec0 [tipc] tipc_rcv+0x744/0x1150 [tipc] ... Allocated by task 47078: kmem_cache_alloc_node+0x158/0x4d0 __alloc_skb+0x1c1/0x270 tipc_buf_acquire+0x1e/0xe0 [tipc] tipc_msg_create+0x33/0x1c0 [tipc] tipc_link_build_proto_msg+0x38a/0x2100 [tipc] tipc_link_timeout+0x8b8/0xef0 [tipc] tipc_node_timeout+0x2a1/0x960 [tipc] call_timer_fn+0x2d/0x1c0 ... Freed by task 47078: tipc_msg_validate+0x7b/0x440 [tipc] tipc_crypto_rcv_complete+0x4b5/0x2240 [tipc] tipc_crypto_rcv+0xd32/0x1ec0 [tipc] tipc_rcv+0x744/0x1150 [tipc] This patch fixes it by re-fetching the skb cb from the new allocated skb after calling tipc_msg_validate().

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=5.5<5.10.158
Linux Kernel>=5.11<5.15.82
Linux Kernel>=5.16<6.0.12
Linux Kernel=6.1-rc1
Linux Kernel=6.1-rc2
Linux Kernel=6.1-rc3
Linux Kernel=6.1-rc4
Linux Kernel=6.1-rc5
Linux Kernel=6.1-rc6
Linux Kernel=6.1-rc7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2022-49017?

    CVE-2022-49017 has a severity rating classified as high due to the potential for use-after-free crashes in the Linux kernel.

  • How do I fix CVE-2022-49017?

    To fix CVE-2022-49017, update the Linux kernel to a version that includes the patch addressing this vulnerability.

  • What versions of the Linux kernel are affected by CVE-2022-49017?

    CVE-2022-49017 affects Linux kernel versions from 5.5 to 5.10.158, 5.11 to 5.15.82, and 5.16 to 6.0.12, as well as various release candidates in the 6.1 series.

  • What causes the vulnerability described in CVE-2022-49017?

    CVE-2022-49017 is caused by dereferencing an old socket buffer control block after it has been freed, resulting in a use-after-free condition.

  • Can CVE-2022-49017 be exploited remotely?

    Exploitation of CVE-2022-49017 would typically require local access to the vulnerable system, as it involves interacting with the kernel directly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203