aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/common.c
diff options
context:
space:
mode:
authorTony Ambardar <[email protected]>2025-01-25 06:52:36 +0000
committerAlexei Starovoitov <[email protected]>2025-02-03 11:33:51 +0000
commit0a7c2a84359612e54328aa52030eb202093da6e2 (patch)
treef072b7033a9fc64527e0c677221ab885a06990b8 /tools/bpf/bpftool/common.c
parentselftests/bpf: Fix freplace_link segfault in tailcalls prog test (diff)
downloadkernel-0a7c2a84359612e54328aa52030eb202093da6e2.tar.gz
kernel-0a7c2a84359612e54328aa52030eb202093da6e2.zip
libbpf: Fix accessing BTF.ext core_relo header
Update btf_ext_parse_info() to ensure the core_relo header is present before reading its fields. This avoids a potential buffer read overflow reported by the OSS Fuzz project. Fixes: cf579164e9ea ("libbpf: Support BTF.ext loading and output in either endianness") Signed-off-by: Tony Ambardar <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://issues.oss-fuzz.com/issues/388905046 Link: https://lore.kernel.org/bpf/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions