mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a locking bug in the IPPROTO_SCTP level SCTP_EVENT socket option.
This occurs when call setsockopt() with invalid parameters. This issue was found by syzkaller. MFC after: 3 days
This commit is contained in:
parent
885bfcda11
commit
6cf360772f
1 changed files with 4 additions and 0 deletions
|
|
@ -6115,6 +6115,10 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize,
|
|||
SCTP_INP_RUNLOCK(inp);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (stcb) {
|
||||
SCTP_TCB_UNLOCK(stcb);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue