An issue was discovered in Suricata 4.1.x before 4.1.4. If the input of the function SSHParseBanner is composed only of a \n character, then the program runs into a heap-based buffer over-read. This occurs because the erroneous search for \r results in an integer underflow.
{
"binaries": [
{
"binary_version": "3.2-2ubuntu3",
"binary_name": "libhtp-0.5.23-1"
},
{
"binary_version": "3.2-2ubuntu3",
"binary_name": "suricata"
},
{
"binary_version": "3.2-2ubuntu3",
"binary_name": "suricata-hyperscan"
},
{
"binary_version": "3.2-2ubuntu3",
"binary_name": "suricata-oinkmaster"
}
]
}