summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHolger Dengler <dengler@linux.ibm.com>2026-08-20 17:50:03 +0200
committerHeiko Carstens <hca@linux.ibm.com>2026-08-31 16:25:38 +0200
commita91a5c25a2c3f652178b591facc2395a7dbb59af (patch)
treed7a790b80c106c8edf4a46b2cf3057f4bef9a5b4 /tools/perf/scripts/python/bin
parent8ac60ae2a307a50b599bf5d300b448d638f3ba29 (diff)
s390/zcrypt: Validate length in reply before using it
The length information in the reply is used to copy the key token to the target buffer. An invalid information in t->len of the reply may cause an over-read of the target buffer and also a over-write of the target buffer. To prevent that, check t->len before using it. As the available space in destination and source buffer is always larger than the valid length value in the parameter block in the reply, compare t->len with this (already validated) length information. As a side effect, this check also prevents buffer over-read and over-write. Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Holger Dengler <dengler@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions