summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-networking/openvswitch/openvswitch-git/CVE-2021-3905.patch28
-rw-r--r--recipes-networking/openvswitch/openvswitch_git.bb1
2 files changed, 29 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/openvswitch-git/CVE-2021-3905.patch b/recipes-networking/openvswitch/openvswitch-git/CVE-2021-3905.patch
new file mode 100644
index 00000000..beff3944
--- /dev/null
+++ b/recipes-networking/openvswitch/openvswitch-git/CVE-2021-3905.patch
@@ -0,0 +1,28 @@
1From 9f66c8c98f1eb55e0fb536bfaf7afaecda136b0a Mon Sep 17 00:00:00 2001
2From: Hitendra Prajapati <hprajapati@mvista.com>
3Date: Tue, 20 Sep 2022 10:06:04 +0530
4Subject: [PATCH] CVE-2021-3905
5
6Upstream-Status: Backport [https://github.com/openvswitch/ovs/commit/803ed12e31b0377c37d7aa8c94b3b92f2081e349]
7CVE: CVE-2021-3905
8Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
9---
10 lib/ipf.c | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/lib/ipf.c b/lib/ipf.c
14index 446e89d13..66203f642 100644
15--- a/lib/ipf.c
16+++ b/lib/ipf.c
17@@ -945,6 +945,8 @@ ipf_extract_frags_from_batch(struct ipf *ipf, struct dp_packet_batch *pb,
18 if (!ipf_handle_frag(ipf, pkt, dl_type, zone, now, hash_basis,
19 pb->do_not_steal)) {
20 dp_packet_batch_refill(pb, pkt, pb_idx);
21+ } else {
22+ dp_packet_delete(pkt);
23 }
24 ovs_mutex_unlock(&ipf->ipf_lock);
25 } else {
26--
272.25.1
28
diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
index 86144196..56a9c25f 100644
--- a/recipes-networking/openvswitch/openvswitch_git.bb
+++ b/recipes-networking/openvswitch/openvswitch_git.bb
@@ -31,6 +31,7 @@ SRC_URI = "file://openvswitch-switch \
31 file://python-switch-remaining-scripts-to-use-python3.patch \ 31 file://python-switch-remaining-scripts-to-use-python3.patch \
32 file://systemd-update-tool-paths.patch \ 32 file://systemd-update-tool-paths.patch \
33 file://systemd-create-runtime-dirs.patch \ 33 file://systemd-create-runtime-dirs.patch \
34 file://CVE-2021-3905.patch \
34 " 35 "
35 36
36LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" 37LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"