diff options
author | Magnus Karlsson <[email protected]> | 2020-04-14 09:35:15 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-04-15 13:07:18 +0200 |
commit | 99e3a236dd43d06c65af0a2ef9cb44306aef6e02 (patch) | |
tree | 14527dbe4aed7324672dfc119739886f523697d0 /scripts/bpf_helpers_doc.py | |
parent | 89f33dcadb349eb926a92633e2c5f61466afc596 (diff) |
xsk: Add missing check on user supplied headroom size
Add a check that the headroom cannot be larger than the available
space in the chunk. In the current code, a malicious user can set the
headroom to a value larger than the chunk size minus the fixed XDP
headroom. That way packets with a length larger than the supported
size in the umem could get accepted and result in an out-of-bounds
write.
Fixes: c0c77d8fb787 ("xsk: add user memory registration support sockopt")
Reported-by: Bui Quang Minh <[email protected]>
Signed-off-by: Magnus Karlsson <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=207225
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions