bitlk: Ignore unknown VMK entry 24

This VMK value looks like a password hint (masked email?)
we can safely ignore it.

Fixes: #886
This commit is contained in:
Milan Broz
2024-05-21 10:54:55 +02:00
parent a92efc358a
commit ef653d00a7
2 changed files with 4 additions and 0 deletions

View File

@@ -324,6 +324,9 @@ static int parse_vmk_entry(struct crypt_device *cd, uint8_t *data, int start, in
/* unknown timestamps in recovery protected VMK */
} else if (key_entry_value == BITLK_ENTRY_VALUE_RECOVERY_TIME) {
;
/* optional hint (?) string (masked email?), we can safely ignore it */
} else if (key_entry_value == BITLK_ENTRY_VALUE_HINT) {
;
} else if (key_entry_value == BITLK_ENTRY_VALUE_STRING) {
if (key_entry_size < BITLK_ENTRY_HEADER_LEN)
return -EINVAL;