diff options
author | Paolo Abeni <pabeni@redhat.com> | 2018-12-21 21:03:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-21 21:24:54 +0300 |
commit | e94e50bd88f7ed2f2d40c32c06efd61c36c33ec8 (patch) | |
tree | 1f55d0dc8ed86a0de8756571386ae6a9922bcbac /Documentation/numastat.txt | |
parent | 7fa4bd739fc0fa209fa5120383aab17f6e9600f7 (diff) | |
download | linux-e94e50bd88f7ed2f2d40c32c06efd61c36c33ec8.tar.xz |
net: fix possible user-after-free in skb_ext_add()
On cow we can free the old extension: we must avoid dereferencing
such extension after skb_ext_maybe_cow(). Since 'new' contents
are always equal to 'old' after the copy, we can fix the above
accessing the relevant data using 'new'.
Fixes: df5042f4c5b9 ("sk_buff: add skb extension infrastructure")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/numastat.txt')
0 files changed, 0 insertions, 0 deletions