Amazon Linux 2 : openssl (ALAS-2026-4191)

high Nessus Plugin ID 394012

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of openssl installed on the remote host is prior to 1.0.2k-24. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2026-4191 advisory.

Issue summary: When an application passes a stack toPEM_X509_INFO_read_bio_ex() to add entries to, and reading fails,OpenSSL frees every entry in the stack, both the old ones and any newones, but leaves them in the stack.

Impact summary: An application that passes an existing stack toPEM_X509_INFO_read_bio_ex() and keeps using it after a failed read mayuse memory that was already freed. This can cause a crash or, inprinciple, memory corruption. Malformed PEM data can make the read fail,but only applications that pass an existing stack are affected, andOpenSSL itself does not do this.

CWE: CWE-416: Use After Free

Description: PEM_X509_INFO_read_bio_ex() reads certificates, CRLs andprivate keys from PEM data and adds them to a stack of X509_INFOstructures. If the application passes a stack that is not NULL, thefunction adds the new entries to it and must leave the entries that arealready there unchanged.

If reading fails, the function frees every entry in the stack. Thisincludes the entries that were there before the call, and the entriesadded by the call. It does not remove these entries from the stack, sothe stack keeps pointers to freed memory. The failure can happen at anypoint, even before any entry was added.
A PEM item with invalid contentis enough. This also happens if the stack was empty: entries addedbefore the failure are freed but stay in the stack.

An application that then reads or frees the stack will use memory thatwas already freed. This can crash the application or, in principle,corrupt memory.

Only applications that pass a stack that is not NULL are affected.OpenSSL itself never does this. Its own callers, including the code thatTLS uses to load CA certificates, always pass NULL. When the stack isNULL, the function frees only the entries that it created itself, whichis safe. We expect that very few applications pass an existing stack. Anattacker can make the read fail with malformed PEM data, but cannot makean application pass an existing stack.

The same problem affects PEM_X509_INFO_read_bio(), PEM_X509_INFO_read()and PEM_X509_INFO_read_ex(), which use the same code. OpenSSL 1.1.1 and1.0.2 have only the first two of these functions.

FIPS impact: noThe affected code is outside the FIPS module boundary. (CVE-2026-107493)

CMS_encrypt() and CMS_encrypt_ex() encrypt a message to one ormore recipient certificates and, for an EC recipient, generate an ephemeralkey in the recipient's group. If the certificate declares a group order of 1,random scalar generation can only produce zero. The key generation routinethen retries without limit while waiting for a nonzero private scalar, so thecall never returns. (CVE-2026-107496)

Verifying a maliciously crafted CMS or PKCS#7 SignedData message with CRL checking enabled may consume excessive CPU time, growing with the square of the message size. (CVE-2026-121482)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update openssl' or or 'yum update --advisory ALAS2-2026-4191' to update your system.

See Also

https://alas.aws.amazon.com//AL2/ALAS2-2026-4191.html

https://alas.aws.amazon.com/faqs.html

https://explore.alas.aws.amazon.com/CVE-2026-107493.html

https://explore.alas.aws.amazon.com/CVE-2026-107496.html

https://explore.alas.aws.amazon.com/CVE-2026-121482.html

Plugin Details

Severity: High

ID: 394012

File Name: al2_ALAS-2026-4191.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 12/4/2026

Updated: 12/4/2026

Supported Sensors: Nessus Agent, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 92.53

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2026-121482

CVSS v3

Risk Factor: High

Base Score: 7.7

Temporal Score: 6.7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: CVE-2026-107493

Vulnerability Information

CPE: cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:openssl-debuginfo, p-cpe:/a:amazon:linux:openssl-devel, p-cpe:/a:amazon:linux:openssl-libs, p-cpe:/a:amazon:linux:openssl-perl, p-cpe:/a:amazon:linux:openssl-static, p-cpe:/a:amazon:linux:openssl

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 12/4/2026

Vulnerability Publication Date: 11/10/2026

Reference Information

CVE: CVE-2026-107493, CVE-2026-107496, CVE-2026-121482

IAVA: 2026-A-1357