CVE-2021-41991

Related Vulnerabilities: CVE-2021-41991  

The in-memory certificate cache in strongSwan before 5.9.4 has a remote integer overflow upon receiving many requests with different certificates to fill the cache and later trigger the replacement of cache entries. The code attempts to select a less-often-used cache entry by means of a random number generator, but this is not done correctly. Remote code execution might be a slight possibility.

Description

The MITRE CVE dictionary describes this issue as:

The in-memory certificate cache in strongSwan before 5.9.4 has a remote integer overflow upon receiving many requests with different certificates to fill the cache and later trigger the replacement of cache entries. The code attempts to select a less-often-used cache entry by means of a random number generator, but this is not done correctly. Remote code execution might be a slight possibility.

Additional Information

  • Bugzilla 2015613: CVE-2021-41991 strongswan: integer overflow when replacing certificates in cache
  • CWE-190->CWE-119: Integer Overflow or Wraparound leads to Improper Restriction of Operations within the Bounds of a Memory Buffer
  • FAQ: Frequently asked questions about CVE-2021-41991