Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffcbbaf032 | ||
|
|
7a9494039d |
3 changed files with 893 additions and 204 deletions
37
ppp-2.4.7-CVE-2020-8597.patch
Normal file
37
ppp-2.4.7-CVE-2020-8597.patch
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
From 8d7970b8f3db727fe798b65f3377fe6787575426 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Mackerras <paulus@ozlabs.org>
|
||||
Date: Mon, 3 Feb 2020 15:53:28 +1100
|
||||
Subject: [PATCH] pppd: Fix bounds check in EAP code
|
||||
|
||||
Given that we have just checked vallen < len, it can never be the case
|
||||
that vallen >= len + sizeof(rhostname). This fixes the check so we
|
||||
actually avoid overflowing the rhostname array.
|
||||
|
||||
Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
|
||||
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
|
||||
---
|
||||
pppd/eap.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pppd/eap.c b/pppd/eap.c
|
||||
index 94407f56..1b93db01 100644
|
||||
--- a/pppd/eap.c
|
||||
+++ b/pppd/eap.c
|
||||
@@ -1420,7 +1420,7 @@ int len;
|
||||
}
|
||||
|
||||
/* Not so likely to happen. */
|
||||
- if (vallen >= len + sizeof (rhostname)) {
|
||||
+ if (len - vallen >= sizeof (rhostname)) {
|
||||
dbglog("EAP: trimming really long peer name down");
|
||||
BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
|
||||
rhostname[sizeof (rhostname) - 1] = '\0';
|
||||
@@ -1846,7 +1846,7 @@ int len;
|
||||
}
|
||||
|
||||
/* Not so likely to happen. */
|
||||
- if (vallen >= len + sizeof (rhostname)) {
|
||||
+ if (len - vallen >= sizeof (rhostname)) {
|
||||
dbglog("EAP: trimming really long peer name down");
|
||||
BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
|
||||
rhostname[sizeof (rhostname) - 1] = '\0';
|
||||
File diff suppressed because it is too large
Load diff
13
ppp.spec
13
ppp.spec
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Name: ppp
|
||||
Version: 2.4.7
|
||||
Release: 33%{?dist}
|
||||
Release: 35%{?dist}
|
||||
Summary: The Point-to-Point Protocol daemon
|
||||
License: BSD and LGPLv2+ and GPLv2+ and Public Domain
|
||||
URL: http://www.samba.org/ppp
|
||||
|
|
@ -46,7 +46,8 @@ Patch0022: 0022-build-sys-compile-pppol2tp-with-multilink-support.patch
|
|||
Patch0023: 0023-build-sys-install-rp-pppoe-plugin-files-with-standar.patch
|
||||
Patch0024: 0024-build-sys-install-pppoatm-plugin-files-with-standard.patch
|
||||
Patch0025: 0025-pppd-install-pppd-binary-using-standard-perms-755.patch
|
||||
Patch0026: ppp-2.4.7-eaptls-mppe-1.102.patch
|
||||
# https://www.nikhef.nl/~janjust/ppp/ppp-2.4.7-eaptls-mppe-1.300.patch
|
||||
Patch0026: ppp-2.4.7-eaptls-mppe-1.300.patch
|
||||
Patch0028: 0028-pppoe-include-netinet-in.h-before-linux-in.h.patch
|
||||
|
||||
# rhbz#1556132
|
||||
|
|
@ -54,6 +55,7 @@ Patch0029: ppp-2.4.7-DES-openssl.patch
|
|||
# https://github.com/paulusmack/ppp/pull/95
|
||||
Patch0030: ppp-2.4.7-honor-ldflags.patch
|
||||
Patch0031: ppp-2.4.7-coverity-scan-fixes.patch
|
||||
Patch0032: ppp-2.4.7-CVE-2020-8597.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pam-devel, libpcap-devel, systemd, systemd-devel, glib2-devel
|
||||
|
|
@ -184,6 +186,13 @@ install -p %{SOURCE11} %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifdo
|
|||
%doc PLUGINS
|
||||
|
||||
%changelog
|
||||
* Tue Apr 7 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4.7-35
|
||||
- Updated EAP-TLS patch to v1.300
|
||||
|
||||
* Fri Feb 21 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4.7-34
|
||||
- Fixed buffer overflow in the eap_request and eap_response functions
|
||||
Resolves: CVE-2020-8597
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-33
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue