CVE-2026-99884: ipmr, ip6mr: validate packets injected into the register vif on xmit
In the Linux kernel, the following vulnerability has been resolved:
ipmr, ip6mr: validate packets injected into the register vif on xmit
regvifxmit() passes the packet to ipmrcachereport() which copies its IP header into the IGMPMSGWHOLEPKT report that is queued to the mroute socket. Nothing guarantees that the packet contains a full IP header, so when a short packet is injected on the register device (e.g., using AFPACKET), the copy reads past the end of the packet and a recvmsg() on the mroute socket leaks the uninitialized bytes to user space [1].
IPv6 has the same problem [2]. Its regvifxmit() does call pskbinetmaypull(), but the helper keys off skb->protocol and does not pull anything when the protocol is neither IPv4 nor IPv6.
Fix by dropping packets whose protocol does not match the address family of the register device or that do not contain a full network header.
[1] BUG: KMSAN: kernel-infoleak in copytoiter rawrecvmsg
Uninit was stored to memory at: ipmrcachereport regvifxmit packetsendmsg
Uninit was created at: allocskb sockallocsendpskb packetsendmsg
Bytes 1-3 of 21 are uninitialized
[2] BUG: KMSAN: kernel-infoleak in copytoiter rawv6recvmsg
Uninit was stored to memory at: ip6mrcachereport regvifxmit packetsendmsg
Uninit was created at: allocskb sockallocsendpskb packetsendmsg
Bytes 8-23 of 41 are uninitialized
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1Fixed in 7.3.4-1
Event History
Frequently Asked Questions
What access does an attacker need to trigger the information leak?
They need to inject a short packet onto a multicast-routing register virtual interface, for example through AF_PACKET, and cause the resulting whole-packet report to be read with recvmsg() from the mroute socket. The provided information does not specify the privileges or permissions required for either operation.
Which multicast-routing paths are affected?
Both IPv4 multicast routing (ipmr) and IPv6 multicast routing (ip6mr) register virtual interfaces are affected. For IPv6, packets whose skb protocol is neither IPv4 nor IPv6 can bypass the existing pull check.
What behavior changes after the fix?
The kernel drops packets injected into a register virtual interface when their protocol does not match that device's address family or when they do not contain a complete network header. This prevents the packet-header copy from reading beyond the packet data into uninitialized memory.