ipmr: fully initialize the synthetic IP header in ipmr_get_route()
- 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: fully initialize the synthetic IP header in ipmr_get_route()
For an unresolved multicast route query, ipmr_get_route() builds a synthetic IP header in the headroom obtained from skb_realloc_headroom(), which does not zero the memory it allocates. Only a few fields are initialized, leaving others as stale heap contents.
ipmr_cache_report() copies this header into the IGMPMSG_NOCACHE 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 'frag_off' 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 ip6mr_get_route().
[1] BUG: KMSAN: kernel-infoleak in _copy_to_iter raw_recvmsg
Uninit was stored to memory at: ipmr_cache_report ipmr_cache_unresolved ipmr_get_route
Uninit was created at: pskb_expand_head skb_realloc_headroom ipmr_get_route
Byte 1 of 28 is uninitialized
[2] BUG: KMSAN: kernel-infoleak in _copy_to_iter raw_recvmsg
Uninit was stored to memory at: ipmr_cache_report ipmr_cache_unresolved ipmr_get_route
Uninit was created at: pskb_expand_head skb_realloc_headroom ipmr_get_route
Bytes 4-7 of 28 are uninitialized
| Product | Versions |
|---|---|
| Linux Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 800a54a5c21f35df73abed676d9d1c712b9c360c Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5a521c0ccfc3e27bcebf69db15f7bc498394ff44 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 15fc9cec15eef525e6247deab4955d3c27d1edea Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before fc4eb478ad937163b659e4a5ae17a5f86c8e820a Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5b2fc8e445c37c1b391413b90192aab25e391cda Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 0cc5459983d1e158dce54e539f7d5c94777c0ac9 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 17463fef04b15bad67789573df58d1a9d7b96f90 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 134351edc28e083c61012b6c69e8e54dd7fa5bcc 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.117 through 6.12.* Not Affected6.18.63 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/800a54a5c21f35df73abed676d9d1c712b9c360c
- https://git.kernel.org/stable/c/5a521c0ccfc3e27bcebf69db15f7bc498394ff44
- https://git.kernel.org/stable/c/15fc9cec15eef525e6247deab4955d3c27d1edea
- https://git.kernel.org/stable/c/fc4eb478ad937163b659e4a5ae17a5f86c8e820a
- https://git.kernel.org/stable/c/5b2fc8e445c37c1b391413b90192aab25e391cda
- https://git.kernel.org/stable/c/0cc5459983d1e158dce54e539f7d5c94777c0ac9
- https://git.kernel.org/stable/c/17463fef04b15bad67789573df58d1a9d7b96f90
- https://git.kernel.org/stable/c/134351edc28e083c61012b6c69e8e54dd7fa5bcc
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.