Skip to content
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

Version Check for capsule update seems error (Bugzilla Bug 367) #6858

Open
tianocore-issues opened this issue Feb 7, 2017 · 4 comments
Open
Labels
package:signedcapsulepkg priority:low Little to no impact. No urgency to fix. type:bug Something isn't working

Comments

@tianocore-issues
Copy link

This issue was created automatically with bugzilla2github

Bugzilla Bug 367

Date: 2017-02-07T00:51:04+00:00
From: Wang Cloud <>
To: @jyao1
CC: @jyao1

Last updated: 2017-02-09T00:45:13+00:00

@tianocore-issues
Copy link
Author

Comment 1390

Date: 2017-02-07 00:51:04 +0000
From: Wang Cloud <>

  • Industry Specification: ---
  • Target OS: ---
  • Bugzilla Assignee(s): @jyao1

In CapsuleAuthenticateSystemFirmware of SignedCapsulePkg\Library\EdkiiSystemCapsuleLib\EdkiiSystemCapsuleLib.c, the following logic seems error

if (ForceVersionMatch) {
if (CurrentImageFmpInfo->Version != ImageFmpInfo->Version) {
*LastAttemptStatus = LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION;
DEBUG((DEBUG_INFO, "ForceVersionMatch check - fail\n"));
return EFI_SECURITY_VIOLATION;
}
} else {
if (CurrentImageFmpInfo->Version < ImageFmpInfo->LowestSupportedImageVersion) {
*LastAttemptStatus = LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION;
DEBUG((DEBUG_INFO, "LowestSupportedImageVersion check - fail\n"));
return EFI_SECURITY_VIOLATION;
}
}

I think it should be CurrentImageFmpInfo->LowestSupportedImageVersion > ImageFmpInfo->Version

The version check requires that the Version in capsule image must be greater than or equal to the LowestSupportedImageVersion in the current firmware. If the version in capsule image is lower than that in the current firmware, this capsule should be dropped.

@tianocore-issues
Copy link
Author

Comment 1391

Date: 2017-02-07 01:02:11 +0000
From: @jyao1

Bug confirmed.

@tianocore-issues
Copy link
Author

Comment 1411

Date: 2017-02-09 00:42:34 +0000
From: @jyao1

Fixed in 41ccec5

@tianocore-issues
Copy link
Author

Comment 1412

Date: 2017-02-09 00:45:13 +0000
From: Wang Cloud <>

fixed in latest trunk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:signedcapsulepkg priority:low Little to no impact. No urgency to fix. type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant