Shadow-utils: possible password leak during passwd(1) change
Red Hat / Red Hat Enterprise Linux 8、Red Hat Enterprise Linux 8.6 Extended Update Support、Red Hat Enterprise Linux 8.8 Extended Update Support、Red Hat Enterprise Linux 9、Red Hat Enterprise Linux 6、Red Hat Enterprise Linux 7
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.