Skip to content

Commit f97a3c7

Browse files
committed
Merge: vrf: use RCU protection in l3mdev_l3_out()
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6566 JIRA: https://issues.redhat.com/browse/RHEL-81542 Upstream Status: linux.git CVE: CVE-2025-21791 Signed-off-by: Guillaume Nault <gnault@redhat.com> Approved-by: Antoine Tenart <atenart@redhat.com> Approved-by: Florian Westphal <fwestpha@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents e41b15a + 40c5e22 commit f97a3c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/net/l3mdev.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,12 @@ struct sk_buff *l3mdev_l3_out(struct sock *sk, struct sk_buff *skb, u16 proto)
209209
if (netif_is_l3_slave(dev)) {
210210
struct net_device *master;
211211

212+
rcu_read_lock();
212213
master = netdev_master_upper_dev_get_rcu(dev);
213214
if (master && master->l3mdev_ops->l3mdev_l3_out)
214215
skb = master->l3mdev_ops->l3mdev_l3_out(master, sk,
215216
skb, proto);
217+
rcu_read_unlock();
216218
}
217219

218220
return skb;

0 commit comments

Comments
 (0)