[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.2-testing] tmem: check the pool_id is valid when destroying a tmem pool
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1348567968 -7200 # Node ID da0fd47f59b4bb479bd550dc2abd8c04bf3e0317 # Parent d188a7ad6c75b8b9ff4ec7335176ec87a047ca28 tmem: check the pool_id is valid when destroying a tmem pool This is part of XSA-15 / CVE-2012-3497. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> xen-unstable changeset: 25852:d189d99ef00c xen-unstable date: Tue Sep 11 12:06:54 UTC 2012 --- diff -r d188a7ad6c75 -r da0fd47f59b4 xen/common/tmem.c --- a/xen/common/tmem.c Tue Sep 25 12:12:04 2012 +0200 +++ b/xen/common/tmem.c Tue Sep 25 12:12:48 2012 +0200 @@ -1870,6 +1870,8 @@ static NOINLINE int do_tmem_destroy_pool if ( client->pools == NULL ) return 0; + if ( pool_id >= MAX_POOLS_PER_DOMAIN ) + return 0; if ( (pool = client->pools[pool_id]) == NULL ) return 0; client->pools[pool_id] = NULL; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |