{"id":"CVE-2026-143253","state":"PUBLISHED","title":"ipv6: Check the Home Address option again before its address is used","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: Check the Home Address option again before its address is used\n\nipv6_dest_hao() checks the Home Address option and sets IP6CB(skb)->dsthao\nto the offset of the destination options header. Later mip6_addr_swap() and\nmip6_destopt_reject() call ipv6_find_tlv() with that offset and use the 16\naddress bytes. They assume that the same header is still there.\n\nBut the seg6 and ioam6 lwtunnels, the End.B6 actions, ipv6_rpl_srh_rcv()\nand BPF lwt progs move or rewrite the IPv6 headers and keep IP6CB(skb).\nThen ipv6_find_tlv() parses other bytes. It returns when the type matches,\nbefore it checks that the option is inside the header. Nobody checks the\nlength of the option again. Thus mip6_addr_swap() can write after the data\nof the skb. mip6_destopt_reject() can copy that memory to an xfrm report.\n\nIn ipv6_find_tlv(), check the length of an option before its type. The\nreturned option is then inside the header, and the header is inside the\nlinear data. In both callers, ignore an option with a length other than 16,\nas if ipv6_find_tlv() found none. Then the ICMPv6 error goes to the source\naddress of the IPv6 header, and the xfrm report has no XFRMA_COADDR\nattribute. Nothing changes for a header that ip6_parse_tlv() accepted and\nthat is still in its place. For the other callers an incomplete option is\nnow absent:\n\n - ip6_find_1stfragopt() and mip6_rthdr_offset() can return another offset\n   for the fragment header or the xfrm header, also in a forwarded packet.\n - calipso_skbuff_optptr() returns NULL. netlbl_skbuff_getattr() and\n   netlbl_cache_add() then see no option. calipso_skbuff_delattr() returns\n   0 and the packet continues unchanged. Today it returns -EINVAL and\n   SELinux drops the packet. It already returns 0 when an earlier option is\n   incomplete. The receiver drops such a header in ip6_parse_tlv().\n\nThe code that moves the headers still does not reset the offset or the\nother fields of IP6CB(skb). If the bytes there look like a header with a\nHome Address option of length 16, both callers still use its address.\n\nThe first tag also covers ipv6_find_tlv(), because its early return did no\nharm before mip6_addr_swap(). The second tag is for mip6_destopt_reject().","publishedAt":"2026-12-03T09:21:01.403Z","updatedAt":"2026-12-03T09:21:01.403Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"9379517f4c0be58f1d328c5ced414fa95aa042a9","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"b4d82579848cd00acd047a9c5228ce6a6a410cb8","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"daf64f41011974ba76728684af72a7262f1ac2db","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"e518f21c6299a5f356721c63cff88e19795e0b72","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"49bd10deaa055068caba14b21bebe2ca7fdc06b5","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"30c71476d842b094651bd7712f6c8ee8716147d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/exthdrs_core.c","net/ipv6/icmp.c","net/ipv6/mip6.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/exthdrs_core.c","net/ipv6/icmp.c","net/ipv6/mip6.c"]}],"references":["https://git.kernel.org/stable/c/9379517f4c0be58f1d328c5ced414fa95aa042a9","https://git.kernel.org/stable/c/b4d82579848cd00acd047a9c5228ce6a6a410cb8","https://git.kernel.org/stable/c/daf64f41011974ba76728684af72a7262f1ac2db","https://git.kernel.org/stable/c/e518f21c6299a5f356721c63cff88e19795e0b72","https://git.kernel.org/stable/c/49bd10deaa055068caba14b21bebe2ca7fdc06b5","https://git.kernel.org/stable/c/30c71476d842b094651bd7712f6c8ee8716147d0"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143253.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143253","state":"PUBLISHED","datePublished":"2026-12-03T09:21:01.403Z","dateUpdated":"2026-12-03T09:21:01.403Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.362Z"},"containers":{"cna":{"title":"ipv6: Check the Home Address option again before its address is used","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: Check the Home Address option again before its address is used\n\nipv6_dest_hao() checks the Home Address option and sets IP6CB(skb)->dsthao\nto the offset of the destination options header. Later mip6_addr_swap() and\nmip6_destopt_reject() call ipv6_find_tlv() with that offset and use the 16\naddress bytes. They assume that the same header is still there.\n\nBut the seg6 and ioam6 lwtunnels, the End.B6 actions, ipv6_rpl_srh_rcv()\nand BPF lwt progs move or rewrite the IPv6 headers and keep IP6CB(skb).\nThen ipv6_find_tlv() parses other bytes. It returns when the type matches,\nbefore it checks that the option is inside the header. Nobody checks the\nlength of the option again. Thus mip6_addr_swap() can write after the data\nof the skb. mip6_destopt_reject() can copy that memory to an xfrm report.\n\nIn ipv6_find_tlv(), check the length of an option before its type. The\nreturned option is then inside the header, and the header is inside the\nlinear data. In both callers, ignore an option with a length other than 16,\nas if ipv6_find_tlv() found none. Then the ICMPv6 error goes to the source\naddress of the IPv6 header, and the xfrm report has no XFRMA_COADDR\nattribute. Nothing changes for a header that ip6_parse_tlv() accepted and\nthat is still in its place. For the other callers an incomplete option is\nnow absent:\n\n - ip6_find_1stfragopt() and mip6_rthdr_offset() can return another offset\n   for the fragment header or the xfrm header, also in a forwarded packet.\n - calipso_skbuff_optptr() returns NULL. netlbl_skbuff_getattr() and\n   netlbl_cache_add() then see no option. calipso_skbuff_delattr() returns\n   0 and the packet continues unchanged. Today it returns -EINVAL and\n   SELinux drops the packet. It already returns 0 when an earlier option is\n   incomplete. The receiver drops such a header in ip6_parse_tlv().\n\nThe code that moves the headers still does not reset the offset or the\nother fields of IP6CB(skb). If the bytes there look like a header with a\nHome Address option of length 16, both callers still use its address.\n\nThe first tag also covers ipv6_find_tlv(), because its early return did no\nharm before mip6_addr_swap(). The second tag is for mip6_destopt_reject()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"9379517f4c0be58f1d328c5ced414fa95aa042a9","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"b4d82579848cd00acd047a9c5228ce6a6a410cb8","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"daf64f41011974ba76728684af72a7262f1ac2db","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"e518f21c6299a5f356721c63cff88e19795e0b72","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"49bd10deaa055068caba14b21bebe2ca7fdc06b5","versionType":"git"},{"version":"793832361fe7e9c3fcae2edd1d293c583a0a095c","status":"affected","lessThan":"30c71476d842b094651bd7712f6c8ee8716147d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/exthdrs_core.c","net/ipv6/icmp.c","net/ipv6/mip6.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/exthdrs_core.c","net/ipv6/icmp.c","net/ipv6/mip6.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9379517f4c0be58f1d328c5ced414fa95aa042a9"},{"url":"https://git.kernel.org/stable/c/b4d82579848cd00acd047a9c5228ce6a6a410cb8"},{"url":"https://git.kernel.org/stable/c/daf64f41011974ba76728684af72a7262f1ac2db"},{"url":"https://git.kernel.org/stable/c/e518f21c6299a5f356721c63cff88e19795e0b72"},{"url":"https://git.kernel.org/stable/c/49bd10deaa055068caba14b21bebe2ca7fdc06b5"},{"url":"https://git.kernel.org/stable/c/30c71476d842b094651bd7712f6c8ee8716147d0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:01.403Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}