You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user specifies a Raw disk image, there are possible scenarios
where the guest could misuse the disk image. In one such scenario, the
guest could write a different image header into the first sector of the
file. Mitigate this by forcing the guest to write to the first four
bytes as a whole, and not byte-by-byte in any order. Additionally,
mitigate this by verifying that if the offset into the disk image is
zero and the length of the buffer to be written is greater than or equal
to four, probe the buffer's first four bytes to make sure it's not a
QCOW magic string ("QFI\xfb"). If any of these conditions are met, then
reject the write.
Signed-off-by: Jake Correnti <[email protected]>
0 commit comments