aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git/CVE-2021-3905.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git/CVE-2021-3905.patch')
-rw-r--r--recipes-networking/openvswitch/openvswitch-git/CVE-2021-3905.patch28
1 files changed, 28 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 @@
+From 9f66c8c98f1eb55e0fb536bfaf7afaecda136b0a Mon Sep 17 00:00:00 2001
+From: Hitendra Prajapati <hprajapati@mvista.com>
+Date: Tue, 20 Sep 2022 10:06:04 +0530
+Subject: [PATCH] CVE-2021-3905
+
+Upstream-Status: Backport [https://github.com/openvswitch/ovs/commit/803ed12e31b0377c37d7aa8c94b3b92f2081e349]
+CVE: CVE-2021-3905
+Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
+---
+ lib/ipf.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/lib/ipf.c b/lib/ipf.c
+index 446e89d13..66203f642 100644
+--- a/lib/ipf.c
++++ b/lib/ipf.c
+@@ -945,6 +945,8 @@ ipf_extract_frags_from_batch(struct ipf *ipf, struct dp_packet_batch *pb,
+ if (!ipf_handle_frag(ipf, pkt, dl_type, zone, now, hash_basis,
+ pb->do_not_steal)) {
+ dp_packet_batch_refill(pb, pkt, pb_idx);
++ } else {
++ dp_packet_delete(pkt);
+ }
+ ovs_mutex_unlock(&ipf->ipf_lock);
+ } else {
+--
+2.25.1
+