Skip to content

Commit 189d8e6

Browse files
committed
Merge: ipv6: mcast: Delay put pmc->idev in mld_del_delrec()
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-10/-/merge_requests/296 JIRA: https://issues.redhat.com/browse/RHEL-111156 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-111156 Approved-by: Antoine Tenart <[email protected]> Approved-by: Davide Caratti <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Jan Stancek <[email protected]>
2 parents a7fdd38 + f36ebfa commit 189d8e6

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
@@ -807,8 +807,8 @@ static void mld_del_delrec(struct inet6_dev *idev, struct ifmcaddr6 *im)
807807
} else {
808808
im->mca_crcount = idev->mc_qrv;
809809
}
810-
in6_dev_put(pmc->idev);
811810
ip6_mc_clear_src(pmc);
811+
in6_dev_put(pmc->idev);
812812
kfree_rcu(pmc, rcu);
813813
}
814814
}

0 commit comments

Comments
 (0)