summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorNorbert Szetei <norbert@doyensec.com>2025-03-29 19:06:01 +0300
committerSteve French <stfrench@microsoft.com>2025-04-01 08:04:21 +0300
commitbf21e29d78cd2c2371023953d9c82dfef82ebb36 (patch)
tree297eacb0736cb0149f90507f42abe5a5a2a6240d /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentbeff0bc9d69bc8e733f9bca28e2d3df5b3e10e42 (diff)
downloadlinux-bf21e29d78cd2c2371023953d9c82dfef82ebb36.tar.xz
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: stable@vger.kernel.org Signed-off-by: Norbert Szetei <norbert@doyensec.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions