ipv6: Check the Home Address option again before its address is used
Summary
| CVE | CVE-2026-143253 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 10:18:05 UTC |
| Updated | 2026-12-03 10:18:05 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: ipv6: Check the Home Address option again before its address is used ipv6_dest_hao() checks the Home Address option and sets IP6CB(skb)->dsthao to the offset of the destination options header. Later mip6_addr_swap() and mip6_destopt_reject() call ipv6_find_tlv() with that offset and use the 16 address bytes. They assume that the same header is still there. But the seg6 and ioam6 lwtunnels, the End.B6 actions, ipv6_rpl_srh_rcv() and BPF lwt progs move or rewrite the IPv6 headers and keep IP6CB(skb). Then ipv6_find_tlv() parses other bytes. It returns when the type matches, before it checks that the option is inside the header. Nobody checks the length of the option again. Thus mip6_addr_swap() can write after the data of the skb. mip6_destopt_reject() can copy that memory to an xfrm report. In ipv6_find_tlv(), check the length of an option before its type. The returned option is then inside the header, and the header is inside the linear data. In both callers, ignore an option with a length other than 16, as if ipv6_find_tlv() found none. Then the ICMPv6 error goes to the source address of the IPv6 header, and the xfrm report has no XFRMA_COADDR attribute. Nothing changes for a header that ip6_parse_tlv() accepted and that is still in its place. For the other callers an incomplete option is now absent: - ip6_find_1stfragopt() and mip6_rthdr_offset() can return another offset for the fragment header or the xfrm header, also in a forwarded packet. - calipso_skbuff_optptr() returns NULL. netlbl_skbuff_getattr() and netlbl_cache_add() then see no option. calipso_skbuff_delattr() returns 0 and the packet continues unchanged. Today it returns -EINVAL and SELinux drops the packet. It already returns 0 when an earlier option is incomplete. The receiver drops such a header in ip6_parse_tlv(). The code that moves the headers still does not reset the offset or the other fields of IP6CB(skb). If the bytes there look like a header with a Home Address option of length 16, both callers still use its address. The first tag also covers ipv6_find_tlv(), because its early return did no harm before mip6_addr_swap(). The second tag is for mip6_destopt_reject(). |
Risk And Classification
EPSS: 0.002150000 probability, percentile 0.126150000 (date 2026-12-03)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 793832361fe7e9c3fcae2edd1d293c583a0a095c 9379517f4c0be58f1d328c5ced414fa95aa042a9 git | Not specified |
| CNA | Linux | Linux | affected 793832361fe7e9c3fcae2edd1d293c583a0a095c b4d82579848cd00acd047a9c5228ce6a6a410cb8 git | Not specified |
| CNA | Linux | Linux | affected 793832361fe7e9c3fcae2edd1d293c583a0a095c daf64f41011974ba76728684af72a7262f1ac2db git | Not specified |
| CNA | Linux | Linux | affected 793832361fe7e9c3fcae2edd1d293c583a0a095c e518f21c6299a5f356721c63cff88e19795e0b72 git | Not specified |
| CNA | Linux | Linux | affected 793832361fe7e9c3fcae2edd1d293c583a0a095c 49bd10deaa055068caba14b21bebe2ca7fdc06b5 git | Not specified |
| CNA | Linux | Linux | affected 793832361fe7e9c3fcae2edd1d293c583a0a095c 30c71476d842b094651bd7712f6c8ee8716147d0 git | Not specified |
| CNA | Linux | Linux | affected 2.6.19 | Not specified |
| CNA | Linux | Linux | unaffected 2.6.19 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.276 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.227 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.120 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.66 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3.7 7.3.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.4-rc3 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/e518f21c6299a5f356721c63cff88e19795e0b72 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/49bd10deaa055068caba14b21bebe2ca7fdc06b5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/b4d82579848cd00acd047a9c5228ce6a6a410cb8 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/daf64f41011974ba76728684af72a7262f1ac2db | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/9379517f4c0be58f1d328c5ced414fa95aa042a9 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/30c71476d842b094651bd7712f6c8ee8716147d0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.