CVE-2021-41990
Description
An integer overflow in strongSwan's gmp plugin allows remote denial-of-service via a crafted RSASSA-PSS certificate signature.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An integer overflow in strongSwan's gmp plugin allows remote denial-of-service via a crafted RSASSA-PSS certificate signature.
Vulnerability
An integer overflow vulnerability exists in the gmp plugin of strongSwan versions from 5.6.1 up to (but not including) 5.9.4 [1]. The bug occurs when processing RSASSA-PSS signatures in X.509 certificates. The plugin parses the salt length from the signature's AlgorithmIdentifier parameters into a size_t variable used in a chunk_t length field. The formula em.len < (hash.len + salt.len + 2) (from RFC 8017) is used to verify the signature structure; if a very large salt length (e.g., 2^64-1) is provided, an integer overflow bypasses this check [1]. The overflowed salt length is later used in a memcpy() call, causing a segmentation fault [1].
Exploitation
An attacker can trigger the vulnerability by sending a crafted certificate with an RSASSA-PSS signature containing an extremely large salt length [1]. The certificate does not need to be trusted by the victim but must be signed by a private key the attacker controls (so that the signature padding check passes) [1]. Because both the x509 and openssl plugins validate self-signed certificates, an attacker acting as an IKE initiator can send an unrelated self-signed CA certificate with the malicious signature to trigger the crash in the peer's strongSwan daemon [1]. No authentication or special network position beyond the ability to initiate an IKE connection is required [1].
Impact
Successful exploitation causes a denial-of-service (DoS) via segmentation fault in the strongSwan daemon [1][2]. Remote code execution is not possible due to the nature of the overflow [1]. The crash disrupts VPN services and may require restarting the daemon or host [1].
Mitigation
StrongSwan version 5.9.4, released on 2021-10-18, fixes the integer overflow by adding proper bounds checking [1][2]. Users should upgrade to 5.9.4 or later [2]. If upgrading is not immediately possible, disabling the gmp plugin (or unloading it via load_modular configuration) can prevent exploitation [1]. The vulnerability is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog as of this writing.
References
[1] strongSwan blog - CVE-2021-41990 [2] strongSwan release 5.9.4
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
21- strongSwan/strongSwandescription
- Range: <5.9.4
- osv-coords19 versionspkg:rpm/opensuse/strongswan&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/strongswan&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/strongswan&distro=openSUSE%20Tumbleweedpkg:rpm/suse/strongswan&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP2pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP2pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP3
< 5.8.2-lp152.2.18.1+ 18 more
- (no CPE)range: < 5.8.2-lp152.2.18.1
- (no CPE)range: < 5.8.2-11.21.1
- (no CPE)range: < 5.9.4-1.1
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-11.21.1
- (no CPE)range: < 5.8.2-11.21.1
- (no CPE)range: < 5.8.2-11.21.1
- (no CPE)range: < 5.8.2-11.21.1
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-4.14.2
- (no CPE)range: < 5.8.2-11.21.1
- (no CPE)range: < 5.8.2-11.21.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
7- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FJSATD2R2XHTG4P63GCMQ2N7EWKMME5/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQSQ3BEC22NF4NCDZVCT4P3Q2ZIAJXGJ/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y3TQ32JLJOBJDB2EJKSX2PBPB5NFG2D4/mitrevendor-advisoryx_refsource_FEDORA
- www.debian.org/security/2021/dsa-4989mitrevendor-advisoryx_refsource_DEBIAN
- cert-portal.siemens.com/productcert/pdf/ssa-539476.pdfmitrex_refsource_CONFIRM
- github.com/strongswan/strongswan/releases/tag/5.9.4mitrex_refsource_MISC
- www.strongswan.org/blog/2021/10/18/strongswan-vulnerability-%28cve-2021-41990%29.htmlmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.