Project

General

Profile

Actions

Bug #5188

closed

SSL : over allocation for certificates

Added by Philippe Antoine almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
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...


Related issues 2 (0 open2 closed)

Copied to Suricata - Bug #5192: SSL : over allocation for certificatesClosedShivani BhardwajActions
Copied to Suricata - Bug #5193: SSL : over allocation for certificatesClosedJeff LucovskyActions
Actions

Also available in: Atom PDF