]> git.ipfire.org Git - thirdparty/qemu.git/commit
slirp: Fix heap overflow in ip_reass on big packet input
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 24 Sep 2019 20:57:59 +0000 (15:57 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Oct 2019 00:12:53 +0000 (19:12 -0500)
commitc2e03e2aa42d0f4f41deb08c2655503835840afa
tree0e5c640471a99b832f16a0588158a477c35adb5c
parent4e5fe75422608046312f986743e4e267c2e3bdd6
slirp: Fix heap overflow in ip_reass on big packet input

When the first fragment does not fit in the preallocated buffer, q will
already be pointing to the ext buffer, so we mustn't try to update it.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
(from libslirp.git commit 126c04acbabd7ad32c2b018fe10dfac2a3bc1210)
(from libslirp.git commit e0be80430c390bce181ea04dfcdd6ea3dfa97de1)
*squash in e0be80 (clarifying comments)
Fixes: CVE-2019-14378
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
slirp/src/ip_input.c