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 <[email protected]> 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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Hangbin Liu <[email protected]> Closes RHEL-111150 Approved-by: Antoine Tenart <[email protected]> Approved-by: Aaron Conole <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Augusto Caringi <[email protected]>
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)