Race Condition Affecting oddjob-mkhomedir package, versions <0:0.34.5-3.el8


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL8-ODDJOBMKHOMEDIR-1459786
  • published26 Jul 2021
  • disclosed7 May 2020

Introduced: 7 May 2020

CVE-2020-10737  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade RHEL:8 oddjob-mkhomedir to version 0:0.34.5-3.el8 or higher.
This issue was patched in RHSA-2020:4687.

NVD Description

Note: Versions mentioned in the description apply only to the upstream oddjob-mkhomedir package and not the oddjob-mkhomedir package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

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.

CVSS Scores

version 3.1