Bug 1803608 (CVE-2020-1742)

Summary: CVE-2020-1742 nmstate/kubernetes-nmstate-handler: /etc/passwd is given incorrect privileges
Product: [Other] Security Response Reporter: Joshua Padman <jpadman>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cnv-qe-bugs, fdeutsch, mcooper, phoracek, snikolov
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: kubernetes-nmstate-handler-container-v2.3.0-30 Doc Type: If docs needed, set a value
Doc Text:
An insecure modification vulnerability flaw was found in containers using nmstate/kubernetes-nmstate-handler. An attacker with access to the container could use this flaw to modify /etc/passwd and escalate their privileges.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-28 02:03:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1803609    
Bug Blocks: 1776664    

Description Joshua Padman 2020-02-17 02:42:03 UTC
It has been found that multiple containers modify the permissions of /etc/passwd to make them modifiable by users other than root. An attacker with access to the running container can exploit this to modify /etc/passwd to add a user and escalate their privileges. This CVE is specific to the nmstate/kubernetes-nmstate-handler container.

Original bug:

Comment 1 Joshua Padman 2020-02-17 02:42:07 UTC

Name: Joseph LaMagna-Reiter (SPR Inc.)

Comment 2 Joshua Padman 2020-02-17 02:42:09 UTC

By default this vulnerability is not exploitable in un-privilieged containers running on OpenShift Container Platform. This is because the system call SETUID and SETGID is blocked by the default seccomp policy.

Comment 11 Mark Cooper 2021-10-28 02:03:18 UTC
Used fixcvenames on https://errata.devel.redhat.com/advisory/48747 and fixed the affects

Closing the old flaw bug