diff options
| -rw-r--r-- | meta/recipes-extended/acpica/acpica/CVE-2024-24856.patch | 33 | ||||
| -rw-r--r-- | meta/recipes-extended/acpica/acpica_20211217.bb | 4 |
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-extended/acpica/acpica/CVE-2024-24856.patch b/meta/recipes-extended/acpica/acpica/CVE-2024-24856.patch new file mode 100644 index 0000000000..beb6a79c8e --- /dev/null +++ b/meta/recipes-extended/acpica/acpica/CVE-2024-24856.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 4d4547cf13cca820ff7e0f859ba83e1a610b9fd0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Huai-Yuan Liu <qq810974084@gmail.com> | ||
| 3 | Date: Tue, 4 Jun 2024 11:52:15 +0000 | ||
| 4 | Subject: [PATCH] check null return of ACPI_ALLOCATE_ZEROED in | ||
| 5 | |||
| 6 | AcpiDbConvertToPackage ACPI_ALLOCATE_ZEROED may fails, Elements | ||
| 7 | might be null and will cause null pointer dereference later. | ||
| 8 | |||
| 9 | Signed-off-by: Huai-Yuan Liu <qq810974084@gmail.com> | ||
| 10 | |||
| 11 | CVE: CVE-2024-24856 | ||
| 12 | Upstream-Status: Backport [https://github.com/acpica/acpica/commit/4d4547cf13cca820ff7e0f859ba83e1a610b9fd0] | ||
| 13 | |||
| 14 | Signed-off-by: Yogita Urade <yogita.urade@windriver.com> | ||
| 15 | --- | ||
| 16 | source/components/debugger/dbconvert.c | 2 ++ | ||
| 17 | 1 file changed, 2 insertions(+) | ||
| 18 | |||
| 19 | diff --git a/source/components/debugger/dbconvert.c b/source/components/debugger/dbconvert.c | ||
| 20 | index 55307d0..c17a5ab 100644 | ||
| 21 | --- a/source/components/debugger/dbconvert.c | ||
| 22 | +++ b/source/components/debugger/dbconvert.c | ||
| 23 | @@ -354,6 +354,8 @@ AcpiDbConvertToPackage ( | ||
| 24 | |||
| 25 | Elements = ACPI_ALLOCATE_ZEROED ( | ||
| 26 | DB_DEFAULT_PKG_ELEMENTS * sizeof (ACPI_OBJECT)); | ||
| 27 | + if (!Elements) | ||
| 28 | + return (AE_NO_MEMORY); | ||
| 29 | |||
| 30 | This = String; | ||
| 31 | for (i = 0; i < (DB_DEFAULT_PKG_ELEMENTS - 1); i++) | ||
| 32 | -- | ||
| 33 | 2.40.0 | ||
diff --git a/meta/recipes-extended/acpica/acpica_20211217.bb b/meta/recipes-extended/acpica/acpica_20211217.bb index d1727c1dab..ec253b998f 100644 --- a/meta/recipes-extended/acpica/acpica_20211217.bb +++ b/meta/recipes-extended/acpica/acpica_20211217.bb | |||
| @@ -16,7 +16,9 @@ COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" | |||
| 16 | 16 | ||
| 17 | DEPENDS = "m4-native flex-native bison-native" | 17 | DEPENDS = "m4-native flex-native bison-native" |
| 18 | 18 | ||
| 19 | SRC_URI = "https://acpica.org/sites/acpica/files/acpica-unix-${PV}.tar.gz" | 19 | SRC_URI = "https://acpica.org/sites/acpica/files/acpica-unix-${PV}.tar.gz \ |
| 20 | file://CVE-2024-24856.patch \ | ||
| 21 | " | ||
| 20 | SRC_URI[sha256sum] = "2511f85828820d747fa3e2c3433d3a38c22db3d9c2fd900e1a84eb4173cb5992" | 22 | SRC_URI[sha256sum] = "2511f85828820d747fa3e2c3433d3a38c22db3d9c2fd900e1a84eb4173cb5992" |
| 21 | 23 | ||
| 22 | UPSTREAM_CHECK_URI = "https://acpica.org/downloads" | 24 | UPSTREAM_CHECK_URI = "https://acpica.org/downloads" |
