ipmr, ip6mr: validate packets injected into the register vif on xmit
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
ipmr, ip6mr: validate packets injected into the register vif on xmit
reg_vif_xmit() passes the packet to ipmr_cache_report() which copies its IP header into the IGMPMSG_WHOLEPKT 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 AF_PACKET), 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 reg_vif_xmit() does call pskb_inet_may_pull(), 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 _copy_to_iter raw_recvmsg
Uninit was stored to memory at: ipmr_cache_report reg_vif_xmit packet_sendmsg
Uninit was created at: __alloc_skb sock_alloc_send_pskb packet_sendmsg
Bytes 1-3 of 21 are uninitialized
[2] BUG: KMSAN: kernel-infoleak in _copy_to_iter rawv6_recvmsg
Uninit was stored to memory at: ip6mr_cache_report reg_vif_xmit packet_sendmsg
Uninit was created at: __alloc_skb sock_alloc_send_pskb packet_sendmsg
Bytes 8-23 of 41 are uninitialized
| Product | Versions |
|---|---|
| Linux Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c8b142f5afec61c9fb17ef537412857bc53011bf Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 965aba80db97695fa94ccb07cb5a61e306500f51 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before adb9bdafceed755bbbb067e2152b7dc25d58fe87 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 277602482dfdd9574b845cc8b0e54ef87ac2f17c Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 450e2e7a1460723a13f69010dae9854614685d73 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 0e8f3398de5717277f96a0237f9ed9fe88dfcbd2 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 1f6cb0614d1783adb0187cf40a3c4f60499731e8 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before aa1799e93f5ebb973252aec649d84d12d9c7fd1c Affected |
| Linux Linux | 2.6.12 Affectedbefore 2.6.12 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/c8b142f5afec61c9fb17ef537412857bc53011bf
- https://git.kernel.org/stable/c/965aba80db97695fa94ccb07cb5a61e306500f51
- https://git.kernel.org/stable/c/adb9bdafceed755bbbb067e2152b7dc25d58fe87
- https://git.kernel.org/stable/c/277602482dfdd9574b845cc8b0e54ef87ac2f17c
- https://git.kernel.org/stable/c/450e2e7a1460723a13f69010dae9854614685d73
- https://git.kernel.org/stable/c/0e8f3398de5717277f96a0237f9ed9fe88dfcbd2
- https://git.kernel.org/stable/c/1f6cb0614d1783adb0187cf40a3c4f60499731e8
- https://git.kernel.org/stable/c/aa1799e93f5ebb973252aec649d84d12d9c7fd1c
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.