ALAS-2024-2526

Related Vulnerabilities: CVE-2024-2004   CVE-2024-2398  

When a protocol selection parameter option disables all protocols without adding any then the default set of protocols would remain in the allowed set due to an error in the logic for removing protocols. The below command would perform a request to curl.se with a plaintext protocol which has been explicitly disabled. curl --proto -all,-http http://curl.se The flaw is only present if the set of selected protocols disables the entire set of available protocols, in itself a command with no practical use and therefore unlikely to be encountered in real situations. The curl security team has thus assessed this to be low severity bug. (CVE-2024-2004) When an application tells libcurl it wants to allow HTTP/2 server push, and the amount of received headers for the push surpasses the maximum allowed limit (1000), libcurl aborts the server push. When aborting, libcurl inadvertently does not free all the previously allocated headers and instead leaks the memory. Further, this error condition fails silently and is therefore not easily detected by an application. (CVE-2024-2398)

ALAS-2024-2526


Amazon Linux 2 Security Advisory: ALAS-2024-2526
Advisory Release Date: 2024-04-24 22:15 Pacific
Advisory Updated Date: 2024-04-24 22:15 Pacific
Severity: Medium

Issue Overview:

When a protocol selection parameter option disables all protocols without adding any then the default set of protocols would remain in the allowed set due to an error in the logic for removing protocols. The below command would perform a request to curl.se with a plaintext protocol which has been explicitly disabled. curl --proto -all,-http http://curl.se The flaw is only present if the set of selected protocols disables the entire set of available protocols, in itself a command with no practical use and therefore unlikely to be encountered in real situations. The curl security team has thus assessed this to be low severity bug. (CVE-2024-2004)

When an application tells libcurl it wants to allow HTTP/2 server push, and the amount of received headers for the push surpasses the maximum allowed limit (1000), libcurl aborts the server push. When aborting, libcurl inadvertently does not free all the previously allocated headers and instead leaks the memory. Further, this error condition fails silently and is therefore not easily detected by an application. (CVE-2024-2398)


Affected Packages:

curl


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update curl to update your system.

New Packages:
aarch64:
    curl-8.3.0-1.amzn2.0.7.aarch64
    libcurl-8.3.0-1.amzn2.0.7.aarch64
    libcurl-devel-8.3.0-1.amzn2.0.7.aarch64
    curl-debuginfo-8.3.0-1.amzn2.0.7.aarch64

i686:
    curl-8.3.0-1.amzn2.0.7.i686
    libcurl-8.3.0-1.amzn2.0.7.i686
    libcurl-devel-8.3.0-1.amzn2.0.7.i686
    curl-debuginfo-8.3.0-1.amzn2.0.7.i686

src:
    curl-8.3.0-1.amzn2.0.7.src

x86_64:
    curl-8.3.0-1.amzn2.0.7.x86_64
    libcurl-8.3.0-1.amzn2.0.7.x86_64
    libcurl-devel-8.3.0-1.amzn2.0.7.x86_64
    curl-debuginfo-8.3.0-1.amzn2.0.7.x86_64