/sys/devices/virtual/powercap accessible by default to containers
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
Intel's RAPL (Running Average Power Limit) feature, introduced by the Sandy Bridge microarchitecture, provides software insights into hardware energy consumption. To facilitate this, Intel introduced the powercap framework in Linux kernel 3.13, which reads values via relevant MSRs (model specific registers) and provides unprivileged userspace access via `sysfs`. As RAPL is an interface to access a hardware feature, it is only available when running on bare metal with the module compiled into the kernel. By 2019, it was realized that in some cases unprivileged access to RAPL readings could be exploited as a power-based side-channel against security features including AES-NI (potentially inside a SGX enclave) and KASLR (kernel address space layout randomization). Also known as the [PLATYPUS attack](https://platypusattack.com/), Intel assigned [CVE-2020-8694](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8694) and [CVE-2020-8695](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8695), and AMD assigned [CVE-2020-12912](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-12912). Several mitigations were applied; Intel reduced the sampling resolution via a microcode update, and the Linux kernel [prevents access by non-root users](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=949dd0104c496fa7c14991a23c03c62e44637e71) since 5.10. However, this kernel-based mitigation does not apply to many container-based scenarios: * Unless using user namespaces, root inside a container has the same level of privilege as root outside the container, but with a slightly more narrow view of the system * `sysfs` is mounted inside containers read-only; however only read access is needed to carry out this attack on an unpatched CPU While this is not a direct vulnerability in container runtimes, defense in depth and safe defaults are valuable and preferred, especially as this poses a risk to multi-tenant container environments running directly on affected hardware. This is provided by masking `/sys/devices/virtual/powercap` in the default mount configuration, and adding an additional set of rules to deny it in the default AppArmor profile. While `sysfs` is not the only way to read from the RAPL subsystem, other ways of accessing it require additional capabilities such as `CAP_SYS_RAWIO` which is not available to containers by default, or `perf` paranoia level less than 1, which is a non-default kernel tunable. ## References * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8694 * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8695 * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-12912 * https://platypusattack.com/ * https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=949dd0104c496fa7c14991a23c03c62e44637e71 * https://web.eece.maine.edu/~vweaver/projects/rapl/
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/docker/docker (Go) | 24.0.0 to before 24.0.7 | 24.0.7 | Patch available | GHSA-jq35-85cj-fj4p |
| — | github.com/docker/docker (Go) | 21.0.0 to before 23.0.8 | 23.0.8 | Patch available | GHSA-jq35-85cj-fj4p |
| — | github.com/docker/docker (Go) | before 20.10.27 | 20.10.27 | Patch available | GHSA-jq35-85cj-fj4p |
- github.com/docker/docker (Go) Vendor— Affected 24.0.0 to before 24.0.7 Fixed in 24.0.7 Patch available GHSA-jq35-85cj-fj4p
- github.com/docker/docker (Go) Vendor— Affected 21.0.0 to before 23.0.8 Fixed in 23.0.8 Patch available GHSA-jq35-85cj-fj4p
- github.com/docker/docker (Go) Vendor— Affected before 20.10.27 Fixed in 20.10.27 Patch available GHSA-jq35-85cj-fj4p
Remediation
- Fix · GHSA-jq35-85cj-fj4p github.com/docker/docker (Go) Fixed in 24.0.7 Advisory →
- Fix · GHSA-jq35-85cj-fj4p github.com/docker/docker (Go) Fixed in 23.0.8 Advisory →
- Fix · GHSA-jq35-85cj-fj4p github.com/docker/docker (Go) Fixed in 20.10.27 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-jq35-85cj-fj4p
References
Other 8
- https://github.com/moby/moby/security/advisories/GHSA-jq35-85cj-fj4p
- https://github.com/moby/moby/commit/48ebe353e49a9def5e6679f6e386b0efb1c95f0e
- https://github.com/moby/moby/commit/81ebe71275768629689a23bc3bca34b3b374a6a6
- https://github.com/moby/moby/commit/c9ccbfad11a60e703e91b6cca4f48927828c7e35
- https://github.com/moby/moby
- https://github.com/moby/moby/releases/tag/v20.10.27
- https://github.com/moby/moby/releases/tag/v23.0.8
- https://github.com/moby/moby/releases/tag/v24.0.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences