Re: [PATCH] crypto: user - lock crypto_alg_list on alg dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 01, 2016 at 02:27:30PM +0100, Mathias Krause wrote:
> We miss to take the crypto_alg_sem semaphore when traversing the
> crypto_alg_list for CRYPTO_MSG_GETALG dumps. This allows a race with
> crypto_unregister_alg() removing algorithms from the list while we're
> still traversing it, thereby leading to a use-after-free as show below:

Applied to crypto.  Thanks!
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux