Actions
Bug #5188
closedSSL : over allocation for certificates
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport, Needs backport to 5.0, Needs backport to 6.0
Description
Found by Coverity
Untrusted allocation size (TAINTED_SCALAR)
in curr_connp->trec = SCMalloc(curr_connp->trec_len);
where trec_len is a u24 read from the network, so suricata can call malloc with up to 16Mbytes even if there is no data yet to fill them...
Updated by Philippe Antoine almost 3 years ago
Luckily for Suricata, OSes seem to prevent this malloc from being really reserved by the system until it is really used...
Updated by Philippe Antoine almost 3 years ago
- Status changed from New to In Review
Updated by Shivani Bhardwaj almost 3 years ago
- Copied to Bug #5192: SSL : over allocation for certificates added
Updated by Shivani Bhardwaj almost 3 years ago
- Copied to Bug #5193: SSL : over allocation for certificates added
Updated by Victor Julien over 2 years ago
- Status changed from In Review to Closed
https://github.com/OISF/suricata/pull/7139
Coverity scan rerun confirms the fix.
Actions