Skip to content

[Medium] Patch kata-containers-cc for CVE-2025-4574 and CVE-2025-5791 - #13845

Closed
Sreenivasulu Malavathula (HCL Technologies Ltd) (v-smalavathu) wants to merge 3 commits into
microsoft:3.0-devfrom
v-smalavathu:v-smalavathu/kata-containers-cc/CVE-2025-4574_3-kata-containers-cc
Closed

[Medium] Patch kata-containers-cc for CVE-2025-4574 and CVE-2025-5791#13845
Sreenivasulu Malavathula (HCL Technologies Ltd) (v-smalavathu) wants to merge 3 commits into
microsoft:3.0-devfrom
v-smalavathu:v-smalavathu/kata-containers-cc/CVE-2025-4574_3-kata-containers-cc

Conversation

@v-smalavathu

@v-smalavathu Sreenivasulu Malavathula (HCL Technologies Ltd) (v-smalavathu) commented May 21, 2025

Copy link
Copy Markdown
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

Patch kata-containers-cc for CVE-2025-4574 and CVE-2025-5791

Change Log
  • new file: SPECS/kata-containers-cc/CVE-2025-4574.patch
  • new file: SPECS/kata-containers-cc/CVE-2025-5791.patch
  • modified: SPECS/kata-containers-cc/kata-containers-cc.spec
Does this affect the toolchain?

NO

Associated issues
  • #xxxx
Links to CVEs
Test Methodology

Screenshot 2025-06-24 140524

  • Local build.

Signed-off-by: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>

%prep
%autosetup -p1 -n %{sourceName}-%{version}
%autosetup -p1 -a1 -n %{sourceName}-%{version}

@kgodara912 kgodara912 May 23, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please check it if you want to do source unpacking twice? -a1 will do source untar and then below again tar -xf %{SOURCE1} is done which will do decompress again. You may check and remove below one in case not needed. If that is not the case, then your CVE changes will be overwritten by below tar -xf, you may need to apply patch properly.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, how to verify that it unpacking twice?. Here the logs I verified from the RPM log file. Here, the snapshot

image

Attached complete logs.
kata-containers-cc-3.15.0.aks0-2.azl3.src.rpm.log
Kindly let me know.
-Thanks.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the issue.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Committed new changes.

@v-smalavathu Sreenivasulu Malavathula (HCL Technologies Ltd) (v-smalavathu) changed the title [Medium] Patch kata-containers-cc for CVE-2025-4574 [Medium] Patch kata-containers-cc for CVE-2025-4574 and CVE-2025-5791 Jun 24, 2025
@Sumynwa

Copy link
Copy Markdown

Will hold the PR for confirming if kata containers sources for the upcoming release already have the patches/does not include vulnerable code anymore.

@manuelh-dev

Copy link
Copy Markdown

Will hold the PR for confirming if kata containers sources for the upcoming release already have the patches/does not include vulnerable code anymore.

No plans to currently refresh the sources of this package. We should proceed with the PR fix, ensuring we do end-to-end testing. :)

@v-smalavathu

Will hold the PR for confirming if kata containers sources for the upcoming release already have the patches/does not include vulnerable code anymore.

No plans to currently refresh the sources of this package. We should proceed with the PR fix, ensuring we do end-to-end testing. :)

Thanks for update/

@kgodara912
kgodara912 self-requested a review June 30, 2025 08:04
@archana25-ms

Copy link
Copy Markdown

Requesting to close this PR since an alternate PR - /pull/14238 has been raised to resolve conflicts which are not solvable in this PR

@Kanishk-Bansal

Copy link
Copy Markdown

closing in favour of #14238

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 security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants