{"id":"AZL-117079","summary":"CVE-2026-139342 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: use the full socket in sk_mc_loop()\n\nsk_mc_loop() is called from ip_mc_output() and ip6_finish_output2()\nwith skb-\u003esk, which is not always a full socket:\n\n- Since commit ca6fb0651883 (\"tcp: attach SYNACK messages to request\n  sockets instead of listener\"), a SYNACK is attached to its request\n  socket.\n\n- Since commit 79636038d37e (\"ipv4: tcp: give socket pointer to control\n  skbs\"), an ACK or RST sent by ip_send_unicast_reply() on behalf of a\n  TIME_WAIT socket is attached to the timewait socket.\n\nWhen such a packet uses a multicast route, inet_test_bit(MC_LOOP, sk)\nreads inet_flags past the end of the request or timewait socket.\n\nThis happens for instance when a SYN with a multicast source address\nreaches a listener, after being looped back with its dst attached, so\nthat ip_rcv_finish_core() skips the martian source check. A raw\nIP_HDRINCL socket sending to a local address does this, as does\nre-injection by nft dup or the iptables TEE target. The destination\ncan also come from a source route option, or from a route of type\nmulticast covering a unicast prefix.\n\nBUG: KASAN: slab-out-of-bounds in sk_mc_loop+0x111/0x170\nRead of size 8 at addr ffff88800f2b7f10 by task repro-raw/470\nCall Trace:\n \u003cIRQ\u003e\n sk_mc_loop+0x111/0x170\n ip_mc_output+0x355/0x930\n ip_build_and_send_pkt+0xb87/0xc50\n tcp_v4_send_synack+0x500/0x6f0\n tcp_conn_request+0x2135/0x2d90\n tcp_v4_conn_request+0xa5/0x210\n tcp_rcv_state_process+0x136e/0x6920\n tcp_v4_do_rcv+0x339/0xb10\n tcp_v4_rcv+0x34ab/0x3ab0\n ip_protocol_deliver_rcu+0x6e/0x3e0\n ip_local_deliver_finish+0x34d/0x510\n ip_local_deliver+0x1bc/0x310\n ip_rcv+0x390/0x410\n __netif_receive_skb_one_core+0x199/0x1e0\n process_backlog+0x239/0x680\n __napi_poll+0xb5/0x650\n net_rx_action+0x980/0xd60\n handle_softirqs+0x17f/0x590\n do_softirq+0x3f/0x60\n \u003c/IRQ\u003e\n\nThe buggy address belongs to the object at ffff88800f2b7d60\n which belongs to the cache request_sock_TCP of size 312\nThe buggy address is located 120 bytes to the right of\n allocated 312-byte region [ffff88800f2b7d60, ffff88800f2b7e98)\n\nUse sk_const_to_full_sk(), which restores the behavior from before\nthe two commits above: a request socket uses the setting of its\nlistener, and a timewait socket gets the default (loop back), as the\nper-cpu control socket used before had.\n\n[edumazet: rewrote the changelog, added the TIME_WAIT case]","modified":"2026-12-01T14:17:41.374541226Z","published":"2026-11-30T14:18:59Z","upstream":["CVE-2026-139342"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139342"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117079.json"}}],"schema_version":"1.9.2"}