Skip to content

Commit ff30a95

Browse files
committed
ipv6: mcast: Delay put pmc->idev in mld_del_delrec()
jira LE-4297 cve CVE-2025-38550 Rebuild_History Non-Buildable kernel-6.12.0-55.34.1.el10_0 commit-author Yue Haibing <[email protected]> commit ae3264a 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]> (cherry picked from commit ae3264a) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 0bb3e95 commit ff30a95

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
@@ -804,8 +804,8 @@ static void mld_del_delrec(struct inet6_dev *idev, struct ifmcaddr6 *im)
804804
} else {
805805
im->mca_crcount = idev->mc_qrv;
806806
}
807-
in6_dev_put(pmc->idev);
808807
ip6_mc_clear_src(pmc);
808+
in6_dev_put(pmc->idev);
809809
kfree_rcu(pmc, rcu);
810810
}
811811
}

0 commit comments

Comments
 (0)