diff options
author | David Ahern <dsahern@kernel.org> | 2021-12-30 17:36:31 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-31 14:31:59 +0000 |
commit | 7a3429bace0e08d94c39245631ea6bc109dafa49 (patch) | |
tree | af5de5e93bc9b8789398f87bdf7a7414cd1e1652 /sound | |
parent | 74c78b4291b4466b44a57b3b7c3b98ad02628686 (diff) | |
download | linux-7a3429bace0e08d94c39245631ea6bc109dafa49.tar.bz2 |
ipv4: Check attribute length for RTA_GATEWAY in multipath route
syzbot reported uninit-value:
============================================================
BUG: KMSAN: uninit-value in fib_get_nhs+0xac4/0x1f80
net/ipv4/fib_semantics.c:708
fib_get_nhs+0xac4/0x1f80 net/ipv4/fib_semantics.c:708
fib_create_info+0x2411/0x4870 net/ipv4/fib_semantics.c:1453
fib_table_insert+0x45c/0x3a10 net/ipv4/fib_trie.c:1224
inet_rtm_newroute+0x289/0x420 net/ipv4/fib_frontend.c:886
Add helper to validate RTA_GATEWAY length before using the attribute.
Fixes: 4e902c57417c ("[IPv4]: FIB configuration using struct fib_config")
Reported-by: syzbot+d4b9a2851cc3ce998741@syzkaller.appspotmail.com
Signed-off-by: David Ahern <dsahern@kernel.org>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions