diff options
author | Eric Dumazet <[email protected]> | 2024-08-20 16:08:58 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-08-21 17:35:49 -0700 |
commit | da273b377ae0d9bd255281ed3c2adb228321687b (patch) | |
tree | 93eb1d8a41e18154d4ca37d010815fe762e98fe0 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | faa389b2fbaaec7fd27a390b4896139f9da662e3 (diff) |
ipv6: fix possible UAF in ip6_finish_output2()
If skb_expand_head() returns NULL, skb has been freed
and associated dst/idev could also have been freed.
We need to hold rcu_read_lock() to make sure the dst and
associated idev are alive.
Fixes: 5796015fa968 ("ipv6: allocate enough headroom in ip6_finish_output2()")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Vasily Averin <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions