Skip to contentSkip to conversation

grub2: Several cve fixes

PATCH New Armin Kuster 1 participant 1 message Sep 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 grub2: Several cve fixes

From: Armin Kuster <[email protected]>

Source: Debian.org
MR: 109156, 109169, 109336, 109349, 109362, 109375, 109388
Type: Security Fix https://sources.debian.org/patches/grub2/2.04-20/
Disposition: Backport from
ChangeID: f87f309a172004f21ac28870b85477cb90438d50 Description:

Affects < 2.06

Fixes these CVE's:
CVE-2020-14372
CVE-2020-25632
CVE-2020-25647
CVE-2020-27749
CVE-2020-27779
CVE-2021-20225
CVE-2021-20233

---
V2]
Drop CVE-2020-14372_p3.patch, no existed function exposed via efi Needed Code shift to Move verifiers API to kernel image.

---
 ...s-Move-verifiers-API-to-kernel-image.patch | 574 ++++++++++++++++++
 .../grub/files/CVE-2020-14372.patch           |  79 +++
 .../grub/files/CVE-2020-14372_p1.patch        | 432 +++++++++++++
 .../grub/files/CVE-2020-14372_p2.patch        |  60 ++
 .../grub/files/CVE-2020-14372_p4.patch        | 168 +++++
 .../grub/files/CVE-2020-25632.patch           |  90 +++
 .../grub/files/CVE-2020-25647.patch           | 117 ++++
 .../grub/files/CVE-2020-27749_1.patch         |  80 +++
 .../grub/files/CVE-2020-27749_2.patch         | 123 ++++
 .../grub/files/CVE-2020-27749_3.patch         |  69 +++
 .../grub/files/CVE-2020-27749_4.patch         |  97 +++
 .../grub/files/CVE-2020-27749_5.patch         | 311 ++++++++++
 .../grub/files/CVE-2020-27749_6.patch         | 254 ++++++++
 .../grub/files/CVE-2020-27779.patch           |  72 +++
 .../grub/files/CVE-2021-20225.patch           |  57 ++
 .../grub/files/CVE-2021-20233.patch           |  50 ++
 meta/recipes-bsp/grub/grub2.inc               |  16 +
 17 files changed, 2649 insertions(+)
 create mode 100644 meta/recipes-bsp/grub/files/001-verifiers-Move-verifiers-API-to-kernel-image.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-14372.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-14372_p1.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-14372_p2.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-14372_p4.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-25632.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-25647.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-27749_1.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-27749_2.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-27749_3.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-27749_4.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-27749_5.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-27749_6.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2020-27779.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2021-20225.patch
 create mode 100644 meta/recipes-bsp/grub/files/CVE-2021-20233.patch
meta/recipes-bsp/grub/files/001-verifiers-Move-verifiers-API-to-kernel-image.patch new file +574 -0
new file mode 100644
index 0000000000..069232a15b
@@ -0,0 +1,574 @@
+From bb51c947d6a039f9f2580a15a88c94ff957a5ca7 Mon Sep 17 00:00:00 2001
+From: Marco A Benatto <[email protected]>
+Date: Wed, 23 Sep 2020 11:33:33 -0400
+Subject: verifiers: Move verifiers API to kernel image
+
+Move verifiers API from a module to the kernel image, so it can be
+used there as well. There are no functional changes in this patch.
+
+Signed-off-by: Marco A Benatto <[email protected]>
+Signed-off-by: Javier Martinez Canillas <[email protected]>
+Reviewed-by: Daniel Kiper <[email protected]>
+
+Patch-Name: 2021-02-security/001-verifiers-Move-verifiers-API-to-kernel-image.patch
+
+Upstream-Status: Backport
+CVE: CVE-2020-14372
+Supporting patch
+Signed-off-by: Armin Kuster <[email protected]>
+
+---
+ grub-core/Makefile.am                    | 1 +
+ grub-core/Makefile.core.def              | 6 +-----
+ grub-core/kern/main.c                    | 4 ++++
+ grub-core/{commands => kern}/verifiers.c | 8 ++------
+ include/grub/verify.h                    | 9 ++++++---
+ 5 files changed, 14 insertions(+), 14 deletions(-)
+ rename grub-core/{commands => kern}/verifiers.c (97%)
+
+Index: grub-2.04/grub-core/Makefile.am
+===================================================================
+--- grub-2.04.orig/grub-core/Makefile.am
++++ grub-2.04/grub-core/Makefile.am
+@@ -90,6 +90,7 @@ KERNEL_HEADER_FILES += $(top_srcdir)/inc
+ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/partition.h
+ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/term.h
+ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/time.h
++KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/verify.h
+ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/mm_private.h
+ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/net.h
+ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/memory.h
+Index: grub-2.04/grub-core/Makefile.core.def
+===================================================================
+--- grub-2.04.orig/grub-core/Makefile.core.def
++++ grub-2.04/grub-core/Makefile.core.def
+@@ -140,6 +140,7 @@ kernel = {
+   common = kern/rescue_parser.c;
+   common = kern/rescue_reader.c;
+   common = kern/term.c;
++  common = kern/verifiers.c;
+ 
+   noemu = kern/compiler-rt.c;
+   noemu = kern/mm.c;
+@@ -943,11 +944,6 @@ module = {
+ };
+ 
+ module = {
+-  name = verifiers;
+-  common = commands/verifiers.c;
+-};
+-
+-module = {
+   name = shim_lock;
+   common = commands/efi/shim_lock.c;
+   enable = x86_64_efi;
+Index: grub-2.04/grub-core/kern/main.c
+===================================================================
+--- grub-2.04.orig/grub-core/kern/main.c
++++ grub-2.04/grub-core/kern/main.c
+@@ -29,6 +29,7 @@
+ #include <grub/command.h>
+ #include <grub/reader.h>
+ #include <grub/parser.h>
++#include <grub/verify.h>
+ 
+ #ifdef GRUB_MACHINE_PCBIOS
+ #include <grub/machine/memory.h>
+@@ -274,6 +275,9 @@ grub_main (void)
+   grub_printf ("Welcome to GRUB!\n\n");
+   grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
+ 
++  /* Init verifiers API. */
++  grub_verifiers_init ();
++
+   grub_load_config ();
+ 
+   grub_boot_time ("Before loading embedded modules.");
+Index: grub-2.04/grub-core/commands/verifiers.c
+===================================================================
+--- grub-2.04.orig/grub-core/commands/verifiers.c
++++ /dev/null
+@@ -1,228 +0,0 @@
+-/*
+- *  GRUB  --  GRand Unified Bootloader
+- *  Copyright (C) 2017  Free Software Foundation, Inc.
+- *
+- *  GRUB is free software: you can redistribute it and/or modify
+- *  it under the terms of the GNU General Public License as published by
+- *  the Free Software Foundation, either version 3 of the License, or
+- *  (at your option) any later version.
+- *
+- *  GRUB is distributed in the hope that it will be useful,
+- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- *  GNU General Public License for more details.
+- *
+- *  You should have received a copy of the GNU General Public License
+- *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
+- *
+- *  Verifiers helper.
+- */
+-
+-#include <grub/file.h>
+-#include <grub/verify.h>
+-#include <grub/dl.h>
+-
+-GRUB_MOD_LICENSE ("GPLv3+");
+-
+-struct grub_file_verifier *grub_file_verifiers;
+-
+-struct grub_verified
+-{
+-  grub_file_t file;
+-  void *buf;
+-};
+-typedef struct grub_verified *grub_verified_t;
+-
+-static void
+-verified_free (grub_verified_t verified)
+-{
+-  if (verified)
+-    {
+-      grub_free (verified->buf);
+-      grub_free (verified);
+-    }
+-}
+-
+-static grub_ssize_t
+-verified_read (struct grub_file *file, char *buf, grub_size_t len)
+-{
+-  grub_verified_t verified = file->data;
+-
+-  grub_memcpy (buf, (char *) verified->buf + file->offset, len);
+-  return len;
+-}
+-
+-static grub_err_t
+-verified_close (struct grub_file *file)
+-{
+-  grub_verified_t verified = file->data;
+-
+-  grub_file_close (verified->file);
+-  verified_free (verified);
+-  file->data = 0;
+-
+-  /* Device and name are freed by parent. */
+-  file->device = 0;
+-  file->name = 0;
+-
+-  return grub_errno;
+-}
+-
+-struct grub_fs verified_fs =
+-{
+-  .name = "verified_read",
+-  .fs_read = verified_read,
+-  .fs_close = verified_close
+-};
+-
+-static grub_file_t
+-grub_verifiers_open (grub_file_t io, enum grub_file_type type)
+-{
+-  grub_verified_t verified = NULL;
+-  struct grub_file_verifier *ver;
+-  void *context;
+-  grub_file_t ret = 0;
+-  grub_err_t err;
+-  int defer = 0;
+-
+-  grub_dprintf ("verify", "file: %s type: %d\n", io->name, type);
+-
+-  if ((type & GRUB_FILE_TYPE_MASK) == GRUB_FILE_TYPE_SIGNATURE
+-      || (type & GRUB_FILE_TYPE_MASK) == GRUB_FILE_TYPE_VERIFY_SIGNATURE
+-      || (type & GRUB_FILE_TYPE_SKIP_SIGNATURE))
+-    return io;
+-
+-  if (io->device->disk &&
+-      (io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID
+-       || io->device->disk->dev->id == GRUB_DISK_DEVICE_PROCFS_ID))
+-    return io;
+-
+-  FOR_LIST_ELEMENTS(ver, grub_file_verifiers)
+-    {
+-      enum grub_verify_flags flags = 0;
+-      err = ver->init (io, type, &context, &flags);
+-      if (err)
+-	goto fail_noclose;
+-      if (flags & GRUB_VERIFY_FLAGS_DEFER_AUTH)
+-	{
+-	  defer = 1;
+-	  continue;
+-	}
+-      if (!(flags & GRUB_VERIFY_FLAGS_SKIP_VERIFICATION))
+-	break;
+-    }
+-
+-  if (!ver)
+-    {
+-      if (defer)
+-	{
+-	  grub_error (GRUB_ERR_ACCESS_DENIED,
+-		      N_("verification requested but nobody cares: %s"), io->name);
+-	  goto fail_noclose;
+-	}
+-
+-      /* No verifiers wanted to verify. Just return underlying file. */
+-      return io;
+-    }
+-
+-  ret = grub_malloc (sizeof (*ret));
+-  if (!ret)
+-    {
+-      goto fail;
+-    }
+-  *ret = *io;
+-
+-  ret->fs = &verified_fs;
+-  ret->not_easily_seekable = 0;
+-  if (ret->size >> (sizeof (grub_size_t) * GRUB_CHAR_BIT - 1))
+-    {
+-      grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
+-		  N_("big file signature isn't implemented yet"));
+-      goto fail;
+-    }
+-  verified = grub_malloc (sizeof (*verified));
+-  if (!verified)
+-    {
+-      goto fail;
+-    }
+-  verified->buf = grub_malloc (ret->size);
+-  if (!verified->buf)
+-    {
+-      goto fail;
+-    }
+-  if (grub_file_read (io, verified->buf, ret->size) != (grub_ssize_t) ret->size)
+-    {
+-      if (!grub_errno)
+-	grub_error (GRUB_ERR_FILE_READ_ERROR, N_("premature end of file %s"),
+-		    io->name);
+-      goto fail;
+-    }
+-
+-  err = ver->write (context, verified->buf, ret->size);
+-  if (err)
+-    goto fail;
+-
+-  err = ver->fini ? ver->fini (context) : GRUB_ERR_NONE;
+-  if (err)
+-    goto fail;
+-
+-  if (ver->close)
+-    ver->close (context);
+-
+-  FOR_LIST_ELEMENTS_NEXT(ver, grub_file_verifiers)
+-    {
+-      enum grub_verify_flags flags = 0;
+-      err = ver->init (io, type, &context, &flags);
+-      if (err)
+-	goto fail_noclose;
+-      if (flags & GRUB_VERIFY_FLAGS_SKIP_VERIFICATION ||
+-	  /* Verification done earlier. So, we are happy here. */
+-	  flags & GRUB_VERIFY_FLAGS_DEFER_AUTH)
+-	continue;
+-      err = ver->write (context, verified->buf, ret->size);
+-      if (err)
+-	goto fail;
+-
+-      err = ver->fini ? ver->fini (context) : GRUB_ERR_NONE;
+-      if (err)
+-	goto fail;
+-
+-      if (ver->close)
+-	ver->close (context);
+-    }
+-
+-  verified->file = io;
+-  ret->data = verified;
+-  return ret;
+-
+- fail:
+-  ver->close (context);
+- fail_noclose:
+-  verified_free (verified);
+-  grub_free (ret);
+-  return NULL;
+-}
+-
+-grub_err_t
+-grub_verify_string (char *str, enum grub_verify_string_type type)
+-{
+-  struct grub_file_verifier *ver;
+-  FOR_LIST_ELEMENTS(ver, grub_file_verifiers)
+-    {
+-      grub_err_t err;
+-      err = ver->verify_string ? ver->verify_string (str, type) : GRUB_ERR_NONE;
+-      if (err)
+-	return err;
+-    }
+-  return GRUB_ERR_NONE;
+-}
+-
+-GRUB_MOD_INIT(verifiers)
+-{
+-  grub_file_filter_register (GRUB_FILE_FILTER_VERIFY, grub_verifiers_open);
+-}
+-
+-GRUB_MOD_FINI(verifiers)
+-{
+-  grub_file_filter_unregister (GRUB_FILE_FILTER_VERIFY);
+-}
+Index: grub-2.04/grub-core/kern/verifiers.c
+===================================================================
+--- /dev/null
++++ grub-2.04/grub-core/kern/verifiers.c
+@@ -0,0 +1,224 @@
++/*
++ *  GRUB  --  GRand Unified Bootloader
++ *  Copyright (C) 2017  Free Software Foundation, Inc.
++ *
++ *  GRUB is free software: you can redistribute it and/or modify
++ *  it under the terms of the GNU General Public License as published by
++ *  the Free Software Foundation, either version 3 of the License, or
++ *  (at your option) any later version.
++ *
++ *  GRUB is distributed in the hope that it will be useful,
++ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
++ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ *  GNU General Public License for more details.
++ *
++ *  You should have received a copy of the GNU General Public License
++ *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
++ *
++ *  Verifiers helper.
++ */
++
++#include <grub/file.h>
++#include <grub/verify.h>
++#include <grub/dl.h>
++
++GRUB_MOD_LICENSE ("GPLv3+");
++
++struct grub_file_verifier *grub_file_verifiers;
++
++struct grub_verified
++{
++  grub_file_t file;
++  void *buf;
++};
++typedef struct grub_verified *grub_verified_t;
++
++static void
++verified_free (grub_verified_t verified)
++{
++  if (verified)
++    {
++      grub_free (verified->buf);
++      grub_free (verified);
++    }
++}
++
++static grub_ssize_t
++verified_read (struct grub_file *file, char *buf, grub_size_t len)
++{
++  grub_verified_t verified = file->data;
++
++  grub_memcpy (buf, (char *) verified->buf + file->offset, len);
++  return len;
++}
++
++static grub_err_t
++verified_close (struct grub_file *file)
++{
++  grub_verified_t verified = file->data;
++
++  grub_file_close (verified->file);
++  verified_free (verified);
++  file->data = 0;
++
++  /* Device and name are freed by parent. */
++  file->device = 0;
++  file->name = 0;
++
++  return grub_errno;
++}
++
++struct grub_fs verified_fs =
++{
++  .name = "verified_read",
++  .fs_read = verified_read,
++  .fs_close = verified_close
++};
++
++static grub_file_t
++grub_verifiers_open (grub_file_t io, enum grub_file_type type)
++{
++  grub_verified_t verified = NULL;
++  struct grub_file_verifier *ver;
++  void *context;
++  grub_file_t ret = 0;
++  grub_err_t err;
++  int defer = 0;
++
++  grub_dprintf ("verify", "file: %s type: %d\n", io->name, type);
++
++  if ((type & GRUB_FILE_TYPE_MASK) == GRUB_FILE_TYPE_SIGNATURE
++      || (type & GRUB_FILE_TYPE_MASK) == GRUB_FILE_TYPE_VERIFY_SIGNATURE
++      || (type & GRUB_FILE_TYPE_SKIP_SIGNATURE))
++    return io;
++
++  if (io->device->disk &&
++      (io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID
++       || io->device->disk->dev->id == GRUB_DISK_DEVICE_PROCFS_ID))
++    return io;
++
++  FOR_LIST_ELEMENTS(ver, grub_file_verifiers)
++    {
++      enum grub_verify_flags flags = 0;
++      err = ver->init (io, type, &context, &flags);
++      if (err)
++	goto fail_noclose;
++      if (flags & GRUB_VERIFY_FLAGS_DEFER_AUTH)
++	{
++	  defer = 1;
++	  continue;
++	}
++      if (!(flags & GRUB_VERIFY_FLAGS_SKIP_VERIFICATION))
++	break;
++    }
++
++  if (!ver)
++    {
++      if (defer)
++	{
++	  grub_error (GRUB_ERR_ACCESS_DENIED,
++		      N_("verification requested but nobody cares: %s"), io->name);
++	  goto fail_noclose;
++	}
++
++      /* No verifiers wanted to verify. Just return underlying file. */
++      return io;
++    }
++
++  ret = grub_malloc (sizeof (*ret));
++  if (!ret)
++    {
++      goto fail;
++    }
++  *ret = *io;
++
++  ret->fs = &verified_fs;
++  ret->not_easily_seekable = 0;
++  if (ret->size >> (sizeof (grub_size_t) * GRUB_CHAR_BIT - 1))
++    {
++      grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
++		  N_("big file signature isn't implemented yet"));
++      goto fail;
++    }
++  verified = grub_malloc (sizeof (*verified));
++  if (!verified)
++    {
++      goto fail;
++    }
++  verified->buf = grub_malloc (ret->size);
++  if (!verified->buf)
++    {
++      goto fail;
++    }
++  if (grub_file_read (io, verified->buf, ret->size) != (grub_ssize_t) ret->size)
++    {
++      if (!grub_errno)
++	grub_error (GRUB_ERR_FILE_READ_ERROR, N_("premature end of file %s"),
++		    io->name);
++      goto fail;
++    }
++
++  err = ver->write (context, verified->buf, ret->size);
++  if (err)
++    goto fail;
++
++  err = ver->fini ? ver->fini (context) : GRUB_ERR_NONE;
++  if (err)
++    goto fail;
++
++  if (ver->close)
++    ver->close (context);
++
++  FOR_LIST_ELEMENTS_NEXT(ver, grub_file_verifiers)
++    {
++      enum grub_verify_flags flags = 0;
++      err = ver->init (io, type, &context, &flags);
++      if (err)
++	goto fail_noclose;
++      if (flags & GRUB_VERIFY_FLAGS_SKIP_VERIFICATION ||
++	  /* Verification done earlier. So, we are happy here. */
++	  flags & GRUB_VERIFY_FLAGS_DEFER_AUTH)
++	continue;
++      err = ver->write (context, verified->buf, ret->size);
++      if (err)
++	goto fail;
++
++      err = ver->fini ? ver->fini (context) : GRUB_ERR_NONE;
++      if (err)
++	goto fail;
++
++      if (ver->close)
++	ver->close (context);
++    }
++
++  verified->file = io;
++  ret->data = verified;
++  return ret;
++
++ fail:
++  ver->close (context);
++ fail_noclose:
++  verified_free (verified);
++  grub_free (ret);
++  return NULL;
++}
++
++grub_err_t
++grub_verify_string (char *str, enum grub_verify_string_type type)
++{
++  struct grub_file_verifier *ver;
++  FOR_LIST_ELEMENTS(ver, grub_file_verifiers)
++    {
++      grub_err_t err;
++      err = ver->verify_string ? ver->verify_string (str, type) : GRUB_ERR_NONE;
++      if (err)
++	return err;
++    }
++  return GRUB_ERR_NONE;
++}
++
++void
++grub_verifiers_init (void)
++{
++  grub_file_filter_register (GRUB_FILE_FILTER_VERIFY, grub_verifiers_open);
++}
+Index: grub-2.04/include/grub/verify.h
+===================================================================
+--- grub-2.04.orig/include/grub/verify.h
++++ grub-2.04/include/grub/verify.h
+@@ -64,7 +64,10 @@ struct grub_file_verifier
+   grub_err_t (*verify_string) (char *str, enum grub_verify_string_type type);
+ };
+ 
+-extern struct grub_file_verifier *grub_file_verifiers;
++extern struct grub_file_verifier *EXPORT_VAR (grub_file_verifiers);
++
++extern void
++grub_verifiers_init (void);
+ 
+ static inline void
+ grub_verifier_register (struct grub_file_verifier *ver)
+@@ -78,7 +81,7 @@ grub_verifier_unregister (struct grub_fi
+   grub_list_remove (GRUB_AS_LIST (ver));
+ }
+ 
+-grub_err_t
+-grub_verify_string (char *str, enum grub_verify_string_type type);
++extern grub_err_t
++EXPORT_FUNC (grub_verify_string) (char *str, enum grub_verify_string_type type);
+ 
+ #endif /* ! GRUB_VERIFY_HEADER */
meta/recipes-bsp/grub/files/CVE-2020-14372.patch new file +79 -0

79 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-14372_p1.patch new file +432 -0

432 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-14372_p2.patch new file +60 -0

60 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-14372_p4.patch new file +168 -0

168 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-25632.patch new file +90 -0

90 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-25647.patch new file +117 -0

117 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-27749_1.patch new file +80 -0

80 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-27749_2.patch new file +123 -0

123 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-27749_3.patch new file +69 -0

69 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-27749_4.patch new file +97 -0

97 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-27749_5.patch new file +311 -0

311 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-27749_6.patch new file +254 -0

254 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2020-27779.patch new file +72 -0

72 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2021-20225.patch new file +57 -0

57 lines not on this page · raw message

meta/recipes-bsp/grub/files/CVE-2021-20233.patch new file +50 -0

50 lines not on this page · raw message

meta/recipes-bsp/grub/grub2.inc +16 -0
index 180e3752f8..75d3457148 100644
@@ -31,6 +31,22 @@ SRC_URI = "${GNU_MIRROR}/grub/grub-${PV}.tar.gz \
            file://CVE-2020-15706-script-Avoid-a-use-after-free-when-redefining-a-func.patch \
            file://CVE-2020-15707-linux-Fix-integer-overflows-in-initrd-size-handling.patch \
            file://determinism.patch \
+           file://CVE-2020-25632.patch \
+           file://CVE-2020-25647.patch \
+           file://001-verifiers-Move-verifiers-API-to-kernel-image.patch \
+           file://CVE-2020-14372_p1.patch \
+           file://CVE-2020-14372_p2.patch \
+           file://CVE-2020-14372_p4.patch \
+           file://CVE-2020-14372.patch \
+           file://CVE-2020-27779.patch \
+           file://CVE-2021-20225.patch \
+           file://CVE-2021-20233.patch \
+           file://CVE-2020-27749_1.patch \
+           file://CVE-2020-27749_2.patch \
+           file://CVE-2020-27749_3.patch \
+           file://CVE-2020-27749_4.patch \
+           file://CVE-2020-27749_5.patch \
+           file://CVE-2020-27749_6.patch \
 "
 SRC_URI[md5sum] = "5ce674ca6b2612d8939b9e6abed32934"
 SRC_URI[sha256sum] = "f10c85ae3e204dbaec39ae22fa3c5e99f0665417e91c2cb49b7e5031658ba6ea"
Signature · 1 line
2.25.1