diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-10-26 16:38:33 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-26 16:38:33 -0700 |
| commit | a894b4077df1999682f0270c40831b42e72eaab0 (patch) | |
| tree | b84206a39b0789d083bf3d66617e558559c36102 /include/linux/timerqueue.h | |
| parent | 389952e8776a4663044df2ae3e8987a9e81964cf (diff) | |
| parent | aa1799e93f5ebb973252aec649d84d12d9c7fd1c (diff) | |
Merge branch 'ipmr-ip6mr-fix-several-info-leaks'
Ido Schimmel says:
====================
ipmr, ip6mr: Fix several info leaks
ip{,6}mr_cache_report() copy the IP header of a packet that triggered an
upcall to a report packet that is delivered to user space. The header
is not always fully initialized or present, resulting in info leaks
flagged by KMSAN.
Patch 1 fixes an info leak in the RTM_GETROUTE path, caused by the fact
that ipmr_get_route() does not fully initialize the IP header of the
packet that it creates. IPv6 does not suffer from this problem.
Patch 2 fixes info leaks triggered by packets injected into pim{,6}reg
devices via AF_PACKET sockets. The kernel does not validate that these
are IP packets that carry an IP header before calling
ip{,6}mr_cache_report().
Both issues were reported by Sashiko and reproduced by me. See KMSAN
traces in the commit messages.
As far as I can tell, all other callers call these functions from the IP
input / output paths and therefore provide a valid IP packet, with the
exception of ip6mr_get_route() which fully initializes the header of the
packet it creates.
====================
Link: https://patch.msgid.link/20261025071729.34967-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
