[libvirt] [v0.9.12-maint 06/11] rpc: Fix crash on error paths of message dispatching
Peter Krempa
pkrempa at redhat.com
Wed Sep 11 14:51:05 UTC 2013
On 09/11/13 16:00, Peter Krempa wrote:
^^^^^^^^^^^^
Guido, you should recofigure your git-send-email or other mailer so that
it sends patches in your name with a separate "From:" line in the body.
This now looks as if I've sent the mail which is not the case.
Peter
> This patch resolves CVE-2013-0170:
> https://bugzilla.redhat.com/show_bug.cgi?id=893450
>
> When reading and dispatching of a message failed the message was freed
> but wasn't removed from the message queue.
>
> After that when the connection was about to be closed the pointer for
> the message was still present in the queue and it was passed to
> virNetMessageFree which tried to call the callback function from an
> uninitialized pointer.
>
> This patch removes the message from the queue before it's freed.
>
> * rpc/virnetserverclient.c: virNetServerClientDispatchRead:
> - avoid use after free of RPC messages
>
> (cherry picked from commit 46532e3e8ed5f5a736a02f67d6c805492f9ca720)
> ---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130911/7100e807/attachment-0001.sig>
More information about the libvir-list
mailing list