CVE-2026-99885
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
Affected products
1Patches
Vulnerability mechanics
References
8- git.kernel.org/stable/c/0cc5459983d1e158dce54e539f7d5c94777c0ac9nvd
- git.kernel.org/stable/c/134351edc28e083c61012b6c69e8e54dd7fa5bccnvd
- git.kernel.org/stable/c/15fc9cec15eef525e6247deab4955d3c27d1edeanvd
- git.kernel.org/stable/c/17463fef04b15bad67789573df58d1a9d7b96f90nvd
- git.kernel.org/stable/c/5a521c0ccfc3e27bcebf69db15f7bc498394ff44nvd
- git.kernel.org/stable/c/5b2fc8e445c37c1b391413b90192aab25e391cdanvd
- git.kernel.org/stable/c/800a54a5c21f35df73abed676d9d1c712b9c360cnvd
- git.kernel.org/stable/c/fc4eb478ad937163b659e4a5ae17a5f86c8e820anvd
News mentions
0No linked articles in our index yet.