Skip to content

Upgrade kubevirt to 1.7.0 and backport libvirt GSource memory leak fix#15712

Draft
aadhar-agarwal wants to merge 2 commits into3.0-devfrom
aadagarwal/upgrade-kubevirt-1.7
Draft

Upgrade kubevirt to 1.7.0 and backport libvirt GSource memory leak fix#15712
aadhar-agarwal wants to merge 2 commits into3.0-devfrom
aadagarwal/upgrade-kubevirt-1.7

Conversation

@aadhar-agarwal
Copy link
Contributor

@aadhar-agarwal aadhar-agarwal commented Feb 4, 2026

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

What does the PR accomplish, why was it needed?

  • This PR upgrades kubevirt to 1.7.0 and backport libvirt GSource memory leak fix to address virt-launcher memory leak affecting NAKS clusters.
Change Log

kubevirt

  • Remove CVE-2025-47913.patch (ssh/agent package no longer vendored upstream)
    • The patch was removed because kubevirt 1.7.0 no longer vendors the vulnerable golang.org/x/crypto/ssh/agent package. The directory was removed in PR #15478 ("cleanup(virtctl): Drop native ssh and scp clients"), which eliminated the native SSH/SCP clients from virtctl and removed the dependency on the vulnerable package entirely.
  • Remove CVE-2025-64435.patch (fixed upstream via PR#15680)
    • The patch was removed because the fix is included upstream in kubevirt 1.7.0 via PR #15680. The vulnerable pkg/controller/controller_ref.go file no longer exists in 1.7.0 - it was completely removed and replaced with secure standard Kubernetes API calls.
  • Bump golang BuildRequires to >= 1.24 (required by upstream go.mod)
    • The BuildRequires: golang >= 1.24 change is required because kubevirt 1.7.0 updated its Go version via PR #15784: "Build KubeVirt with go v1.24.7". The project's go.mod now declares go 1.24.0, making Go 1.24+ mandatory for building.

libvirt

Does this affect the toolchain?

NO

Associated memory leak fixes

kubevirt:

libvirt:

Links to CVEs
Test Methodology

@aadhar-agarwal aadhar-agarwal changed the base branch from 3.0 to 3.0-dev February 4, 2026 01:38
@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging specs-extended PR to fix SPECS-EXTENDED Tools 3.0-dev PRs Destined for AzureLinux 3.0 labels Feb 4, 2026
@aadhar-agarwal aadhar-agarwal force-pushed the aadagarwal/upgrade-kubevirt-1.7 branch from baf00af to 9139554 Compare February 4, 2026 01:43
- Remove CVE-2025-47913.patch (ssh/agent package no longer vendored)
- Remove CVE-2025-64435.patch (fixed upstream via PR#15680)
- Bump golang BuildRequires to >= 1.24 per upstream PR#15784

Signed-off-by: Aadhar Agarwal <aadagarwal@microsoft.com>
@aadhar-agarwal aadhar-agarwal force-pushed the aadagarwal/upgrade-kubevirt-1.7 branch from 9139554 to c9b4e2c Compare February 4, 2026 02:03
@harshitgupta1337
Copy link
Contributor

/lgtm
Thanks @aadhar-agarwal

Backport upstream commit 98f1cf88 to fix a memory leak in the
virNetClientIO() function where GSource objects were not being
properly released.

This addresses the virt-launcher memory growth issue reported in
KubeVirt environments (kubevirt/kubevirt#15996), where the leak
causes OOM kills of virt-launcher pods.

Upstream reference: https://gitlab.com/libvirt/libvirt/-/commit/98f1cf88fa7e0f992d93f376418fbfb3996a9690
@aadhar-agarwal aadhar-agarwal changed the title Upgrade kubevirt to 1.7.0 Upgrade kubevirt to 1.7.0 and backport libvirt GSource memory leak fix Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Packaging specs-extended PR to fix SPECS-EXTENDED Tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants