CVE-2026-99943: ipmr: only copy pktinfo to cache reports
In the Linux kernel, the following vulnerability has been resolved:
ipmr: only copy pktinfo to cache reports
ipmrcachereport() prepares IPPKTINFO on the original skb. The ipv4pktinfoprepare() helper updates skb->cb and clears the pktinfo fields when packet info is disabled. Since the skb can continue through the data path, preserve and restore its original control block around the helper.
The original implementation copies the entire control block to the report skb. For synthetic RTMGETROUTE packets, NETLINKCB data is interpreted as IPCB by the raw IPv4 receive path. With IPRECVOPTS or IPRETOPTS enabled, corrupted option offsets cause out-of-bounds reads or a stack buffer overflow. WHOLEPKT and WRVIFWHOLE reports also inherit stale IP option offsets when their header is prepended.
Clear the report skb control block. Only prepare and copy pktinfo when the input skb has an IPv4 header. Synthetic route-query skbs use NETLINKCB, not IPCB, so leave their report control block zeroed. Restore pkt->cb after preparing pktinfo for regular IPv4 packets.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ipmr_cache_report(), prepare and copy pktinfo only when the input skb has an IPv4 header; preserve and restore the original skb->cb around ipv4_pktinfo_prepare(), leaving the report skb control block zeroed for synthetic route-query skbs.