mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-09-20 06:54:17 +00:00
Windows: Harden Windows driver input validation
Validate SecRegion password cache offsets before use. Wipe decrypted SecRegion password-cache data even when cache validation fails. Clamp encrypted I/O work item counts and check allocation sizing. Reject invalid boot drive sector writes and initialize decoy wipe data unit. Validate hidden-system boot offsets and remap arithmetic before use.
This commit is contained in:
@@ -4704,6 +4704,8 @@ NTSTATUS ReadRegistryConfigFlags (BOOL driverEntry)
|
||||
|
||||
if (EncryptionMaxWorkItems == 0)
|
||||
EncryptionMaxWorkItems = VC_MAX_WORK_ITEMS;
|
||||
else if (EncryptionMaxWorkItems < 0 || EncryptionMaxWorkItems > VC_MAX_WORK_ITEMS)
|
||||
EncryptionMaxWorkItems = VC_MAX_WORK_ITEMS;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user