Bug #1672
closedSuricata Creates RWX Pages
Description
This bug may be due to a shared library that Suricata brings in. During Shmoocon, I talked with Victor about this a little bit. He advised me to send a bug report, even if it's with a shared library.
When using the Emerging Threats rulesets, Suricata will create RWX pages, which cause Suricata to crash on HardenedBSD.
You can reproduce this by:
1) installing HardenedBSD
2) installing suricata: pkg install suricata
3) downloading the Emerging Threats rulesets to /usr/local/etc/suricata/rules directory
4) turning off NOEXEC: sysctl hardening.pax.pageexec.status=0
5) enabling suricata in /etc/rc.conf
6) starting suricata: service suricata start
7) looking at the memory mappings for suricata: (as root) procstat -v `pgrep suricata`
Attached is the output of that procstat command. You'll notice that the rwx pages are per-thread stacks, likely created by the RTLD on behalf of shared objects that request it in the .GNU_STACK section.
Files