{"id":78689,"date":"2026-05-21T15:47:49","date_gmt":"2026-05-21T12:17:49","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-43501-ipv6-rpl-reserve-mac_len-headroom-when-recompressed-srh-grows\/"},"modified":"2026-05-21T15:47:49","modified_gmt":"2026-05-21T12:17:49","slug":"cve-2026-43501-ipv6-rpl-reserve-mac_len-headroom-when-recompressed-srh-grows","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-43501-ipv6-rpl-reserve-mac_len-headroom-when-recompressed-srh-grows\/","title":{"rendered":"CVE-2026-43501 &#8211; ipv6: rpl: reserve mac_len headroom when recompressed SRH grows"},"content":{"rendered":"<p>CVE ID :CVE-2026-43501<\/p>\n<p>  Published : May 21, 2026, 12:17 p.m. | 41\u00a0minutes ago<\/p>\n<p>  Description :In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ipv6: rpl: reserve mac_len headroom when recompressed SRH grows<\/p>\n<p>ipv6_rpl_srh_rcv() decompresses an RFC 6554 Source Routing Header, swaps<br \/>\nthe next segment into ipv6_hdr-&gt;daddr, recompresses, then pulls the old<br \/>\nheader and pushes the new one plus the IPv6 header back.  The<br \/>\nrecompressed header can be larger than the received one when the swap<br \/>\nreduces the common-prefix length the segments share with daddr (CmprI=0,<br \/>\nCmprE&gt;0, seg[0][0] != daddr[0] gives the maximum +8 bytes).<\/p>\n<p>pskb_expand_head() was gated on segments_left == 0, so on earlier<br \/>\nsegments the push consumed unchecked headroom.  Once skb_push() leaves<br \/>\nfewer than skb-&gt;mac_len bytes in front of data,<br \/>\nskb_mac_header_rebuild()&#8217;s call to:<\/p>\n<p>\tskb_set_mac_header(skb, -skb-&gt;mac_len);<\/p>\n<p>will store (data &#8211; head) &#8211; mac_len into the u16 mac_header field, which<br \/>\nwraps to ~65530, and the following memmove() writes mac_len bytes ~64KiB<br \/>\npast skb-&gt;head.<\/p>\n<p>A single AF_INET6\/SOCK_RAW\/IPV6_HDRINCL packet over lo with a two<br \/>\nsegment type-3 SRH (CmprI=0, CmprE=15) reaches headroom 8 after one<br \/>\npass; KASAN reports a 14-byte OOB write in ipv6_rthdr_rcv.<\/p>\n<p>Fix this by expanding the head whenever the remaining room is less than<br \/>\nthe push size plus mac_len, and request that much extra so the rebuilt<br \/>\nMAC header fits afterwards.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-43501 Published : May 21, 2026, 12:17 p.m. | 41\u00a0minutes ago Description :In the Linux kernel, the following vulnerability has been resolved: ipv6: rpl: reserve mac_len headroom when recompressed SRH grows ipv6_rpl_srh_rcv() decompresses an RFC 6554 Source Routing Header, swaps the next segment into ipv6_hdr-&gt;daddr, recompresses, then pulls the old header and pushes &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-78689","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=78689"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78689\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=78689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=78689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=78689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}