summaryrefslogtreecommitdiffstats
path: root/package/openssl/patches/900-CVE-2009-1378.patch
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-12 10:39:10 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-12 10:39:10 +0000
commit26862c3e56fe9164f7a7a45305d99965145b975e (patch)
treefbc4ee2418a3a4a59ed09f6f9edc9f96c0d5969d /package/openssl/patches/900-CVE-2009-1378.patch
parent6e4aacf42ab90c882bbbdcc35f36e8853128d5df (diff)
update openssl to 0.9.8l -- thanks puchu
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18398 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openssl/patches/900-CVE-2009-1378.patch')
-rw-r--r--package/openssl/patches/900-CVE-2009-1378.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/openssl/patches/900-CVE-2009-1378.patch b/package/openssl/patches/900-CVE-2009-1378.patch
new file mode 100644
index 000000000..50f51cd85
--- /dev/null
+++ b/package/openssl/patches/900-CVE-2009-1378.patch
@@ -0,0 +1,24 @@
+http://rt.openssl.org/Ticket/Display.html?id=1931&user=guest&pass=guest
+
+Index: openssl/ssl/d1_both.c
+===================================================================
+--- d1_both.c.orig
++++ d1_both.c
+@@ -561,7 +561,16 @@ dtls1_process_out_of_seq_message(SSL *s,
+ if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
+ goto err;
+
+- if (msg_hdr->seq <= s->d1->handshake_read_seq)
++ /* Try to find item in queue, to prevent duplicate entries */
++ pq_64bit_init(&seq64);
++ pq_64bit_assign_word(&seq64, msg_hdr->seq);
++ item = pqueue_find(s->d1->buffered_messages, seq64);
++ pq_64bit_free(&seq64);
++
++ /* Discard the message if sequence number was already there, is
++ * too far in the future or the fragment is already in the queue */
++ if (msg_hdr->seq <= s->d1->handshake_read_seq ||
++ msg_hdr->seq > s->d1->handshake_read_seq + 10 || item != NULL)
+ {
+ unsigned char devnull [256];
+