mirror of
https://github.com/opnsense/src.git
synced 2026-03-03 22:01:37 -05:00
ipfilter: Fix ip_nat memory leak and use-after-free
Unfortunately the wrong elemet is freed, also resulting in use-after-free. PR: 255859 Submitted by: lylgood@foxmail.com Reported by: lylgood@foxmail.com MFC after: 3 days
This commit is contained in:
parent
d72cd27518
commit
323a4e2c4e
1 changed files with 1 additions and 1 deletions
|
|
@ -6245,7 +6245,7 @@ ipf_nat_rule_deref(softc, inp)
|
|||
|
||||
if (n->in_tqehead[0] != NULL) {
|
||||
if (ipf_deletetimeoutqueue(n->in_tqehead[0]) == 0) {
|
||||
ipf_freetimeoutqueue(softc, n->in_tqehead[1]);
|
||||
ipf_freetimeoutqueue(softc, n->in_tqehead[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue