Skip to content

Commit 301bfce

Browse files
committed
Merge: net: openvswitch: fix overwriting ct original tuple for ICMPv6 [rhel-9.5.z]
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-9/-/merge_requests/2350 JIRA: https://issues.redhat.com/browse/RHEL-44213 CVE: CVE-2024-38558 - net: openvswitch: fix overwriting ct original tuple for ICMPv6 (cki-backport-bot) [[RHEL-44213](https://issues.redhat.com/browse/RHEL-44213)] {[CVE-2024-38558](https://bugzilla.redhat.com/CVE-2024-38558)} Signed-off-by: Herton R. Krzesinski <[email protected]> Approved-by: Eelco Chaudron <[email protected]> Approved-by: Antoine Tenart <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Lucas Zampieri <[email protected]>
2 parents 5e6bf35 + e6673b0 commit 301bfce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/openvswitch/flow.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ static int parse_icmpv6(struct sk_buff *skb, struct sw_flow_key *key,
421421
*/
422422
key->tp.src = htons(icmp->icmp6_type);
423423
key->tp.dst = htons(icmp->icmp6_code);
424-
memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd));
425424

426425
if (icmp->icmp6_code == 0 &&
427426
(icmp->icmp6_type == NDISC_NEIGHBOUR_SOLICITATION ||
@@ -430,6 +429,8 @@ static int parse_icmpv6(struct sk_buff *skb, struct sw_flow_key *key,
430429
struct nd_msg *nd;
431430
int offset;
432431

432+
memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd));
433+
433434
/* In order to process neighbor discovery options, we need the
434435
* entire packet.
435436
*/

0 commit comments

Comments
 (0)