Skip to content

CVE-2023-4641 Shadow-utils: possible password leak during passwd(1) change

MediumCVSS 5.5 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

19 packages: 12 fixed.

PackageAffectedFixed inStatus
debian/shadow(Debian 12) < 1:4.13+dfsg1-1+deb12u1; = 1:4.13+dfsg1-1 1:4.13+dfsg1-1+deb12u1 Fixed
debian/shadow(Debian 13) < 1:4.13+dfsg1-2 1:4.13+dfsg1-2 Fixed
debian/shadow(Debian 14) < 1:4.13+dfsg1-2 1:4.13+dfsg1-2 Fixed
redhat enterprise linux < 2:4.6-19.el8; < 2:4.9-8.el9; = 6; = 7 +2 more 2:4.6-19.el8, 2:4.9-8.el9 Fixed
redhat rhel eus < 2:4.6-17.el8_6; < 2:4.6-17.el8_8.2 2:4.6-17.el8_6, 2:4.6-17.el8_8.2 Fixed
shadow-maint shadow-utils < 4.14.0 4.14.0 Fixed
shadow-utils < 4.14.0-rc1 4.14.0-rc1 Fixed
ubuntu/shadow(Ubuntu 20.04) < 1:4.8.1-1ubuntu5.20.04.5; = 1:4.5-1.1ubuntu4; = 1:4.8-1ubuntu1; = 1:4.8.1-1ubuntu1 +9 more 1:4.8.1-1ubuntu5.20.04.5 Fixed
ubuntu/shadow(Ubuntu 22.04) < 1:4.8.1-2ubuntu2.2; = 1:4.8.1-1ubuntu9; = 1:4.8.1-1ubuntu10; = 1:4.8.1-2ubuntu1 +2 more 1:4.8.1-2ubuntu2.2 Fixed
ubuntu/shadow(Ubuntu Pro 14.04) < 1:4.1.5.1-1ubuntu9.5+esm4; = 1:4.1.5.1-1ubuntu6; = 1:4.1.5.1-1ubuntu7; = 1:4.1.5.1-1ubuntu8 +8 more 1:4.1.5.1-1ubuntu9.5+esm4 Fixed
ubuntu/shadow(Ubuntu Pro 16.04) < 1:4.2-3.1ubuntu5.5+esm4; = 1:4.1.5.1-1.1ubuntu7; = 1:4.2-3.1ubuntu1; = 1:4.2-3.1ubuntu2 +9 more 1:4.2-3.1ubuntu5.5+esm4 Fixed
ubuntu/shadow(Ubuntu Pro 18.04) < 1:4.5-1ubuntu2.5+esm1; = 1:4.2-3.2ubuntu4; = 1:4.5-1ubuntu1; = 1:4.5-1ubuntu2 +4 more 1:4.5-1ubuntu2.5+esm1 Fixed
redhat codeready linux builder = 8.0; = 9.0 No fix listed Versions listed
redhat codeready linux builder for arm64 = 8.0_aarch64; = 9.0_aarch64 No fix listed Versions listed
redhat codeready linux builder for ibm z systems = 8.0_s390x; = 9.0_s390x No fix listed Versions listed
redhat codeready linux builder for power little endian = 8.0_ppc64le; = 9.0_ppc64le No fix listed Versions listed
redhat enterprise linux for arm 64 = 8.0; = 9.0 No fix listed Versions listed
redhat enterprise linux for ibm z systems = 8.0_s390x; = 9.0_s390x No fix listed Versions listed
redhat enterprise linux for power little endian = 8.0_ppc64le; = 9.0_ppc64le No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/shadow(Debian:12) < 1:4.13+dfsg1-1+deb12u1 1:4.13+dfsg1-1+deb12u1
debian/shadow(Debian:12) = 1:4.13+dfsg1-1 No fix listed
debian/shadow(Debian:13) < 1:4.13+dfsg1-2 1:4.13+dfsg1-2
debian/shadow(Debian:14) < 1:4.13+dfsg1-2 1:4.13+dfsg1-2
shadow-utils < 4.14.0-rc1 4.14.0-rc1
redhat enterprise linux < 2:4.6-19.el8 2:4.6-19.el8
redhat rhel eus < 2:4.6-17.el8_6 2:4.6-17.el8_6
redhat rhel eus < 2:4.6-17.el8_8.2 2:4.6-17.el8_8.2
redhat enterprise linux < 2:4.9-8.el9 2:4.9-8.el9
redhat enterprise linux = 6 No fix listed
redhat enterprise linux = 7 No fix listed
ubuntu/shadow(Ubuntu:22.04) < 1:4.8.1-2ubuntu2.2 1:4.8.1-2ubuntu2.2
shadow-maint shadow-utils < 4.14.0 4.14.0
redhat codeready linux builder = 8.0 No fix listed
redhat codeready linux builder = 9.0 No fix listed
redhat codeready linux builder for arm64 = 8.0_aarch64 No fix listed
redhat codeready linux builder for arm64 = 9.0_aarch64 No fix listed
redhat codeready linux builder for ibm z systems = 8.0_s390x No fix listed
redhat codeready linux builder for ibm z systems = 9.0_s390x No fix listed
redhat codeready linux builder for power little endian = 8.0_ppc64le No fix listed
redhat codeready linux builder for power little endian = 9.0_ppc64le No fix listed
redhat enterprise linux = 8.0 No fix listed
redhat enterprise linux = 9.0 No fix listed
redhat enterprise linux for arm 64 = 8.0 No fix listed
redhat enterprise linux for arm 64 = 9.0 No fix listed
Show 55 more
ProductAffected versionsFixed in
redhat enterprise linux for ibm z systems = 8.0_s390x No fix listed
redhat enterprise linux for ibm z systems = 9.0_s390x No fix listed
redhat enterprise linux for power little endian = 8.0_ppc64le No fix listed
redhat enterprise linux for power little endian = 9.0_ppc64le No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) < 1:4.1.5.1-1ubuntu9.5+esm4 1:4.1.5.1-1ubuntu9.5+esm4
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu6 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu7 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu8 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9.1 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9.2 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9.4 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9.5 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9.5+esm1 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9.5+esm2 No fix listed
ubuntu/shadow(Ubuntu:Pro:14.04) = 1:4.1.5.1-1ubuntu9.5+esm3 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) < 1:4.2-3.1ubuntu5.5+esm4 1:4.2-3.1ubuntu5.5+esm4
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.1.5.1-1.1ubuntu7 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu1 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu2 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu3 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu4 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu5 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu5.2 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu5.3 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu5.4 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu5.5+esm1 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu5.5+esm2 No fix listed
ubuntu/shadow(Ubuntu:Pro:16.04) = 1:4.2-3.1ubuntu5.5+esm3 No fix listed
ubuntu/shadow(Ubuntu:Pro:18.04) < 1:4.5-1ubuntu2.5+esm1 1:4.5-1ubuntu2.5+esm1
ubuntu/shadow(Ubuntu:Pro:18.04) = 1:4.2-3.2ubuntu4 No fix listed
ubuntu/shadow(Ubuntu:Pro:18.04) = 1:4.5-1ubuntu1 No fix listed
ubuntu/shadow(Ubuntu:Pro:18.04) = 1:4.5-1ubuntu2 No fix listed
ubuntu/shadow(Ubuntu:Pro:18.04) = 1:4.5-1ubuntu2.2 No fix listed
ubuntu/shadow(Ubuntu:Pro:18.04) = 1:4.5-1ubuntu2.3 No fix listed
ubuntu/shadow(Ubuntu:Pro:18.04) = 1:4.5-1ubuntu2.4 No fix listed
ubuntu/shadow(Ubuntu:Pro:18.04) = 1:4.5-1ubuntu2.5 No fix listed
ubuntu/shadow(Ubuntu:20.04) < 1:4.8.1-1ubuntu5.20.04.5 1:4.8.1-1ubuntu5.20.04.5
ubuntu/shadow(Ubuntu:20.04) = 1:4.5-1.1ubuntu4 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8-1ubuntu1 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu1 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu2 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu3 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu4 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu5 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu5.20.04 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu5.20.04.1 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu5.20.04.2 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu5.20.04.3 No fix listed
ubuntu/shadow(Ubuntu:20.04) = 1:4.8.1-1ubuntu5.20.04.4 No fix listed
ubuntu/shadow(Ubuntu:22.04) = 1:4.8.1-1ubuntu9 No fix listed
ubuntu/shadow(Ubuntu:22.04) = 1:4.8.1-1ubuntu10 No fix listed
ubuntu/shadow(Ubuntu:22.04) = 1:4.8.1-2ubuntu1 No fix listed
ubuntu/shadow(Ubuntu:22.04) = 1:4.8.1-2ubuntu2 No fix listed
ubuntu/shadow(Ubuntu:22.04) = 1:4.8.1-2ubuntu2.1 No fix listed

References