Bug 2209494 (CVE-2023-31124)

Summary: CVE-2023-31124 c-ares: AutoTools does not set CARES_RANDOM_FILE during cross compilation
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: atikhono, hhorak, jorton, nodejs-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in c-ares. This issue occurs when cross-compiling c-ares and using the autotools build system, CARES_RANDOM_FILE will not be set, as seen when cross-compiling aarch64 android. As a result, it will downgrade to rand(), which could allow an attacker to utilize the lack of entropy by not using a CSPRNG.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2209539, 2209540, 2209541, 2209543, 2209544, 2209545, 2209546, 2209547, 2209542, 2209560, 2209562, 2209563, 2209564, 2209565, 2209566, 2211050, 2211051, 2211052, 2211053, 2211054, 2212438, 2212439, 2214631    
Bug Blocks: 2209110    

Description Sandipan Roy 2023-05-24 03:43:06 UTC
When cross-compiling c-ares and using the autotools build system, CARES_RANDOM_FILE will not be set, as seen when cross compiling aarch64 android. This will downgrade to using rand() as a fallback which could allow an attacker to take advantage of the lack of entropy by not using a CSPRNG.

CVE-2023-31124. Low. AutoTools does not set CARES_RANDOM_FILE during cross compilation (https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4)

Comment 1 Sandipan Roy 2023-05-24 04:23:28 UTC
Created c-ares tracking bugs for this issue:

Affects: fedora-all [bug 2209542]


Created mingw-c-ares tracking bugs for this issue:

Affects: fedora-all [bug 2209543]


Created nodejs tracking bugs for this issue:

Affects: epel-7 [bug 2209539]


Created nodejs16 tracking bugs for this issue:

Affects: fedora-all [bug 2209544]


Created nodejs18 tracking bugs for this issue:

Affects: fedora-all [bug 2209545]


Created nodejs20 tracking bugs for this issue:

Affects: fedora-all [bug 2209546]


Created nodejs:13/nodejs tracking bugs for this issue:

Affects: epel-8 [bug 2209540]


Created nodejs:16-epel/nodejs tracking bugs for this issue:

Affects: epel-8 [bug 2209541]


Created nodejs:16/c-ares tracking bugs for this issue:

Affects: fedora-all [bug 2209547]

Comment 4 errata-xmlrpc 2023-06-14 07:27:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:3577 https://access.redhat.com/errata/RHSA-2023:3577

Comment 5 errata-xmlrpc 2023-06-14 08:39:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:3586 https://access.redhat.com/errata/RHSA-2023:3586

Comment 7 errata-xmlrpc 2023-07-12 08:12:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:4036 https://access.redhat.com/errata/RHSA-2023:4036

Comment 8 errata-xmlrpc 2023-07-12 08:24:17 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2023:4039 https://access.redhat.com/errata/RHSA-2023:4039

Comment 9 errata-xmlrpc 2023-07-12 08:25:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:4035 https://access.redhat.com/errata/RHSA-2023:4035

Comment 10 errata-xmlrpc 2023-07-12 08:25:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:4034 https://access.redhat.com/errata/RHSA-2023:4034

Comment 11 errata-xmlrpc 2023-07-12 08:26:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:4033 https://access.redhat.com/errata/RHSA-2023:4033

Comment 12 errata-xmlrpc 2023-11-07 08:22:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:6635 https://access.redhat.com/errata/RHSA-2023:6635