Kevin Wolf
11b128f406
qcow2: Fix NULL dereference in qcow2_open() error path (CVE-2014-0146)
...
The qcow2 code assumes that s->snapshots is non-NULL if s->nb_snapshots
!= 0. By having the initialisation of both fields separated in
qcow2_open(), any error occuring in between would cause the error path
to dereference NULL in qcow2_free_snapshots() if the image had any
snapshots.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-04-01 15:22:35 +02:00
..
2014-03-26 12:42:31 +02:00
2014-03-27 19:22:49 +04:00
2014-03-11 09:07:42 -04:00
2014-04-01 15:22:35 +02:00
2014-03-15 13:54:18 +04:00
2014-03-24 12:37:36 +02:00
2014-02-21 22:18:26 +01:00
2014-02-14 16:22:33 +01:00
2014-02-14 16:22:33 +01:00
2014-02-17 23:10:02 +01:00
2014-02-17 23:10:02 +01:00
2014-02-20 13:05:48 +00:00
2014-02-14 21:07:13 +01:00
2014-03-13 21:12:07 +01:00
2014-03-13 21:12:07 +01:00
2014-02-17 23:10:02 +01:00
2014-03-20 02:40:13 +01:00
2014-02-14 20:50:19 +01:00
2014-02-14 16:22:33 +01:00
2014-03-12 20:13:02 +01:00
2014-02-28 18:59:06 +01:00
2014-03-13 01:21:45 +01:00
2014-02-17 23:10:02 +01:00
2014-02-14 16:22:33 +01:00
2014-03-13 01:21:57 +01:00
2014-03-13 14:42:24 +01:00
2014-03-02 17:20:37 +04:00
2014-03-11 09:07:42 -04:00
2014-03-11 09:07:42 -04:00
2014-03-11 09:07:42 -04:00
2014-03-11 09:07:42 -04:00
2014-03-13 14:42:21 +01:00
2014-02-17 11:57:23 -05:00
2014-02-20 13:05:48 +00:00
2014-03-03 11:16:45 -05:00
2014-02-17 23:10:02 +01:00
2014-02-14 21:02:27 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 21:12:07 +01:00
2014-02-14 21:01:03 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:57 +01:00
2014-02-14 16:22:33 +01:00