Re: [edk2-devel] [PATCH v2 1/2] SecurityPkg/DxeImageVerificationLib: Fix certificate lookup algorithm

2021-08-11 Thread Min Xu
On August 9, 2021 5:51 PM, Marvin Häuser wrote: > The current certificate lookup code does not check the bounds of the > authentication data before accessing it. Abort if the header cannot fit. Also, > the lookup code aborts once the authetication data is smaller than an > algorithm's OID size.

[edk2-devel] [PATCH v2 1/2] SecurityPkg/DxeImageVerificationLib: Fix certificate lookup algorithm

2021-08-09 Thread Marvin Häuser
The current certificate lookup code does not check the bounds of the authentication data before accessing it. Abort if the header cannot fit. Also, the lookup code aborts once the authetication data is smaller than an algorithm's OID size. As OIDs are variably-sized, this may cause unexpected