-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore(deps): update dependency containers/podman to v5 #3735
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approved because label type/renovate is present.
🔍 Vulnerabilities of
|
digest | sha256:2f9499e661017f82174206aef9a72ff4eb8d5adcb8a06d69244d41397e4c8287 |
vulnerabilities | |
platform | linux/amd64 |
size | 33 MB |
packages | 171 |
github.com/opencontainers/runc
|
Affected range | <=v1.1.4 |
Fixed version | Not Fixed |
CVSS Score | 7 |
CVSS Vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Description
runc through 1.1.4 has Incorrect Access Control leading to Escalation of Privileges, related to libcontainer/rootfs_linux.go. To exploit this, an attacker must be able to spawn two containers with custom volume-mount configurations, and be able to run custom images. NOTE: this issue exists because of a CVE-2019-19921 regression.
Improper Preservation of Permissions
Affected range | <1.1.5 |
Fixed version | 1.1.5 |
CVSS Score | 6.1 |
CVSS Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
Description
Impact
It was found that AppArmor, and potentially SELinux, can be bypassed when
/proc
inside the container is symlinked with a specific mount configuration.Patches
Fixed in runc v1.1.5, by prohibiting symlinked
/proc
: opencontainers/runc#3785This PR fixes CVE-2023-27561 as well.
Workarounds
Avoid using an untrusted container image.
Affected range | <1.1.2 |
Fixed version | 1.1.2 |
CVSS Score | 5.9 |
CVSS Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Description
Impact
A bug was found in runc where
runc exec --cap
executed processes with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2).This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set.
Patches
This bug has been fixed in runc 1.1.2. Users should update to this version as soon as possible.
This fix changes
runc exec --cap
behavior such that the additional capabilities granted to the process being executed (as specified via--cap
arguments) do not include inheritable capabilities.In addition,
runc spec
is changed to not set any inheritable capabilities in the created example OCI spec (config.json
) file.Credits
The opencontainers project would like to thank Andrew G. Morgan for responsibly disclosing this issue in accordance with the opencontainers org security policy.
For more information
If you have any questions or comments about this advisory:
- Open an issue
- Email us at [email protected] if you think you’ve found a security bug
Improper Preservation of Permissions
Affected range | <1.1.5 |
Fixed version | 1.1.5 |
CVSS Score | 2.5 |
CVSS Vector | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:L |
Description
Impact
It was found that rootless runc makes
/sys/fs/cgroup
writable in following conditons:
- when runc is executed inside the user namespace, and the
config.json
does not specify the cgroup namespace to be unshared (e.g..,(docker|podman|nerdctl) run --cgroupns=host
, with Rootless Docker/Podman/nerdctl)- or, when runc is executed outside the user namespace, and
/sys
is mounted withrbind, ro
(e.g.,runc spec --rootless
; this condition is very rare)A container may gain the write access to user-owned cgroup hierarchy
/sys/fs/cgroup/user.slice/...
on the host .
Other users's cgroup hierarchies are not affected.Patches
v1.1.5 (planned)
Workarounds
- Condition 1: Unshare the cgroup namespace (
(docker|podman|nerdctl) run --cgroupns=private)
. This is the default behavior of Docker/Podman/nerdctl on cgroup v2 hosts.- Condition 2 (very rare): add
/sys/fs/cgroup
tomaskedPaths
Attempting automerge. See https://github.com/uniget-org/tools/actions/runs/8352500408. |
PR is clean and can be merged. See https://github.com/uniget-org/tools/actions/runs/8352500408. |
This PR contains the following updates:
4.9.3
->5.0.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
containers/podman (containers/podman)
v5.0.0
Compare Source
Features
podman machine
can now use the native Apple hypervisor (applehv
) when run on MacOS.podman machine reset
, which will remove all existingpodman machine
VMs and relevant configurations.podman manifest add
command now supports a new--artifact
option to add OCI artifacts to a manifest list.podman create
,podman run
, andpodman push
commands now support the--retry
and--retry-delay
options to configure retries for pushing and pulling images.podman run
andpodman exec
commands now support a new option,--preserve-fd
, which allows passing a list of file descriptors into the container (as an alternative to--preserve-fds
, which passes a specific number of file descriptors).podman kube play
command can now create image-based volumes using thevolume.podman.io/image
annotation.podman kube play
can now include volumes from other containers (similar to the--volumes-from
option) using a new annotation,io.podman.annotations.volumes-from
(#16819).podman kube play
can now set user namespace options through the theio.podman.annotations.userns
annotation in the pod definition (#20658).containers.conf
fieldinterface_name
(#21313).--gpus
option topodman create
andpodman run
is now compatible with Nvidia GPUs (#21156).--mount
option topodman create
andpodman run
supports a new mount option,no-dereference
, to mount a symlink (instead of its dereferenced target) into a container (#20098).--config
, to point to a Docker configuration where we can source registry login credentials.podman ps --format
command now supports a new format specifier,.Label
(#20957).uidmapping
andgidmapping
options to thepodman run --userns=auto
option can now map to host IDs by prefixing host IDs with the@
symbol..pod
unit files (#17687).Entrypoint
andStopTimeout
, in.container
files (#20585 and #21134).Ulimit
key multiple times in.container
files to set more than one ulimit on a container.Notify
key tohealthy
in.container
files, to only sdnotify that a container has started when its health check begins passing (#18189).Breaking Changes
podman machine
commands has seen extensive rewrites. Configuration files have changed format and VMs from Podman 4.x and earlier are no longer usable.podman machine
VMs must be recreated with Podman 5.podman machine init
command now pulls images as OCI artifacts, instead of using HTTP. As a result, a validpolicy.json
file is required on the host. Windows and Mac installers have been changed to install this file.podman machine
on Mac. Instead, the native Apple hypervisor is supported.ConfigPath
andImage
fields are no longer provided by thepodman machine inspect
command. Users can also no longer use{{ .ConfigPath }}
or{{ .Image }}
as arguments topodman machine inspect --format
.podman inspect
for containers has seen a number of breaking changes to improve Docker compatibility, including changingEntrypoint
from a string to an array of strings and StopSignal from an int to a string.podman inspect
command for containers now returns nil for healthchecks when inspecting containers without healthchecks.podman pod inspect
command now outputs a JSON array regardless of the number of pods inspected (previously, inspecting a single pod would omit the array).PODMAN_CGROUPSV1_WARNING
environment variable can be set to suppress warnings.slirp4netns
topasta
for improved performance. As a result, networks namedpasta
are no longer supported.--image
option replaces the now deprecated--image-path
option forpodman machine init
.podman events --format "{{json .}}"
has been changed to improve Docker compatibility, including thetime
andtimeNano
fields (#14993).podman machine
VMs and the username used within the VM are now validated and must match this regex:[a-zA-Z0-9][a-zA-Z0-9_.-]*
.--annotation
topodman manifest annotate
andpodman manifest add
, the--configmap
,--log-opt
, and--annotation
options topodman kube play
, the--pubkeysfile
option topodman image trust set
, the--encryption-key
and--decryption-key
options topodman create
,podman run
,podman push
andpodman pull
, the--env-file
option topodman exec
, the--bkio-weight-device
,--device-read-bps
,--device-write-bps
--device-read-iops
,--device-write-iops
,--device
,--label-file
,--chrootdirs
,--log-opt
, and--env-file
options topodman create
andpodman run
, and the--hooks-dir
and--module
global options.Changes
podman system reset
command no longer waits for running containers to gracefully stop, and instead immediately sends SIGKILL (#21874).podman network inspect
command now includes running containers using the network in its output (#14126).podman compose
command is now supported on non-AMD64/ARM64 architectures.podman machine
will now pass HTTP proxy environment variables into the VM for all providers.--no-trunc
option to thepodman kube play
andpodman kube generate
commands has been deprecated. Podman now complies to the Kubernetes specification for annotation size, removing the need for this option.DOCKER_HOST
environment variable will be set by default for rootless users when podman-docker is installed.podman system connection
and farms frompodman farm
are now written to a new configuration file calledpodman-connections.conf
. As a result, Podman no longer writes tocontainers.conf
. Existing connections fromcontainers.conf
will still be respected.podman farm
subcommands (save forpodman farm build
) no longer need to connect to the machines in the farm to run.podman create
andpodman run
commands no longer require specifying an entrypoint on the command line when the container image does not define one. In this case, an empty command will be passed to the OCI runtime, and the resulting behavior is runtime-specific.podman machine
VMs on Mac is nowsystem_u:object_r:nfs_t:s0
so that it can be shared with all containers without issue.podman machine
will now share a single SSH key key for access. As a result,podman machine rm --save-keys
is deprecated as the key will persist by default.Bugfixes
podman stats
command would not show network statistics when thepasta
network mode was used.podman machine
VMs using the HyperV provider could not mount shares on directories that did not yet exist.podman compose
command did not respect the--connection
and--url
options.podman stop -t -1
command would wait for 0 seconds, not infinite seconds, before sending SIGKILL (#21811).slirp4netns
network mode was used with a restart policy ofalways
orunless-stopped
oron-failure
and a user namespace (#21477).docker.sock
symlink (#20650).podman image scp
command could fail if there was not sufficient space in the destination machine's/tmp
for the image (#21239).podman inspect
(#13102).podman kube play
did not create memory-backed emptyDir volumes using a tmpfs filesystem.--rm
were sometimes not removed after a reboot (#21482).podman events
command using the remote Podman client did not display the network name associated with network events (#21311).podman farm build
did not properly handle the--tls-verify
option and would override server defaults even if the option was not set by the user (#21352).podman inspect
command could segfault on FreeBSD (#21117)..container
file with certain types of trailing whitespace (#21109).bind-mount-options
key (#21080)..container
files (#20992).--publish-all
option topodman kube play
did not function when used with the remote Podman client.podman kube play --build
command could not build images whose Dockerfile specified an image from a private registry with a self-signed certificate in aFROM
directive (#20890).API
/libpod/images/$name/resolve
, has been added to resolve a (potential) short name to a list of fully-qualified image references Podman which could be used to pull the image./etc/hosts
were copied into create containers, resulting in incompatibility with network aliases.Misc
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.