Time-of-check Time-of-use (TOCTOU) Race Condition in shadow - CVE-2013-4235

 

Time-of-check Time-of-use (TOCTOU) Race Condition in shadow - CVE-2013-4235

Published: January 3, 2022


Vulnerability identifier: #VU59131
CSH Severity: Low
CVSS v4: 5.7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-4235
CWE-ID: CWE-367
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to delete or modify arbitrary files on the system.

The vulnerability exists due to a race condition in shadow-utils when executing usermod/userdel operations. A local user with write access to the directory that is being moved or deleted by the usermod/userdel commands can modify or delete arbitrary files on the system.

Successful exploitation of the vulnerability may allow an attacker to corrupt arbitrary files on the system and perform a denial of service (DoS) attack.


Affected software

shadow
SUSE Linux Enterprise Server 15 SP3
Gentoo Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Desktop 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
openSUSE Leap Micro
SUSE Enterprise Storage
Ubuntu
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
Basesystem Module
openSUSE Leap
openEuler
SmartFabric Manager
RecoverPoint for Virtual Machines
uidmap (Ubuntu package)
passwd (Ubuntu package)
login (Ubuntu package)
shadow
shadow-debugsource
shadow-debuginfo
shadow-help
login_defs
shadow-subid-devel
libsubid5
libsubid-devel
libsubid5-debuginfo
sys-apps/shadow
libsubid4 (Ubuntu package)
cflinuxfs3
Storage Resource Manager
Dell EMC Storage Monitoring and Reporting (SMR)

How to mitigate CVE-2013-4235

Install updates from vendor's website.

shadow - update to 4.11
SmartFabric Manager - update to 1.2.0
RecoverPoint for Virtual Machines - update to 6.0 SP2 P1
uidmap (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.5-1ubuntu2.4, 1:4.8.1-1ubuntu5.20.04.3, 1:4.8.1-2ubuntu2.1, 1:4.11.1+dfsg1-2ubuntu1.1
passwd (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.5-1ubuntu2.4, 1:4.8.1-1ubuntu5.20.04.3, 1:4.8.1-2ubuntu2.1, 1:4.11.1+dfsg1-2ubuntu1.1
login (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.5-1ubuntu2.4, 1:4.8.1-1ubuntu5.20.04.3, 1:4.8.1-2ubuntu2.1, 1:4.11.1+dfsg1-2ubuntu1.1
shadow - addressed in versions 4.2.1-36.12.1, 4.2.1-36.15.1, 4.8.1-150300.4.15.1, 4.8.1-150300.4.18.1, 4.8.1-150400.3.9.1, 4.8.1-150400.3.12.1, 4.8.1-150400.10.18.1, 4.8.1-150400.10.21.1, 4.8.1-150500.3.6.1, 4.8.1-150500.3.9.1, 4.8.1-150600.17.3.1, 4.8.1-150600.17.6.1, 4.17.2-150600.17.18.1
shadow-debugsource - addressed in versions 4.2.1-36.12.1, 4.2.1-36.15.1, 4.8.1-150300.4.15.1, 4.8.1-150300.4.18.1, 4.8.1-150400.3.9.1, 4.8.1-150400.3.12.1, 4.8.1-150400.10.18.1, 4.8.1-150400.10.21.1, 4.8.1-150500.3.6.1, 4.8.1-150500.3.9.1, 4.8.1-150600.17.3.1, 4.8.1-150600.17.6.1, 4.17.2-150600.17.18.1
shadow-debuginfo - addressed in versions 4.2.1-36.12.1, 4.2.1-36.15.1, 4.8.1-150300.4.15.1, 4.8.1-150300.4.18.1, 4.8.1-150400.3.9.1, 4.8.1-150400.3.12.1, 4.8.1-150400.10.18.1, 4.8.1-150400.10.21.1, 4.8.1-150500.3.6.1, 4.8.1-150500.3.9.1, 4.8.1-150600.17.3.1, 4.8.1-150600.17.6.1, 4.17.2-150600.17.18.1
shadow-help - addressed in versions 4.8.1-9, 4.8.1-10, 4.9-12, 4.9-14
shadow-debuginfo - addressed in versions 4.8.1-9, 4.8.1-10, 4.9-12, 4.9-14
shadow-debugsource - addressed in versions 4.8.1-9, 4.8.1-10, 4.9-12, 4.9-14
shadow - addressed in versions 4.8.1-9, 4.8.1-10, 4.9-12, 4.9-14
login_defs - addressed in versions 4.8.1-150300.4.15.1, 4.8.1-150300.4.18.1, 4.8.1-150400.3.9.1, 4.8.1-150400.3.12.1, 4.8.1-150400.10.18.1, 4.8.1-150400.10.21.1, 4.8.1-150500.3.6.1, 4.8.1-150500.3.9.1, 4.8.1-150600.17.3.1, 4.8.1-150600.17.6.1, 4.17.2-150600.17.18.1
shadow-subid-devel - addressed in versions 4.9-12, 4.9-14
libsubid5 - update to 4.17.2-150600.17.18.1
libsubid-devel - update to 4.17.2-150600.17.18.1
libsubid5-debuginfo - update to 4.17.2-150600.17.18.1
cflinuxfs3 - update to 0.341.0
Dell EMC Storage Monitoring and Reporting (SMR) - update to 5.0.2.0
Storage Resource Manager - update to 5.0.2.0
sys-apps/shadow - update to 4.12.2
libsubid4 (Ubuntu package) - update to 1:4.11.1+dfsg1-2ubuntu1.1

External References

Related Security Bulletins