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

SmmPasswordHandler Failure to clear Password Data (Bugzilla Bug 4646) #702

Open
tianocore-issues opened this issue Jan 17, 2024 · 2 comments

Comments

@tianocore-issues
Copy link

This issue was created automatically with bugzilla2github

Bugzilla Bug 4646

Date: 2024-01-17T01:54:43+00:00
From: tabassum.yasmin
To: tabassum.yasmin
CC: @lgao4

Last updated: 2024-01-30T21:47:41+00:00

@tianocore-issues
Copy link
Author

Comment 22375

Date: 2024-01-17 01:54:43 +0000
From: tabassum.yasmin

  • Industry Specification: ---
  • Release Observed: edk2-stable202305
  • Releases to Fix: edk2-stable202305
  • Target OS: ---
  • Bugzilla Assignee(s): tabassum.yasmin

SMM_PASSWORD_FUNCTION_SET_PASSWORD
In the case SMM_PASSWORD_FUNCTION_SET_PASSWORD, the new and old password are copied into a local
variable SmmCommunicateSetPassword. Whether the password meets all checks and reaches the end of the
case or it hits a goto EXIT statement (not shown in snippet), SmmCommunicateSetPassword is not zeroed

code snippet below

case SMM_PASSWORD_FUNCTION_SET_PASSWORD:

CopyMem (&SmmCommunicateSetPassword, SmmFunctionHeader + 1, sizeof(SmmCommunicateSetPassword));

if (PasswordLen == 0) {
Status = SavePasswordToVariable (UserGuid, NULL, 0);
} else {
Status = SavePasswordToVariable (UserGuid, SmmCommunicateSetPassword.NewPassword, PasswordLen

  • 1);
    }
    break;

@tianocore-issues
Copy link
Author

Comment 22462

Date: 2024-01-30 21:47:41 +0000
From: @lgao4

[email protected]: please work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant