-
Bug
-
Resolution: Unresolved
-
Critical
-
rhel-10.0.beta
-
rpm-4.19.1.1-3.el10
-
None
-
Moderate
-
rhel-sst-cs-software-management
-
ssg_core_services
-
24
-
26
-
None
-
False
-
-
No
-
None
-
-
Pass
-
Automated
-
Release Note Not Required
-
-
All
-
None
Findings from https://issues.redhat.com/browse/RHEL-22390:
Error: UNINIT (CWE-457):
rpm-4.16.1.3/lib/rpmts.c:478: var_decl: Declaring variable "kd" without initializer.
rpm-4.16.1.3/lib/rpmts.c:537: uninit_use_in_call: Using uninitialized value "kd.signid" when calling "finiPgpData".
rpm-4.16.1.3/lib/rpmts.c:537: uninit_use_in_call: Using uninitialized value "kd.timestr" when calling "finiPgpData".
rpm-4.16.1.3/lib/rpmts.c:537: uninit_use_in_call: Using uninitialized value "kd.verid" when calling "finiPgpData".
- 535| headerFree(h);
- 536| pgpFreeDig(dig);
- 537|-> finiPgpData(&kd);
- 538| free(enc);
- 539| free(d);
In the unlikely case that base64 encoding of a pubkey data fails, the code will try to free uninitialized pointers.
- clones
-
RHEL-22605 Potential use of unitialized struct members in key import
- Closed
- links to
-
RHBA-2024:136294 rpm bug fix and enhancement update