CVE-2016-6299: Critical severity red hat fedora vulnerability

Published Sep 13, 2016
·
Updated

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.

The vulnerable code in scm.py is:

ts = rpm.ts() rpmspec = ts.parseSpec(self.spec) # the spec file is parsed as root self.name = rpm.expandMacro("%{name}")

Other sources

The scm plug-in in mock might allow attackers to bypass the intended chroot protection mechanism and gain root privileges via a crafted spec file.

MITRE

Affected Software

4 affected components
Fedoraproject Fedora=23
Fedoraproject Fedora=24
Fedoraproject Fedora=25
Mock Project Scm Plugin Mock

Event History

Sep 13, 2016
Data Sourced
via Red Hat·09:15 AM
DescriptionSeverityAffected Software
Apr 14, 2017
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2016-6299?

CVE-2016-6299 is considered a high-severity vulnerability due to potential privilege escalation.

2

How do I fix CVE-2016-6299?

The recommended fix for CVE-2016-6299 is to update the mock package to a version where the vulnerability has been patched.

3

Who is affected by CVE-2016-6299?

CVE-2016-6299 affects users of Fedora versions 23, 24, and 25 that utilize the mock's scm plugin.

4

What can an attacker do with CVE-2016-6299?

An attacker can exploit CVE-2016-6299 to elevate privileges and escape the chroot environment when starting a build with a crafted spec file.

5

What software is involved in CVE-2016-6299?

CVE-2016-6299 involves the mock project scm plugin and affects specific versions of the Fedora operating system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203