Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/docker/docker to v24.0.9+incompatible [SECURITY] - autoclosed #55

Closed

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 2, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/docker/docker v24.0.5+incompatible -> v24.0.9+incompatible age adoption passing confidence

GitHub Vulnerability Alerts

GHSA-jq35-85cj-fj4p

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, Intel assigned CVE-2020-8694 and CVE-2020-8695, and AMD assigned 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 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

CVE-2024-24557

The classic builder cache system is prone to cache poisoning if the image is built FROM scratch.
Also, changes to some instructions (most important being HEALTHCHECK and ONBUILD) would not cause a cache miss.

An attacker with the knowledge of the Dockerfile someone is using could poison their cache by making them pull a specially crafted image that would be considered as a valid cache candidate for some build steps.

For example, an attacker could create an image that is considered as a valid cache candidate for:

FROM scratch
MAINTAINER Pawel

when in fact the malicious image used as a cache would be an image built from a different Dockerfile.

In the second case, the attacker could for example substitute a different HEALTCHECK command.

Impact

23.0+ users are only affected if they explicitly opted out of Buildkit (DOCKER_BUILDKIT=0 environment variable) or are using the /build API endpoint (which uses the classic builder by default).

All users on versions older than 23.0 could be impacted. An example could be a CI with a shared cache, or just a regular Docker user pulling a malicious image due to misspelling/typosquatting.

Image build API endpoint (/build) and ImageBuild function from github.com/docker/docker/client is also affected as it the uses classic builder by default.

Patches

Patches are included in Moby releases:

  • v25.0.2
  • v24.0.9
  • v23.0.10

Workarounds

  • Use --no-cache or use Buildkit if possible (DOCKER_BUILDKIT=1, it's default on 23.0+ assuming that the buildx plugin is installed).
  • Use Version = types.BuilderBuildKit or NoCache = true in ImageBuildOptions for ImageBuild call.

Release Notes

docker/docker (github.com/docker/docker)

v24.0.9+incompatible

Compare Source

v24.0.8+incompatible

Compare Source

v24.0.7+incompatible

Compare Source

v24.0.6+incompatible

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

github-actions bot commented Jun 3, 2024

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
❌ ACTION actionlint 8 46 0.26s
✅ BASH bash-exec 4 0 0.02s
❌ BASH shellcheck 4 10 0.12s
✅ BASH shfmt 4 3 0 0.07s
❌ COPYPASTE jscpd yes 718 23.85s
❌ CSS scss-lint 1 1 0.44s
✅ CSS stylelint 1 1 0 1.6s
❌ DOCKERFILE hadolint 1 1 0.1s
❌ JAVASCRIPT standard 1 1 1 1.99s
✅ JSON jsonlint 4 0 0.19s
✅ JSON prettier 4 1 0 0.9s
✅ JSON v8r 4 0 8.34s
⚠️ MARKDOWN markdownlint 43 15 196 3.24s
❌ MARKDOWN markdown-link-check 43 14 93.66s
✅ MARKDOWN markdown-table-formatter 43 15 0 0.86s
❌ REPOSITORY checkov yes 23 39.68s
❌ REPOSITORY gitleaks yes 39 9.85s
✅ REPOSITORY git_diff yes no 0.08s
❌ REPOSITORY grype yes 1 11.21s
❌ REPOSITORY secretlint yes 1 5.24s
❌ REPOSITORY trivy yes 1 6.49s
✅ REPOSITORY trivy-sbom yes no 2.25s
✅ REPOSITORY trufflehog yes no 4.63s
❌ SPELL cspell 779 14054 244.33s
❌ SPELL lychee 77 57 5.18s
⚠️ YAML prettier 30 15 1 1.94s
✅ YAML v8r 30 0 56.23s
❌ YAML yamllint 30 11 1.02s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@renovate renovate bot changed the title Update module github.com/docker/docker to v24.0.9+incompatible [SECURITY] Update module github.com/docker/docker to v24.0.9+incompatible [SECURITY] - autoclosed Jun 4, 2024
@renovate renovate bot closed this Jun 4, 2024
@renovate renovate bot deleted the renovate/go-github.com/docker/docker-vulnerability branch June 4, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants