-
Notifications
You must be signed in to change notification settings - Fork 582
[Medium] Patch shim-unsigned-x64 for CVE-2024-13176 #13962
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: main
Are you sure you want to change the base?
[Medium] Patch shim-unsigned-x64 for CVE-2024-13176 #13962
Conversation
Signed-off-by: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>
We are putting dispute for shim-unsigned-aarch64 with reason "For 2.0, we do not build shim, we only take the efi files" as per the CVE page. Are we building these files for x64? |
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.
From: Sreenivasulu Malavathula <v-smalavathu@microsoft.com> | ||
Date: Wed, 4 Jun 2025 20:34:51 -0500 | ||
Subject: [PATCH] Address CVE-2024-13176 | ||
Upstream Patch Reference: https://github.com/openssl/openssl/commit/4b1cb94a734a7d4ec363ac0a215a25c181e11f65 |
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.
There are significant differences from the upstream patch. Could you please put a little summary for the changes? Like, is ec_lib.h not part of our version which is fixed in upstream?
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.
@kgodara912 ,
Here, the summary:
-
The affected files need to change for this CVE from
Astrolab
as shown below snapshot.
-
As shown from "Upstream Reference Patch", file
...crypto/ec/ec_lib.c
is not part of affected file in 'Astrolab' snapshot as shown above and this file is not available in our version, -
The "Upstream Reference Patch" was old patch and function definition
bn_from_mont_fixed_top()
is not available in our version, Hence, I did back porting the changes to our version to make sure that to get same affect in our version, like
old version code for functionbn_from_mont_fixed_top()
is same as functionBN_mod_exp_mont()
in our version, This difference captured in my first comment in this CVE.
-Thanks
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.
Please address the build failure, it seems that you need to create one shim file as well.
Failed to download ...signed-shim-x86_64-15.8-2.cm2.efi). Error: invalid response: 404.
Unable to hydrate file: signed-shim-x86_64-15.8-2.cm2.efi
I couldn't get this issue. Here, the logs attached shim-unsigned-x64-15.8-2.cm2.src.rpm.log shim-unsigned-x64-15.8-2.cm2.src.rpm.test.log -Thanks |
@kgodara912 , shim-unsigned-x64-15.8-2.cm2.src.rpm.log shim-unsigned-x64-15.8-2.cm2.src.rpm.test.log Kindly let me know if I missed something here. |
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.
Build of amd is failing
I didn't find the 'signed-shim' package in 'SPECS' folder, The following package folders are found that related to I have bumped up version in './SPECS/shim/shim.spec', Here, the current shim Version is '15.8' and Release '1' is matching with ./SPECS/shim-unsigned-x64/shim-unsigned-x64.spec, so, bumped up the version. The other 2 variants of shim was not matching (as shown below) current version of shim and release, so I didn't bump up. ./SPECS/shim-unsigned/shim-unsigned.spec - current shim Version is '15.4' and Release is '2' Is this any issues? |
|
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-static
subpackages, etc.) have had theirRelease
tag incremented../cgmanifest.json
,./toolkit/scripts/toolchain/cgmanifest.json
,.github/workflows/cgmanifest.json
)./LICENSES-AND-NOTICES/SPECS/data/licenses.json
,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md
,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON
)*.signatures.json
filessudo make go-tidy-all
andsudo make go-test-coverage
passSummary
shim-unsigned-x64: Patch for CVE-2024-13176
Change Log
Does this affect the toolchain?
NO
Associated issues
Links to CVEs
Test Methodology