Skip to content

Validate size for vector operations

Mamatha Inamdar requested to merge mainamdar/centos-stream-9:RHEL-29116 into main

Description: Validate size for vector operations

JIRA: https://issues.redhat.com/browse/RHEL-29116

CVE: CVE-2023-52606

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=60777873

Tested: Verified Brew build test kernel RPMs

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

commit 8f9abaa6d7de0a70fc68acaedce290c1f96e2e59 Author: Naveen N Rao naveen@kernel.org Date: Thu Nov 23 12:47:05 2023 +0530

powerpc/lib: Validate size for vector operations

Some of the fp/vmx code in sstep.c assume a certain maximum size for the
instructions being emulated. The size of those operations however is
determined separately in analyse_instr().

Add a check to validate the assumption on the maximum size of the
operations, so as to prevent any unintended kernel stack corruption.

Signed-off-by: Naveen N Rao <naveen@kernel.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Build-tested-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231123071705.397625-1-naveen@kernel.org

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

Edited by Mamatha Inamdar

Merge request reports