mirror of
https://github.com/opnsense/src.git
synced 2026-05-22 01:54:31 -04: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
(cherry picked from commit 323a4e2c4e)
This commit is contained in:
parent
19cfc8e655
commit
2fb3779764
1 changed files with 1 additions and 1 deletions
|
|
@ -6243,7 +6243,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