1. 13 Jan, 2016 1 commit
  2. 27 Mar, 2015 1 commit
  3. 25 Jan, 2015 1 commit
  4. 05 Dec, 2014 1 commit
    • Andrei Borzenkov's avatar
      fix memory corruption in pubkey filter over network · ebb3d958
      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: 's avatarRobert Kliewer <robert.kliewer@gmail.com>
      Closes: bug #43601
      ebb3d958
  5. 21 Jun, 2014 2 commits
  6. 21 Dec, 2013 2 commits
  7. 17 Dec, 2013 1 commit
    • Jon McCune's avatar
      Fix double-free introduced by commit 33d02a42 · 24d5934d
      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.
      24d5934d
  8. 15 Dec, 2013 1 commit
  9. 18 Nov, 2013 1 commit
  10. 16 Nov, 2013 1 commit
  11. 12 Nov, 2013 1 commit
  12. 03 Nov, 2013 1 commit
  13. 22 Oct, 2013 1 commit
  14. 05 Apr, 2013 1 commit
  15. 03 Apr, 2013 1 commit
  16. 01 Apr, 2013 1 commit
  17. 20 Mar, 2013 1 commit
  18. 11 Mar, 2013 1 commit
  19. 13 Jan, 2013 1 commit
  20. 12 Jan, 2013 2 commits