{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143289","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.364Z","datePublished":"2026-12-03T09:21:24.884Z","dateUpdated":"2026-12-04T03:32:20.863Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:32:20.863Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nipmr, ip6mr: queue netlink route queries out of band\n\nipmr_get_route() and ip6mr_get_route() queue synthetic skbs on the\nunresolved MFC entry to answer RTM_GETROUTE requests once the route\nis resolved. These skbs carry a fake IP header with version 0, and\nipmr_cache_resolve(), ipmr_destroy_unres(), ip6mr_cache_resolve()\nand ip6mr_destroy_unres() rely on this in-band tag to tell them\napart from regular packets queued by the input and output paths.\n\nThe IP version is only validated once, in ip_rcv_core() and\nip6_rcv_core(). A netfilter hook running later, for instance an\nnftables payload statement in a PREROUTING chain owned by an\nunprivileged user namespace, can rewrite the first header byte to\nzero. The SRv6 End.DX6 action also passes the decapsulated packet\nto ip6_mr_input() without checking that the inner header version\nis 6. If no MFC entry exists, the packet is queued and later handled\nas a netlink request: its payload is treated as an nlmsghdr and\nwritten to, mr_fill_mroute() may call skb_put() on a nonlinear skb\n(hitting SKB_LINEAR_ASSERT()), and the skb is unicast to a netlink\nportid taken from stale IPCB/IP6CB bytes in skb->cb[].\n\nipmr_cache_report() also relies on the same tag since\ncommit 94a6736bb5ab (\"ipmr: only copy pktinfo to cache reports\").\n\nStop trusting packet contents: queue route queries on a dedicated\nnl_queries list in the unresolved MFC entry, and pass an explicit\nnl_query flag from the callers.\n\nThe per-entry limit of four queued skbs now applies to both lists\ncombined, as before. The synthetic header keeps version 0, since it\nis copied into the NOCACHE report delivered to the mroute socket."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The attacker-controlled bytes are the inner IPv6 header. input_action_end_dx6() pulls them in decap_and_validate() without a version check, input_action_end_dx6_finish() calls seg6_lookup_nexthop() and dst_input(), and a multicast inner DA makes ip6_mc_input() call ip6_mr_input(), which queues the skb for ip6mr_cache_resolve() and ip6mr_destroy_unres().\nAC:H - ip6_mr_input() queues the skb only when devconf_all->mc_forwarding is set and ip6mr_find_vif() returns a VIF, and the skb reaches that path only because a seg6local End.DX6 route already invokes seg6_local_input(). A remote sender cannot add that route or VIF.\nPR:N - End.DX6 accepts an outer IPv6 packet with next header 41 and no SRH. decap_and_validate() runs seg6_hmac_validate_skb() only when an SRH is present, and ip6_rcv_core() accepts the outer header before any credential is checked.\nUI:N - The sender transmits the IPv6 packet to the End.DX6 SID. No process on the target mounts media, opens a file, or answers a prompt.\nS:U - The damaged skb is handled in the host kernel by ip6mr_cache_resolve(), ip6mr_destroy_unres(), and rtnl_unicast(). That does not cross a KVM guest boundary or an IOMMU.\nC:H - After skb_pull() of sizeof(ipv6hdr), ip6mr_destroy_unres() and ip6mr_cache_resolve() store an nlmsghdr and nlmsgerr with no headlen or tailroom check, so a header-only skb overwrites skb_shared_info. mr_fill_mroute() also writes the parent vif ifindex and MFC packet and byte counters into that skb.\nI:H - Those stores are an out-of-bounds write past skb->tail on a received data skb, not the linear netlink buffer allocated in ip6mr_get_route(). On the resolve path mr_fill_mroute() extends the same skb through nla_put() and skb_put().\nA:H - A header-only or nonlinear skb then hits skb_shared_info corruption and is passed to rtnl_unicast() and kfree_skb(), which oopses. skb_trim() on a nonlinear skb warns in __skb_set_length(), and skb_put() BUG_ONs through SKB_LINEAR_ASSERT when data_len is nonzero."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/mroute_base.h","net/ipv4/ipmr.c","net/ipv6/ip6mr.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"ea7c82feb7a5365c35e2b0ac1bcb78e312410426","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"787268686c64be60023743b527645a907e38ccca","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/mroute_base.h","net/ipv4/ipmr.c","net/ipv6/ip6mr.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ea7c82feb7a5365c35e2b0ac1bcb78e312410426"},{"url":"https://git.kernel.org/stable/c/787268686c64be60023743b527645a907e38ccca"}],"title":"ipmr, ip6mr: queue netlink route queries out of band","x_generator":{"engine":"bippy-1.2.0"}}}}