Skip to content
Snippets Groups Projects
  1. Oct 02, 2023
  2. May 15, 2023
  3. May 13, 2023
  4. May 10, 2023
  5. May 02, 2023
  6. Apr 23, 2023
  7. Apr 21, 2023
  8. Apr 20, 2023
  9. Apr 14, 2023
  10. Apr 03, 2023
  11. Mar 04, 2023
  12. Feb 09, 2023
  13. Feb 08, 2023
  14. Jan 15, 2023
  15. Dec 29, 2022
  16. Dec 14, 2022
  17. Dec 11, 2022
  18. Dec 06, 2022
  19. Dec 04, 2022
    • Steve McIntyre's avatar
      Release version 2.06-6 · 28632f17
      Steve McIntyre authored
      debian/2.06-6
      28632f17
    • Steve McIntyre's avatar
      Switch away from git-dpm · 2c1a132e
      Steve McIntyre authored
      2c1a132e
    • Steve McIntyre's avatar
      Bump Debian SBAT level to 4 · e2dc71dd
      Steve McIntyre authored
      Due to a mistake in the buster update that left the CVE-2022-2601 bugs
      in place, we need to bump SBAT for all of the Debian GRUB binaries. :-(
      e2dc71dd
    • Steve McIntyre's avatar
      Add fonts to the EFI images · 5055c474
      Steve McIntyre authored
      The previous security updates disallowed loading unsigned fonts when
      in SB mode. To make things work again:
      
       * Embed the "unicode" font into the embedded memdisk image so it can
         be loaded.
       * Add the memdisk to our normal grubx64.efi loader too
       * Add a patch from Chris Coulson to make the font loader look for
         fonts in the memdisk whenever they're loaded.
      
      Closes: #1024395, #1025352, #1024447
      5055c474
  20. Nov 14, 2022
  21. Nov 12, 2022
    • Zhang Boyang's avatar
      normal/charset: Fix an integer overflow in grub_unicode_aglomerate_comb() · afa02a1b
      Zhang Boyang authored
      
      The out->ncomb is a bit-field of 8 bits. So, the max possible value is 255.
      However, code in grub_unicode_aglomerate_comb() doesn't check for an
      overflow when incrementing out->ncomb. If out->ncomb is already 255,
      after incrementing it will get 0 instead of 256, and cause illegal
      memory access in subsequent processing.
      
      This patch introduces GRUB_UNICODE_NCOMB_MAX to represent the max
      acceptable value of ncomb. The code now checks for this limit and
      ignores additional combining characters when limit is reached.
      
      Reported-by: default avatarDaniel Axtens <dja@axtens.net>
      Signed-off-by: default avatarZhang Boyang <zhangboyang.id@gmail.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      afa02a1b
    • Zhang Boyang's avatar
      font: Assign null_font to glyphs in ascii_font_glyph[] · b272bbd4
      Zhang Boyang authored
      
      The calculations in blit_comb() need information from glyph's font, e.g.
      grub_font_get_xheight(main_glyph->font). However, main_glyph->font is
      NULL if main_glyph comes from ascii_font_glyph[]. Therefore
      grub_font_get_*() crashes because of NULL pointer.
      
      There is already a solution, the null_font. So, assign it to those glyphs
      in ascii_font_glyph[].
      
      Reported-by: default avatarDaniel Axtens <dja@axtens.net>
      Signed-off-by: default avatarZhang Boyang <zhangboyang.id@gmail.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      b272bbd4
    • Zhang Boyang's avatar
      font: Harden grub_font_blit_glyph() and grub_font_blit_glyph_mirror() · 918f5efa
      Zhang Boyang authored
      
      As a mitigation and hardening measure add sanity checks to
      grub_font_blit_glyph() and grub_font_blit_glyph_mirror(). This patch
      makes these two functions do nothing if target blitting area isn't fully
      contained in target bitmap. Therefore, if complex calculations in caller
      overflows and malicious coordinates are given, we are still safe because
      any coordinates which result in out-of-bound-write are rejected. However,
      this patch only checks for invalid coordinates, and doesn't provide any
      protection against invalid source glyph or destination glyph, e.g.
      mismatch between glyph size and buffer size.
      
      This hardening measure is designed to mitigate possible overflows in
      blit_comb(). If overflow occurs, it may return invalid bounding box
      during dry run and call grub_font_blit_glyph() with malicious
      coordinates during actual blitting. However, we are still safe because
      the scratch glyph itself is valid, although its size makes no sense, and
      any invalid coordinates are rejected.
      
      It would be better to call grub_fatal() if illegal parameter is detected.
      However, doing this may end up in a dangerous recursion because grub_fatal()
      would print messages to the screen and we are in the progress of drawing
      characters on the screen.
      
      Reported-by: default avatarDaniel Axtens <dja@axtens.net>
      Signed-off-by: default avatarZhang Boyang <zhangboyang.id@gmail.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      918f5efa
Loading