Skip to content

[CHERRY-PICK] SecurityPkg: AuthVariableLib: Handle empty signature lists#1785

Merged
kuqin12 merged 1 commit intomicrosoft:release/202511from
kuqin12:cp_var_list
May 6, 2026
Merged

[CHERRY-PICK] SecurityPkg: AuthVariableLib: Handle empty signature lists#1785
kuqin12 merged 1 commit intomicrosoft:release/202511from
kuqin12:cp_var_list

Conversation

@kuqin12
Copy link
Copy Markdown
Contributor

@kuqin12 kuqin12 commented May 4, 2026

Description

The current implementation fails to set authenticated variables when the signature list is empty. This can legitimately occur for dbx when no signatures are revoked after a certificate rotation.

Update the logic to explicitly handle empty signature lists, avoiding an implicit dependency on the variable being absent from variable storage.

(cherry picked from commit b980aa07196a5534581b16563cd78cfc67a74074)

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

This was tested on physical ARM64 platforms and booted to OS desktop and can set empty siglist variable from powershell.

Integration Instructions

N/A

@mu-automation
Copy link
Copy Markdown
Contributor

mu-automation Bot commented May 4, 2026

⏩ QEMU Validation Skipped

The PR was merged before validation completed.

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@kuqin12 kuqin12 requested review from Flickdm and apop5 May 4, 2026 19:43
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 4, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202511@922377c). Learn more about missing BASE report.

Files with missing lines Patch % Lines
SecurityPkg/Library/AuthVariableLib/AuthService.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             release/202511   #1785   +/-   ##
================================================
  Coverage                  ?   1.59%           
================================================
  Files                     ?     160           
  Lines                     ?   37728           
  Branches                  ?     172           
================================================
  Hits                      ?     601           
  Misses                    ?   37127           
  Partials                  ?       0           
Flag Coverage Δ
SecurityPkg 1.59% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kuqin12 kuqin12 enabled auto-merge (rebase) May 4, 2026 22:31
The current implementation fails to set authenticated variables when the
signature list is empty. This can legitimately occur for dbx when no
signatures are revoked after a certificate rotation.

Update the logic to explicitly handle empty signature lists, avoiding an
implicit dependency on the variable being absent from variable storage.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
(cherry picked from commit b980aa07196a5534581b16563cd78cfc67a74074)
@Flickdm Flickdm requested a review from apop5 May 6, 2026 14:57
@kuqin12 kuqin12 merged commit a95cc91 into microsoft:release/202511 May 6, 2026
59 of 61 checks passed
@kuqin12 kuqin12 deleted the cp_var_list branch May 6, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants