CVE-2026-99885: ipmr: fully initialize the synthetic IP header in ipmr_get_route()
In the Linux kernel, the following vulnerability has been resolved:
ipmr: fully initialize the synthetic IP header in ipmrgetroute()
For an unresolved multicast route query, ipmrgetroute() builds a synthetic IP header in the headroom obtained from skbreallocheadroom(), which does not zero the memory it allocates. Only a few fields are initialized, leaving others as stale heap contents.
ipmrcachereport() copies this header into the IGMPMSGNOCACHE report that is queued to the mroute socket, so a recvmsg() on that socket leaks the uninitialized bytes to user space: the 'tos' field [1] and the 'id' and 'fragoff' fields [2].
Fix by zeroing the IP header before filling in the few fields that are used, so that the entire header is initialized, as in ip6mrgetroute().
[1] BUG: KMSAN: kernel-infoleak in copytoiter rawrecvmsg
Uninit was stored to memory at: ipmrcachereport ipmrcacheunresolved ipmrgetroute
Uninit was created at: pskbexpandhead skbreallocheadroom ipmrgetroute
Byte 1 of 28 is uninitialized
[2] BUG: KMSAN: kernel-infoleak in copytoiter rawrecvmsg
Uninit was stored to memory at: ipmrcachereport ipmrcacheunresolved ipmrgetroute
Uninit was created at: pskbexpandhead skbreallocheadroom ipmrgetroute
Bytes 4-7 of 28 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.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - 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.117-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.117-1Fixed in 7.3.4-1 - Compensating control
In Linux kernel ipmr_get_route(), zero the synthetic IP header before filling its fields so the entire header is initialized.
Event History
Frequently Asked Questions
Who can observe the leaked kernel data?
A user-space process that can receive IGMPMSG_NOCACHE reports from the multicast-routing socket can observe the uninitialized bytes through recvmsg().
What condition triggers the disclosure?
The disclosure occurs when an unresolved multicast route query causes ipmr_get_route() to construct a synthetic IP header and ipmr_cache_report() queues the resulting no-cache report to the mroute socket.