-
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/rpmscript.c:274: var_decl: Declaring variable "inpipe" without initializer.
rpm-4.16.1.3/lib/rpmscript.c:398: uninit_use: Using uninitialized value "inpipe[0]".
- 396| fclose(in);
- 397|
- 398|-> if (inpipe[0])
- 399| close(inpipe[0]);
- 400|
inpipe can be uninitialized in the case writing the to-be-executed scriptlet to the disk failed. Closing a random file descriptor could have weird effects of course.
- clones
-
RHEL-22604 Potential use of unitialized variable in scriptlet execution
- Closed
- links to
-
RHBA-2024:136294 rpm bug fix and enhancement update