aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/linker.c
diff options
context:
space:
mode:
authorNorbert Szetei <[email protected]>2025-03-29 16:06:01 +0000
committerSteve French <[email protected]>2025-04-01 05:04:21 +0000
commitbf21e29d78cd2c2371023953d9c82dfef82ebb36 (patch)
tree297eacb0736cb0149f90507f42abe5a5a2a6240d /tools/lib/bpf/linker.c
parentksmbd: fix overflow in dacloffset bounds check (diff)
downloadkernel-bf21e29d78cd2c2371023953d9c82dfef82ebb36.tar.gz
kernel-bf21e29d78cd2c2371023953d9c82dfef82ebb36.zip
ksmbd: validate zero num_subauth before sub_auth is accessed
Access psid->sub_auth[psid->num_subauth - 1] without checking if num_subauth is non-zero leads to an out-of-bounds read. This patch adds a validation step to ensure num_subauth != 0 before sub_auth is accessed. Cc: [email protected] Signed-off-by: Norbert Szetei <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions