diff options
| author | Lorenz Bauer <lmb@cloudflare.com> | 2019-05-21 08:52:38 +0100 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-05-21 16:25:09 +0200 |
| commit | 9b28ae243ef3b13d8a88b5451d025475c75ebdef (patch) | |
| tree | 9f4de06e34f7e88112812578ad1a9a922b358197 /tools/perf/scripts/python/bin | |
| parent | Documentation/networking: fix af_xdp.rst Sphinx warnings (diff) | |
| download | linux-9b28ae243ef3b13d8a88b5451d025475c75ebdef.tar.gz linux-9b28ae243ef3b13d8a88b5451d025475c75ebdef.zip | |
bpf: fix out-of-bounds read in __bpf_skc_lookup
__bpf_skc_lookup takes a socket tuple and the length of the
tuple as an argument. Based on the length, it decides which
address family to pass to the helper function sk_lookup.
In case of AF_INET6, it fails to verify that the length
of the tuple is long enough. sk_lookup may therefore access
data past the end of the tuple.
Fixes: 6acc9b432e67 ("bpf: Add helper to retrieve socket in BPF")
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
