Ubuntu update for libspf2



Published: 2024-01-15
Risk High
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2021-20314
CVE-2021-33912
CVE-2021-33913
CWE-ID CWE-121
CWE-122
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Ubuntu
Operating systems & Components / Operating system

spfquery (Ubuntu package)
Operating systems & Components / Operating system package or component

libspf2-dev (Ubuntu package)
Operating systems & Components / Operating system package or component

libspf2-2 (Ubuntu package)
Operating systems & Components / Operating system package or component

libmail-spf-xs-perl (Ubuntu package)
Operating systems & Components / Operating system package or component

Vendor Canonical Ltd.

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Stack-based buffer overflow

EUVDB-ID: #VU55918

Risk: High

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-20314

CWE-ID: CWE-121 - Stack-based buffer overflow

Exploit availability: No

Description

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.

Mitigation

Update the affected package libspf2 to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 20.04

spfquery (Ubuntu package): before Ubuntu Pro

libspf2-dev (Ubuntu package): before Ubuntu Pro

libspf2-2 (Ubuntu package): before Ubuntu Pro

libmail-spf-xs-perl (Ubuntu package): before Ubuntu Pro

External links

http://ubuntu.com/security/notices/USN-6584-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Heap-based buffer overflow

EUVDB-ID: #VU85406

Risk: High

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-33912

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the SPF_record_expand_data() function in spf_expand.c. A remote attacker with control over a DNS server can create a specially crafted SPF DNS record, force the library to read data from the malicious DNS server, trigger a four-byte heap-based buffer overflow and execute arbitrary code on the system.

Mitigation

Update the affected package libspf2 to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 20.04

spfquery (Ubuntu package): before Ubuntu Pro

libspf2-dev (Ubuntu package): before Ubuntu Pro

libspf2-2 (Ubuntu package): before Ubuntu Pro

libmail-spf-xs-perl (Ubuntu package): before Ubuntu Pro

External links

http://ubuntu.com/security/notices/USN-6584-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Heap-based buffer overflow

EUVDB-ID: #VU66695

Risk: High

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-33913

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the spf_expand.c when parsing SPF DNS records. A remote attacker can send an email to the affected server, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected package libspf2 to the latest version.

Vulnerable software versions

Ubuntu: 16.04 - 20.04

spfquery (Ubuntu package): before Ubuntu Pro

libspf2-dev (Ubuntu package): before Ubuntu Pro

libspf2-2 (Ubuntu package): before Ubuntu Pro

libmail-spf-xs-perl (Ubuntu package): before Ubuntu Pro

External links

http://ubuntu.com/security/notices/USN-6584-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###