Browse code

Fix CVE-2017-9263 in ovs

Change-Id: I76b2550ce47ba9d1b76b72c69f052e16c170f9c7
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4071
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

DheerajSShetty authored on 2017/10/19 08:28:09
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,12 @@
0
+--- lib/ofp-print.c.orig	2016-09-27 23:26:58.000643816 -0700
1
+@@ -2086,7 +2086,8 @@ ofp_print_role_status_message(struct ds
2
+         break;
3
+     case OFPCRR_N_REASONS:
4
+     default:
5
+-        OVS_NOT_REACHED();
6
++        ds_put_cstr(string, "(unknown)");
7
++        break;
8
+     }
9
+ }
10
+ 
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Open vSwitch daemon/database/utilities
2 2
 Name:           openvswitch
3 3
 Version:        2.6.1
4
-Release:        3%{?dist}
4
+Release:        4%{?dist}
5 5
 License:        ASL 2.0 and LGPLv2+
6 6
 URL:            http://www.openvswitch.org/
7 7
 Group:          System Environment/Daemons
... ...
@@ -10,6 +10,7 @@ Distribution:   Photon
10 10
 
11 11
 Source0:        http://openvswitch.org/releases/%{name}-%{version}.tar.gz
12 12
 Patch0:         ovs-CVE-2017-9264.patch
13
+Patch1:         OVS-CVE-2017-9263.patch
13 14
 %define sha1 openvswitch=2865fe03b3906b5aea984102c4b65772b5dd7450
14 15
 
15 16
 BuildRequires:  gcc >= 4.0.0
... ...
@@ -58,6 +59,7 @@ It contains the documentation and manpages for openvswitch.
58 58
 %prep
59 59
 %setup -q
60 60
 %patch0 -p1
61
+%patch1 -p0
61 62
 
62 63
 %build
63 64
 ./configure \
... ...
@@ -139,6 +141,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
139 139
 /usr/share/man/man8/vtep-ctl.8.gz
140 140
 
141 141
 %changelog
142
+*	Wed Oct 18 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.6.1-4
143
+-	Fix CVE-2017-9263
142 144
 *	Mon Jun 12 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.6.1-3
143 145
 -	Fix CVE-2017-9264
144 146
 *	Fri Feb 10 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.6.1-2