A flaw was found in shadow-utils. When asking for a new password, shadow-utils asks the password twice. If the password fails on the second attempt, shadow-utils fails in cleaning the buffer used to store the first entry. This may allow an attacker with enough access to retrieve the password from the memory.
https://bugzilla.redhat.com/show_bug.cgi?id=2215945
https://access.redhat.com/security/cve/CVE-2023-4641
https://access.redhat.com/errata/RHSA-2024:2577
https://access.redhat.com/errata/RHSA-2024:0417