{"id":"CVE-2022-49017","state":"PUBLISHED","title":"tipc: re-fetch skb cb after tipc_msg_validate","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntipc: re-fetch skb cb after tipc_msg_validate\n\nAs the call trace shows, the original skb was freed in tipc_msg_validate(),\nand dereferencing the old skb cb would cause an use-after-free crash.\n\n  BUG: KASAN: use-after-free in tipc_crypto_rcv_complete+0x1835/0x2240 [tipc]\n  Call Trace:\n   <IRQ>\n   tipc_crypto_rcv_complete+0x1835/0x2240 [tipc]\n   tipc_crypto_rcv+0xd32/0x1ec0 [tipc]\n   tipc_rcv+0x744/0x1150 [tipc]\n  ...\n  Allocated by task 47078:\n   kmem_cache_alloc_node+0x158/0x4d0\n   __alloc_skb+0x1c1/0x270\n   tipc_buf_acquire+0x1e/0xe0 [tipc]\n   tipc_msg_create+0x33/0x1c0 [tipc]\n   tipc_link_build_proto_msg+0x38a/0x2100 [tipc]\n   tipc_link_timeout+0x8b8/0xef0 [tipc]\n   tipc_node_timeout+0x2a1/0x960 [tipc]\n   call_timer_fn+0x2d/0x1c0\n  ...\n  Freed by task 47078:\n   tipc_msg_validate+0x7b/0x440 [tipc]\n   tipc_crypto_rcv_complete+0x4b5/0x2240 [tipc]\n   tipc_crypto_rcv+0xd32/0x1ec0 [tipc]\n   tipc_rcv+0x744/0x1150 [tipc]\n\nThis patch fixes it by re-fetching the skb cb from the new allocated skb\nafter calling tipc_msg_validate().","publishedAt":"2024-10-21T20:06:25.971Z","updatedAt":"2026-08-05T08:53:28.139Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"a1ba595e35aa3afbe417ff0af353afb9f65559c0","versionType":"git"},{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"1daec0815655e110c6f206c5e777a4af8168ff58","versionType":"git"},{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"e128190adb2edfd5042105b5d1ed4553f295f5ef","versionType":"git"},{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"3067bc61fcfe3081bf4807ce65560f499e895e77","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/crypto.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.158","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.82","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.12","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/crypto.c"]}],"references":["https://git.kernel.org/stable/c/a1ba595e35aa3afbe417ff0af353afb9f65559c0","https://git.kernel.org/stable/c/1daec0815655e110c6f206c5e777a4af8168ff58","https://git.kernel.org/stable/c/e128190adb2edfd5042105b5d1ed4553f295f5ef","https://git.kernel.org/stable/c/3067bc61fcfe3081bf4807ce65560f499e895e77"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49017.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49017","state":"PUBLISHED","datePublished":"2024-10-21T20:06:25.971Z","dateUpdated":"2026-08-05T08:53:28.139Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-22T01:27:53.646Z"},"containers":{"cna":{"title":"tipc: re-fetch skb cb after tipc_msg_validate","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntipc: re-fetch skb cb after tipc_msg_validate\n\nAs the call trace shows, the original skb was freed in tipc_msg_validate(),\nand dereferencing the old skb cb would cause an use-after-free crash.\n\n  BUG: KASAN: use-after-free in tipc_crypto_rcv_complete+0x1835/0x2240 [tipc]\n  Call Trace:\n   <IRQ>\n   tipc_crypto_rcv_complete+0x1835/0x2240 [tipc]\n   tipc_crypto_rcv+0xd32/0x1ec0 [tipc]\n   tipc_rcv+0x744/0x1150 [tipc]\n  ...\n  Allocated by task 47078:\n   kmem_cache_alloc_node+0x158/0x4d0\n   __alloc_skb+0x1c1/0x270\n   tipc_buf_acquire+0x1e/0xe0 [tipc]\n   tipc_msg_create+0x33/0x1c0 [tipc]\n   tipc_link_build_proto_msg+0x38a/0x2100 [tipc]\n   tipc_link_timeout+0x8b8/0xef0 [tipc]\n   tipc_node_timeout+0x2a1/0x960 [tipc]\n   call_timer_fn+0x2d/0x1c0\n  ...\n  Freed by task 47078:\n   tipc_msg_validate+0x7b/0x440 [tipc]\n   tipc_crypto_rcv_complete+0x4b5/0x2240 [tipc]\n   tipc_crypto_rcv+0xd32/0x1ec0 [tipc]\n   tipc_rcv+0x744/0x1150 [tipc]\n\nThis patch fixes it by re-fetching the skb cb from the new allocated skb\nafter calling tipc_msg_validate()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"a1ba595e35aa3afbe417ff0af353afb9f65559c0","versionType":"git"},{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"1daec0815655e110c6f206c5e777a4af8168ff58","versionType":"git"},{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"e128190adb2edfd5042105b5d1ed4553f295f5ef","versionType":"git"},{"version":"fc1b6d6de2208774efd2a20bf0daddb02d18b1e0","status":"affected","lessThan":"3067bc61fcfe3081bf4807ce65560f499e895e77","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/crypto.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.158","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.82","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.12","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tipc/crypto.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a1ba595e35aa3afbe417ff0af353afb9f65559c0"},{"url":"https://git.kernel.org/stable/c/1daec0815655e110c6f206c5e777a4af8168ff58"},{"url":"https://git.kernel.org/stable/c/e128190adb2edfd5042105b5d1ed4553f295f5ef"},{"url":"https://git.kernel.org/stable/c/3067bc61fcfe3081bf4807ce65560f499e895e77"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerable path is tipc_udp_recv/tipc_l2_rcv_msg → tipc_rcv → tipc_crypto_rcv → tipc_crypto_rcv_complete, reached by processing encrypted TIPC packets from a remote peer over UDP or Ethernet bearers.\nAC:L - A peer who can send valid encrypted TIPC messages reliably drives the decrypt-complete path; the tipc_msg_validate skb replacement triggers on common high-truesize RX buffers (e.g. page-backed skbs), with no race beyond attacker control.\nPR:L - Successful AEAD decryption is required before tipc_msg_validate and the UAF write, so the attacker must possess the cluster/node TIPC encryption key as an authenticated peer, but needs no elevated OS privileges on the victim.\nUI:N - Exploitation is fully driven by attacker-sent encrypted packets; no victim user action is required once a TIPC bearer with crypto is configured and running.\nS:U - This is standard in-kernel memory corruption within the host TIPC stack and does not cross a VM, IOMMU, or other security authority boundary.\nC:H - Use-after-free of the skb control block enables heap reuse and attacker-controlled object contents, which can be leveraged for arbitrary kernel memory disclosure.\nI:H - The bug writes to freed skb->cb (decrypted flag and possibly tx_clone_ctx memset), giving a UAF write primitive exploitable for corruption and control-flow hijacking.\nA:H - The KASAN report shows a use-after-free crash in IRQ context; the UAF can cause kernel oops/panic and denial of service even when not fully exploited for code execution."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:53:28.139Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.15.82"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.0.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-49017","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-22T13:13:05.882492Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-22T13:18:37.715Z"}}]}}}