Werner Koch
d901efceba
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>
2015-04-05 12:49:26 +02:00
..
2015-01-22 12:06:11 +01:00
2015-03-16 20:14:58 +01:00
2015-04-03 17:39:59 +09:00
2015-04-03 17:39:59 +09:00
2015-03-23 19:58:29 +01:00
2014-03-14 16:12:54 +01:00
2015-04-03 17:39:59 +09:00
2011-12-01 11:09:02 +01:00
2014-08-14 11:03:55 +02:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2015-01-22 12:06:11 +01:00
2014-07-23 14:35:22 +02:00
2014-06-30 09:12:48 +02:00
2015-01-22 12:06:11 +01:00
2015-01-22 12:06:11 +01:00
2014-01-29 20:35:05 +01:00
2014-09-20 16:27:16 +02:00
2014-10-31 14:21:34 +01:00
2015-01-05 15:15:28 +01:00
2015-03-15 14:01:36 +01:00
2015-01-22 12:06:11 +01:00
2007-07-04 19:49:40 +00:00
2014-12-01 11:54:51 +01:00
2014-11-13 12:01:42 +01:00
2014-01-29 20:35:05 +01:00
2015-02-25 16:34:19 +01:00
2015-02-04 09:15:34 +01:00
2015-03-28 16:55:37 +01:00
2015-01-22 12:06:11 +01:00
2015-02-04 09:15:34 +01:00
2015-01-28 19:57:22 +01:00
2012-06-05 19:29:22 +02:00
2015-01-22 14:39:31 +01:00
2014-11-13 17:01:17 +01:00
2015-03-24 13:30:57 +01:00
2014-10-13 14:54:26 +02:00
2015-04-03 17:39:59 +09:00
2015-04-03 17:39:59 +09:00
2015-02-19 16:29:58 +01:00
2015-03-15 12:39:56 +01:00
2015-02-09 15:46:00 +01:00
2010-04-23 11:36:59 +00:00
2015-01-05 15:15:36 +01:00
2015-02-26 18:01:13 +01:00
2015-02-25 11:43:50 +01:00
2015-03-19 20:38:25 +01:00
2015-02-25 11:43:50 +01:00
2011-02-04 12:57:53 +01:00
2014-10-09 10:56:25 +02:00
2015-03-16 20:12:44 +01:00
2014-11-13 17:39:31 +01:00
2000-07-31 08:04:16 +00:00
2015-02-24 19:31:59 +01:00
2014-11-04 16:28:03 +01:00
2014-10-17 13:32:16 +02:00
2015-04-05 12:49:26 +02:00
2014-11-19 10:47:57 +01:00
2014-04-17 21:44:09 +02:00
2010-04-23 11:36:59 +00:00
2015-01-22 12:06:11 +01:00
2014-09-08 18:25:06 +02:00
2014-01-30 18:48:37 +01:00
2015-01-22 12:06:11 +01:00
2011-02-04 12:57:53 +01:00
2015-02-11 10:28:25 +01:00
2000-07-31 08:04:16 +00:00
2015-01-22 12:06:11 +01:00
2011-02-04 12:57:53 +01:00
2008-12-12 08:54:50 +00:00
2015-02-11 10:28:25 +01:00
2014-10-03 11:58:58 +02:00
2014-01-30 18:48:37 +01:00
2015-02-19 17:22:27 +01:00
2015-02-19 17:22:27 +01:00
2011-02-04 12:57:53 +01:00
2014-01-29 20:35:05 +01:00
2011-02-04 12:57:53 +01:00
2015-02-19 17:22:27 +01:00
2015-02-19 17:22:27 +01:00
2015-02-19 17:22:27 +01:00
2014-10-17 13:32:16 +02:00
2015-02-11 10:28:25 +01:00
2015-03-04 14:31:45 +01:00
2014-02-10 17:46:40 +01:00
2015-01-22 12:06:11 +01:00
2014-01-29 17:45:05 +01:00