Hello everybody, please, can somebody accept the fix for master? It should be ideally applied even to stable branches.
Or should I send request through some other form then on the list? Thanks, Pavel On Monday 26 of July 2021 18:24:58 Pavel Pisa wrote: > Problem reported by openEuler fuzz-sig group. > > The buff2frame_bas function (hw\net\can\can_sja1000.c) > infoleak(qemu5.x~qemu6.x) or stack-overflow(qemu 4.x). > > Reported-by: Qiang Ning <ningqia...@huawei.com> > Signed-off-by: Pavel Pisa <p...@cmp.felk.cvut.cz> > --- > hw/net/can/can_sja1000.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/hw/net/can/can_sja1000.c b/hw/net/can/can_sja1000.c > index 42d2f99dfb..64e81bff58 100644 > --- a/hw/net/can/can_sja1000.c > +++ b/hw/net/can/can_sja1000.c > @@ -311,6 +311,10 @@ static void buff2frame_bas(const uint8_t *buff, > qemu_can_frame *frame) } > frame->can_dlc = buff[1] & 0x0f; > > + if (frame->can_dlc > 8) { > + frame->can_dlc = 8; > + } > + > for (i = 0; i < frame->can_dlc; i++) { > frame->data[i] = buff[2 + i]; > }
signature.asc
Description: This is a digitally signed message part.