CVE-2017-6507
Medium · 5.9CVSS
5.9
EPSS
1.6%
Published
Mar 24, 2017
CISA due date
—
Cloudanix analysis
Startup scripts can accidentally turn off security restrictions meant to limit what certain programs are allowed to do, leaving systems more open to problems.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Incorrect handling of unknown AppArmor profiles in init scripts, upstart jobs, and systemd unit files removes confinement for processes whose profiles reside outside standard filesystem locations such as /etc/apparmor.d/.
Why it matters to the business
Processes that should run under mandatory access controls may execute without restrictions, increasing the chance of unauthorized actions or container escapes in environments using tools that manage their own profiles; the issue has been public for years with low exploitation probability and no known ransomware use.
How an attack unfolds
An attacker triggers a restart of an affected service via the AppArmor-managed init system; the restart logic unloads any profile not found in typical directories, leaving the target process unconfined and expanding its attack surface for follow-on actions.
How to fix it
Upgrade affected packages to the listed fixed versions: imagemagick on Debian 11/12/13 to 8:6.9.7.4+dfsg-13, on Ubuntu 14.04 LTS to 8:6.7.7.10-6ubuntu3.11, and on Ubuntu 16.04 LTS to 8:6.8.9.9-7ubuntu5.11; verify AppArmor profile loading after upgrade.
How to confirm the fix worked
Confirm package versions match or exceed the fixed releases, then restart the relevant services and inspect AppArmor status to ensure profiles in non-standard directories remain loaded.
Typical attack path
- Identify a service or container runtime that relies on a non-standard AppArmor profile location
- Trigger a restart operation through the system init mechanism
- Confirm the profile is removed due to the flawed handling logic
- Execute actions against the now-unconfined process that were previously blocked
How to detect it
Review system and AppArmor logs around service restart events for unexpected profile unload messages; examine process confinement status before and after restarts on systems running the vulnerable package versions.
What your security team should do
- Apply the specified package upgrades immediately on all affected systems
- Audit any custom AppArmor profile locations used by container or image-processing workloads
- Test service restarts in a lab environment to validate profile persistence post-upgrade
- Monitor for future AppArmor-related packaging updates even on legacy distributions
The record
An issue was discovered in AppArmor before 2.12. Incorrect handling of unknown AppArmor profiles in AppArmor init scripts, upstart jobs, and/or systemd unit files allows an attacker to possibly have increased attack surfaces of processes that were intended to be confined by AppArmor. This is due to the common logic to handle 'restart' operations removing AppArmor profiles that aren't found in the typical filesystem locations, such as /etc/apparmor.d/. Userspace projects that manage their own AppArmor profiles in atypical directories, such as what's done by LXD and Docker, are affected by this flaw in the AppArmor init script logic.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | apparmor | 0 | 2.11.0-3 |
| Debian:12 | apparmor | 0 | 2.11.0-3 |
| Debian:13 | apparmor | 0 | 2.11.0-3 |
| SUSE:Linux Enterprise Desktop 12 SP1 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Server 12 SP1 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Server 12 SP2 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | apparmor | 0 | 2.8.2-54.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | apparmor | 0 | 2.8.2-54.1 |
| Ubuntu:14.04:LTS | apparmor | 0 | 2.10.95-0ubuntu2.6~14.04.1 |
| Ubuntu:16.04:LTS | apparmor | 0 | 2.10.95-0ubuntu2.6 |
Related vulnerabilities
- CVE-2014-1424 apparmor_parser in the apparmor package before 2.8.95~2430-0ubuntu5.1 in Ubuntu 14.04… Also affects apparmor
- CVE-2019-11190 The Linux kernel before 4.8 allows local users to bypass ASLR on setuid programs (such as… Also affects apparmor
- CVE-2026-114658 Grav Login plugin from 3.6.0 before 3.9.13 contains a missing authorization vulnerability… CWE-269
- CVE-2026-53614 util-linux is a random collection of Linux utilities. CWE-269
- CVE-2026-95837 containerd is an open-source container runtime. CWE-269
- CVE-2026-63349 AnyIO is a high level asynchronous concurrency and networking framework that works on top… CWE-269
- CVE-2026-92957 vm2 through 3.11.6 does not normalize `node:`-prefixed builtin specifiers when evaluating… CWE-269
- CVE-2026-92958 vm2 through 3.11.6 contains a builtin-module denylist bypass in NodeVM. CWE-269