1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 506eb6fec6
gpg: Fix DoS while parsing mangled secret key packets.
* g10/parse-packet.c (parse_key): Check PKTLEN before calling mpi_read
et al.
--

Due to the missing length checks PKTLEN may turn negative.  Because
PKTLEN is an unsigned int the malloc in read_rest would try to malloc
a too large number and terminate the process with "error reading rest
of packet: Cannot allocate memory".

Reported-by: Hanno Böck.
Signed-off-by: Werner Koch <wk@gnupg.org>
(backported from 2.0 commit 0aac920f23fd07e152fdb7385299c92bb9a4ade3)
2015-04-05 19:42:59 +02:00
..
2015-03-28 12:24:16 +01:00
2010-09-23 08:15:45 +00:00
2007-10-23 10:48:09 +00:00
2009-09-02 15:02:01 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2014-08-06 18:33:21 +02:00
2015-02-27 09:33:58 +01:00
2015-02-23 10:53:05 +01:00
2009-12-15 11:07:43 +00:00
2009-09-02 17:30:53 +00:00
2007-10-23 10:48:09 +00:00
2013-07-12 17:26:55 +09:00
2007-10-23 10:48:09 +00:00
2014-06-23 14:57:32 +02:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2015-02-26 16:35:20 +01:00
2011-02-23 15:13:40 +01:00
2007-10-23 10:48:09 +00:00
2015-02-26 16:35:20 +01:00
2007-10-23 10:48:09 +00:00
2011-08-09 10:54:22 +02:00
2005-10-05 16:58:50 +00:00
2009-06-24 14:01:20 +00:00
2013-07-12 17:26:55 +09:00
2009-05-11 09:37:25 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00