summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorAsim Viladi Oglu Manizada <manizada@pm.me>2026-07-23 09:35:48 +0000
committerSteffen Klassert <steffen.klassert@secunet.com>2026-07-27 09:40:23 +0200
commit7bad4bda74dc4713f398d3b7624ff05478e3a568 (patch)
tree2edaa892bd2b213f40f79fe4c558b8763a6e0dd1 /tools/perf/scripts/python/bin/stackcollapse-record
parent2aed51fc58d9ce450e2c116efb956160fd06fa02 (diff)
xfrm: ah6: validate routing header segments_left
AH6 rearranges routing-header addresses before computing or verifying the ICV. ipv6_rearrange_rthdr() assumes that segments_left is not larger than the number of addresses described by the routing header's hdrlen field. That assumption does not hold for raw IPv6 HDRINCL packets. A packet with hdrlen equal to 2 describes one address, but can carry an arbitrary segments_left value. With segments_left equal to 255, the function moves its address pointer 4,064 bytes backwards and passes a 4,064-byte length to memmove(), resulting in an out-of-bounds access. Validate the invariant locally before modifying the routing header or performing any address-pointer arithmetic, and propagate malformed-header errors to the existing AH6 input and output error paths. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Assisted-by: avom-custom-harness:gpt-5.5-qwen3.6-mod-mix Signed-off-by: Asim Viladi Oglu Manizada <manizada@pm.me> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions