diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2021-03-23 09:26:44 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-03-24 10:00:24 +0100 |
commit | b1e3a5607034aa0a481c6f69a6893049406665fb (patch) | |
tree | 8283c922b67fbcb204219deaad46456bc87777ad /net/xfrm | |
parent | 68dc022d04eb0fd60a540e242dcb11ec1bee07e2 (diff) | |
download | linux-b1e3a5607034aa0a481c6f69a6893049406665fb.tar.bz2 |
xfrm: Fix NULL pointer dereference on policy lookup
When xfrm interfaces are used in combination with namespaces
and ESP offload, we get a dst_entry NULL pointer dereference.
This is because we don't have a dst_entry attached in the ESP
offloading case and we need to do a policy lookup before the
namespace transition.
Fix this by expicit checking of skb_dst(skb) before accessing it.
Fixes: f203b76d78092 ("xfrm: Add virtual xfrm interfaces")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
0 files changed, 0 insertions, 0 deletions