aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/patches/702-pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-26 16:41:45 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-26 16:41:48 +0100
commitcd262f59cbf1bbf9af344196291d256e6a3351f1 (patch)
treeea8a7471e0c453e159a366b58b629643b7d748d0 /package/network/services/ppp/patches/702-pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch
parented3c3048b8d3550f4efec51d6db47a26ae76cf1e (diff)
downloadupstream-cd262f59cbf1bbf9af344196291d256e6a3351f1.tar.gz
upstream-cd262f59cbf1bbf9af344196291d256e6a3351f1.tar.bz2
upstream-cd262f59cbf1bbf9af344196291d256e6a3351f1.zip
Revert "ppp: backport security fixes"
This reverts commit cc78f934a9466a0ef404bb169cc42680c7501d02 since it didn't contain a reference to the CVE it addresses. The next commit will re-add the commit including a CVE reference in its commit message. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/network/services/ppp/patches/702-pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch')
-rw-r--r--package/network/services/ppp/patches/702-pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/package/network/services/ppp/patches/702-pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch b/package/network/services/ppp/patches/702-pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch
deleted file mode 100644
index 7286d81a56..0000000000
--- a/package/network/services/ppp/patches/702-pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From 8d45443bb5c9372b4c6a362ba2f443d41c5636af Mon Sep 17 00:00:00 2001
-From: Paul Mackerras <paulus@ozlabs.org>
-Date: Mon, 3 Feb 2020 16:31:42 +1100
-Subject: [PATCH] pppd: Ignore received EAP messages when not doing EAP
-
-This adds some basic checks to the subroutines of eap_input to check
-that we have requested or agreed to doing EAP authentication before
-doing any processing on the received packet. The motivation is to
-make it harder for a malicious peer to disrupt the operation of pppd
-by sending unsolicited EAP packets. Note that eap_success() already
-has a check that the EAP client state is reasonable, and does nothing
-(apart from possibly printing a debug message) if not.
-
-Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
----
- pppd/eap.c | 18 ++++++++++++++++++
- 1 file changed, 18 insertions(+)
-
-diff --git a/pppd/eap.c b/pppd/eap.c
-index 1b93db01aebd..082e95343120 100644
---- a/pppd/eap.c
-+++ b/pppd/eap.c
-@@ -1328,6 +1328,12 @@ int len;
- int fd;
- #endif /* USE_SRP */
-
-+ /*
-+ * Ignore requests if we're not open
-+ */
-+ if (esp->es_client.ea_state <= eapClosed)
-+ return;
-+
- /*
- * Note: we update es_client.ea_id *only if* a Response
- * message is being generated. Otherwise, we leave it the
-@@ -1736,6 +1742,12 @@ int len;
- u_char dig[SHA_DIGESTSIZE];
- #endif /* USE_SRP */
-
-+ /*
-+ * Ignore responses if we're not open
-+ */
-+ if (esp->es_server.ea_state <= eapClosed)
-+ return;
-+
- if (esp->es_server.ea_id != id) {
- dbglog("EAP: discarding Response %d; expected ID %d", id,
- esp->es_server.ea_id);
-@@ -2047,6 +2059,12 @@ u_char *inp;
- int id;
- int len;
- {
-+ /*
-+ * Ignore failure messages if we're not open
-+ */
-+ if (esp->es_client.ea_state <= eapClosed)
-+ return;
-+
- if (!eap_client_active(esp)) {
- dbglog("EAP unexpected failure message in state %s (%d)",
- eap_state_name(esp->es_client.ea_state),