]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net/can: sja1000 fix buff2frame_bas and buff2frame_pel when dlc is out of std...
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 29 Jul 2021 12:33:27 +0000 (14:33 +0200)
committerMichael Roth <michael.roth@amd.com>
Thu, 14 Oct 2021 22:34:25 +0000 (17:34 -0500)
commit4d3cfb2f6bb6afa07d0a9629136ae71eb6ab0268
tree59bd23fb6aab18b0217be56f7af1b99737363374
parent7999d5b12f336b4b2064361c163e06878e5d20e8
hw/net/can: sja1000 fix buff2frame_bas and buff2frame_pel when dlc is out of std CAN 8 bytes

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 <ningqiang1@huawei.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 11744862f27b9ba6488a247d2fd6bb83d9bc3c8d)
Signed-off-by: Michael Roth <michael.roth@amd.com>
hw/net/can/can_sja1000.c