-
Notifications
You must be signed in to change notification settings - Fork 862
[Release 1.33] Bump runc up to 1.2.9 for CVE-2025-52881, CVE-2025-31133 and CVE-2025-52565 #6520
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
base: release-1.33
Are you sure you want to change the base?
[Release 1.33] Bump runc up to 1.2.9 for CVE-2025-52881, CVE-2025-31133 and CVE-2025-52565 #6520
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cevich The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Ephemeral COPR build failed. @containers/packit-build please check. |
6136c9c to
29d79a3
Compare
|
@cevich Are the RHEL build envs now updated with newer go versions? Last time I tried to bump go versions on these old branches that didn't go so well, ref containers/podman@f8bca0f and containers/podman@03b53d3 |
|
@Luap99 For RHEL 8, yes there are new go versions there, and RHEL 9 is in progress. |
2e82a1b to
31fde51
Compare
|
As of 31fde51 the tests are updating to runc-1.33 before running. This seems to have triggered a bunch of warnings the tests don't know how to deal with: Anyone have any idea what those mean, if they're bad, and/or how to suppress them or should I just force the tests to ignore them? |
|
Stealing from @cevich's work in containers#6520. In CI, the project and tests are compiled, so therefore require newer CI/VM images with support for the newer golang requirements. Signed-off-by: tomsweeneyredhat <[email protected]>
Add GoProxy. Stolen from @cevich's containers#6520 Signed-off-by: tomsweeneyredhat <[email protected]>
97796dc to
9ca5d57
Compare
|
I believe the git-repo errors can be fixed by backporting 5abf038. All the "filesystem-specific options" errors I have no clue about, any help would be appreciated: |
|
Poking around, I think the |
d14e856 to
5eb14d5
Compare
5eb14d5 to
2904337
Compare
|
I dunno what the "validate/commit" check is that's failing, nor how to re-run it (logs make it appear to be a flake?) but all the Cirrus tests are now green. I'm exhausted from looking at this and need to take a break. But perhaps could an initial review pass be made at this point? |
Use a listener helper to bind to an available-according-to-the-kernel listening port and run a command with its stdio more or less tied to the connection instead of trying to launch a git daemon directly using a port number that we can only guess is available. Signed-off-by: Nalin Dahyabhai <[email protected]> Signed-off-by: Chris Evich <[email protected]> Assisted-by: Claude (Anthropic)
Handle requested relabeling of bind mounts (i.e., the "z" and "Z" flags) directly, instead of letting the runtime handle the relabeling. Signed-off-by: Nalin Dahyabhai <[email protected]> Signed-off-by: Chris Evich <[email protected]> Assisted-by: Claude (Anthropic)
Signed-off-by: Nalin Dahyabhai <[email protected]> Signed-off-by: Chris Evich <[email protected]> Assisted-by: Claude (Anthropic)
Use the named constants for the status values that runtimes can report to us when we run them with the "state" command. Signed-off-by: Nalin Dahyabhai <[email protected]>
Tweak the wording that describes the effects of --cgroup-parent to be clear that it only affects handling of RUN instructions. Signed-off-by: Nalin Dahyabhai <[email protected]>
Run integration tests (both as root and rootless) with both crun and runc on Fedora, to help ensure that we can use either. Signed-off-by: Nalin Dahyabhai <[email protected]> Signed-off-by: Chris Evich <[email protected]> Assisted-by: Claude (Anthropic)
This branch is only used as the source for RHEL releases, prune CI tests that are irrelevant for this purpose. Signed-off-by: Chris Evich <[email protected]>
A bug is present in some versions of runc (including 1.2.8) which result in the wrong number of CPU shares being used. Since the runc version may change in a future commit, but still contain the bug, simply skip the test rather than checking against the miscalculated value. Signed-off-by: Chris Evich <[email protected]> Assisted-by: Claude (Anthropic)
Update the versions of ginkgo that we build for use by our e2e tests, and the linter. Signed-off-by: Nalin Dahyabhai <[email protected]> Signed-off-by: Chris Evich <[email protected]>
The version of containers/common we're currently using on this branch included a bug which was later fixed by containers/common#2199. If we get an update on its v0.57 branch which includes that fix, we can drop this patch from this branch, but until then, work around the part that breaks our tests. Signed-off-by: Nalin Dahyabhai <[email protected]>
Newer docker build doesn't set it, so we need to stop. Signed-off-by: Nalin Dahyabhai <[email protected]>
Make setting the Parent field in the config blob of a docker format image optional (yes, we're bringing it back!), since it no longer appears to be set by newer versions of docker build. Signed-off-by: Nalin Dahyabhai <[email protected]>
If the working directory ends with the path separator, and trimming it wouldn't produce an empty value, trim it, for conformance. This was originally fixed in imagebuilder, and we picked up the change automatically, but this should provide the same end-result. Signed-off-by: Nalin Dahyabhai <[email protected]>
|
Note to me: CI first green at this commit. |
2904337 to
137ef50
Compare
Signed-off-by: Chris Evich <[email protected]> Assisted-by: Claude (Anthropic)
137ef50 to
7087c91
Compare
|
@cevich it looks like one of your commit descriptions is over 72 characters. The two longest that I can spot here both appear to be 71. Unfortunately, I can't do a rebase on your commits to see if I missed one. Everything else seems happy here though! |
7087c91 to
8438775
Compare
|
Force-push: Gave haircuts to a few commit titles. No code changes. |
|
The validate task is non blocking, you can just ignore it on backports I would say. |
8438775 to
7087c91
Compare
|
Aww darn, was hoping it would re-use the previous CI results 😞 |
Signed-off-by: Chris Evich <[email protected]>
7087c91 to
5bf7313
Compare
|
force-push: Since CI has to run again, updated the release commit as it was missing some (minor) content. |
/kind other
What this PR does / why we need it:
Backport PR #6484 & #6511
How to verify it
CI + Manual
Which issue(s) this PR fixes:
Resolves RHEL-126923
Special notes for your reviewer:
The commits in this PR were created with the assistance of AI, backported from #6484 and #6511. When reviewing please pay special attention to the following:
Vendor directory consistency:
make vendor-in-containerafter eachgo.modchangego.modandgo.sumAll compilation verified:
makeafter every commit"Disable lint checking"
rather the process is simply killed.
source PRs.
"Bump runc to v1.2.8 - CVE-2025-52881" - Security update from PR [release-1.39] Bump runc to v1.2.8 - CVE-2025-52881 #6484:
chroot/selinux.goandutil.go:label.SetProcessLabel()toselinux.SetExecLabel()(API change in older release branch)label.ReserveLabel()returning an error toselinux.ReserveLabel()with no return value (API change in older release branch)"run: handle relabeling bind mounts ourselves" - From PR [release-1.39] run: handle relabeling bind mounts ourselves, tag 1.39.6 #6511:
relabel()helper function inrun_common.gothat wrapslabel.Relabel()with error handling forENOTSUP(labeling not supported)run_linux.goto handle "z" and "Z" mount flags by relabeling bind mount sources before passing mounts to the runtimerelabel()helper function includesENOTSUPerror handling that gracefully degrades when SELinux labeling is not supported, which is important for compatibility across different system configurations"Skip bud with --cpu-shares test on runc/cgroupsv2" - Backport-specific test adjustment:
bud with --cpu-sharestest when using runc with cgroupsv2"Prune CI tests for RHEL release branch" - Backport-specific CI optimization:
.cirrus.yml(removed 99 lines, added 7)"vendor: switch to moby/sys/capability" - Dependency update from PR [release-1.39] run: handle relabeling bind mounts ourselves, tag 1.39.6 #6511:
github.com/syndtr/gocapabilitytogithub.com/moby/sys/capability(a maintained fork)"Don't set ambient capabilities" - Capability handling fix from PR [release-1.39] run: handle relabeling bind mounts ourselves, tag 1.39.6 #6511:
"Fix linter errors"
"Bump Buildah to v1.33.13" - Version and changelog updates:
buildah_release 1.33.13script.Does this PR introduce a user-facing change?