Skip to content

Commit c2320e4

Browse files
committed
Merge: ipv6: mcast: Delay put pmc->idev in mld_del_delrec()
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-9/-/merge_requests/4409 JIRA: https://issues.redhat.com/browse/RHEL-111150 Upstream Status: net.git commit ae3264a CVE: CVE-2025-38550 commit ae3264a Author: Yue Haibing <yuehaibing@huawei.com> Date: Mon Jul 14 22:19:57 2025 +0800 ipv6: mcast: Delay put pmc->idev in mld_del_delrec() pmc->idev is still used in ip6_mc_clear_src(), so as mld_clear_delrec() does, the reference should be put after ip6_mc_clear_src() return. Fixes: 63ed8de ("mld: add mc_lock for protecting per-interface mld data") Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Link: https://patch.msgid.link/20250714141957.3301871-1-yuehaibing@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Hangbin Liu <haliu@redhat.com> Closes RHEL-111150 Approved-by: Antoine Tenart <atenart@redhat.com> Approved-by: Aaron Conole <aconole@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents ca3d60f + 504341f commit c2320e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/mcast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,8 @@ static void mld_del_delrec(struct inet6_dev *idev, struct ifmcaddr6 *im)
803803
} else {
804804
im->mca_crcount = idev->mc_qrv;
805805
}
806-
in6_dev_put(pmc->idev);
807806
ip6_mc_clear_src(pmc);
807+
in6_dev_put(pmc->idev);
808808
kfree_rcu(pmc, rcu);
809809
}
810810
}

0 commit comments

Comments
 (0)