Skip to content

Questionable KEY_UPDATE.VerifyNewKey behavior #3414

@steven-bellock

Description

@steven-bellock

When Requester sends KEY_UPDATE.VerifyNewKey libspdm expects that the previous KEY_UPDATE request be either UpdateKey or UpdateAllKeys. However the specification does not forbid multiple VerifyNewKey operations in a row. Presumably the first VerifyNewKey discards the keys but the subsequent ones are benign.

case SPDM_KEY_UPDATE_OPERATIONS_TABLE_VERIFY_NEW_KEY:
if ((prev_spdm_request->header.param1 != SPDM_KEY_UPDATE_OPERATIONS_TABLE_UPDATE_KEY) &&
(prev_spdm_request->header.param1 !=
SPDM_KEY_UPDATE_OPERATIONS_TABLE_UPDATE_ALL_KEYS)) {
return libspdm_generate_error_response(spdm_context,
SPDM_ERROR_CODE_INVALID_REQUEST, 0,
response_size, response);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions