oss-sec mailing list archives

CVE-2016-6299 mock: privilige escalation via mock-scm


From: Martin Prpic <mprpic () redhat com>
Date: Tue, 13 Sep 2016 13:45:37 +0200

Hi,

It was found that mock's scm plug-in would parse a given spec file with
root priviliges. This could allow an attacker who is able to start a
build of an rpm with a specially crafted spec file within mock's
environment to elevate their priviliges and escape the chroot.

Red Hat bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1375490

Upstream patch:

https://github.com/rpm-software-management/mock/commit/8b02f43beadacf6911200b48d94e39e891a41da9

--
Martin Prpič / Red Hat Product Security


Current thread: