Stack-based buffer overflow in libspf2 - CVE-2021-20314
Published: August 17, 2021
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing SPF macros in libspf2. A remote attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Fedora
Ubuntu
libmail-spf-xs-perl (Ubuntu package)
libspf2-2 (Ubuntu package)
libspf2-dev (Ubuntu package)
spfquery (Ubuntu package)
libspf2 (Debian package)
mail-filter/libspf2
libspf2
How to mitigate CVE-2021-20314
libspf2-2 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.10-7+deb9u2build0.20.04.1
libspf2-dev (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.10-7+deb9u2build0.20.04.1
spfquery (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.10-7+deb9u2build0.20.04.1
libspf2 (Debian package) - update to 1.2.10-7.1~deb10u1
mail-filter/libspf2 - update to 1.2.11
libspf2 - addressed in versions 1.2.11-1.20210922git4915c308.el7, 1.2.11-1.20210922git4915c308.el8, 1.2.11-1.20210922git4915c308.fc33, 1.2.11-1.20210922git4915c308.fc34, 1.2.11-1.20210922git4915c308.fc35