- 13 Jan, 2016 1 commit
-
-
Andrei Borzenkov authored
Found by: Coverity scan. CID: 96643
-
- 27 Mar, 2015 1 commit
-
-
Michael Zimmermann authored
-
- 25 Jan, 2015 1 commit
-
-
Vladimir Serbinenko authored
Current code doesn't zero-out context completely. It's a minor issue really as sha1 init already takes care of initing the context.
-
- 05 Dec, 2014 1 commit
-
-
Andrei Borzenkov authored
grub_pubkey_open closed original file after it was read; it set io->device to NULL to prevent grub_file_close from trying to close device. But network device itself is stacked (net -> bufio); and bufio preserved original netfs file which hold reference to device. grub_file_close(io) called grub_bufio_close which called grub_file_close for original file. grub_file_close(netfs-file) now also called grub_device_close which freed file->device->net. So file structure returned by grub_pubkey_open now had device->net pointed to freed memory. When later file was closed, it was attempted to be freed again. Change grub_pubkey_open to behave like other filters - preserve original parent file and pass grub_file_close down to parent. In this way only the original file will close device. We really need to move this logic into core instead. Also plug memory leaks in error paths on the way. Reported-By:
Robert Kliewer <robert.kliewer@gmail.com>
Closes: bug #43601
-
- 21 Jun, 2014 2 commits
-
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
check.
-
- 21 Dec, 2013 2 commits
-
-
David Prévot authored
-
Vladimir Serbinenko authored
-
- 17 Dec, 2013 1 commit
-
-
Jon McCune authored
To reproduce the problem, make sure you have a GPG public key available, build and install GRUB: grub-install --debug --debug-image="all" --pubkey=/boot/pubkey.gpg --modules="serial terminfo gzio search search_label search_fs_uuid search_fs_file linux vbe video_fb video mmap relocator verify gcry_rsa gcry_dsa gcry_sha256 hashsum gcry_sha1 mpi echo loadenv boottime" /dev/sda Sign all the files in /boot/grub/* and reboot. 'make check' results identical before and after this change. TESTED: In a QEMU VM using an i386 target.
-
- 15 Dec, 2013 1 commit
-
-
Vladimir Serbinenko authored
Just "packed" doesn't always pack the way we expect.
-
- 18 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
(grub_load_public_key): Likewise. (grub_verify_signature_real): Likewise. (grub_cmd_verify_signature): Likewise.
-
- 16 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
We have only 92K of stack and using over 4K per frame is wasteful * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap rather than stack. (grub_verify_signature_real): Likewise.
-
- 12 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
Load gcry_dsa/gcry_rsa automatically.
-
- 03 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
-
- 22 Oct, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 05 Apr, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 03 Apr, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
tampered with after verification was done.
-
- 01 Apr, 2013 1 commit
-
-
Andrey Borzenkov authored
the first three hashes - they start with 1, not with 0.
-
- 20 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
from the spec.
-
- 11 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
operations to have intended shifts and not divisions.
-
- 13 Jan, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/commands/verify.c (grub_cmd_list): New function.
-
- 12 Jan, 2013 2 commits
-
-
Vladimir 'phcoder' Serbinenko authored
-
Vladimir 'phcoder' Serbinenko authored
-