diff options
| author | Theodor Arsenij Larionov Trichkine <theodorlarionov@gmail.com> | 2026-08-25 12:10:56 +0300 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-09-11 13:04:14 +0200 |
| commit | d313499df66159b4b7971d760d16729598ab7e5a (patch) | |
| tree | 5498f972fbf4e86c17ffa8f39638dcbf9ed3fd30 /tools/perf/scripts/python | |
| parent | 78445023439506ebd83b86d40b1e428a3b309d4a (diff) | |
| download | linux-d313499df66159b4b7971d760d16729598ab7e5a.tar.gz linux-d313499df66159b4b7971d760d16729598ab7e5a.zip | |
netfilter: nft_nat: fully initialise new_addr in netmap setup
nft_nat_setup_netmap() builds the mapped address in an on-stack
union nf_inet_addr. For an IPv4 mapping it writes only the 4-byte .ip
member and the loop runs a single 32-bit iteration, but it then copies
the whole 16-byte union into range->min_addr and range->max_addr, so the
upper 12 bytes reach nf_nat_setup_info() uninitialised.
KMSAN reports an uninit-value in nf_nat_setup_info() reached from
nft_nat_eval(). The IPv6 path fills all 16 bytes and is not affected.
Zero-initialise new_addr.
Fixes: 3ff7ddb1353d ("netfilter: nft_nat: add netmap support")
Signed-off-by: Theodor Arsenij Larionov Trichkine <theodorlarionov@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
