CVE-2020-10737

oddjob: race condition in oddjob_selinux_mkdir function in mkhomedir.c can lead to symlink attack

Published May 27, 2020 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
A race condition was found in the mkhomedir tool shipped with the oddjob package in versions before 0.34.5 and 0.34.6 wherein, during the home creation, mkhomedir copies the /etc/skel directory into the newly created home and changes its ownership to the home's user without properly checking the homedir path. This flaw allows an attacker to leverage this issue by creating a symlink point to a target folder, which then has its ownership transferred to the new home directory's unprivileged user.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-3161 A race condition was found in the mkhomedir tool shipped with the oddjob package in versions before 0.34.5 and 0.34.6 wherein, during the home creation, mkhomedir copies the /etc/skel directory into the newly created home and changes its ownership to the home's user without properly checking the homedir path. This flaw allows an attacker to leverage this issue by creating a symlink point to a target folder, which then has its ownership transferred to the new home directory's unprivileged user.
Ubuntu USN Ubuntu USN USN-5169-1 oddjob vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 4, 2024, 11:14 AM
Reserved
Mar 20, 2020, 12:00 AM
Status
Modified
Published
May 27, 2020, 1:15 AM
Modified
Jun 17, 2026, 2:48 AM
Severity
Moderate
Public date
May 7, 2020, 12:00 AM