Skip to contentSkip to conversation

] apache2: upgrade 2.4.46 -> 2.4.48

meta-webserver Armin Kuster 1 participant 1 message Sep 3, 2021

lore
Share & tools
lore
#0 lore raw

From: Changqing Li <[email protected]>

Source: https://git.openembedded.org/meta-openembedded
https://git.openembedded.org/meta-openembedded
MR: 112869, 112835, 105131, 112702, 112829
Type: Security Fix
Disposition: Backport from https://git.openembedded.org/meta-openembedded/commit/meta-webserver/recipes-httpd/apache2?id=ba016d73b5233a43ec6e398b45445d13ddaad745
ChangeID: f3ac0bc1005c94a694573b823c8f3f7d4a15360c
Description:

Apache2 2.4.x is an LTS version with bug and CVE fixes.
https://downloads.apache.org/httpd/CHANGES_2.4.48

Includes these CVE fixes:

2.4.48
CVE-2021-31618

2.4.47
CVE-2020-13938
CVE-2020-11985
CVE-2021-33193
CVE-2019-17567

Drop these patches included in update:
CVE-2020-13950.patch
CVE-2020-35452.patch
CVE-2021-26690.patch
CVE-2021-26691.patch
CVE-2021-30641.patch

(cherry picked from commit ba016d73b5233a43ec6e398b45445d13ddaad745)
---
 .../apache2/apache2/CVE-2020-13950.patch      | 45 -------------
 .../apache2/apache2/CVE-2020-35452.patch      | 49 --------------
 .../apache2/apache2/CVE-2021-26690.patch      | 39 -----------
 .../apache2/apache2/CVE-2021-26691.patch      | 35 ----------
 .../apache2/apache2/CVE-2021-30641.patch      | 66 -------------------
 .../{apache2_2.4.46.bb => apache2_2.4.48.bb}  |  9 +--
 6 files changed, 2 insertions(+), 241 deletions(-)
 delete mode 100644 meta-webserver/recipes-httpd/apache2/apache2/CVE-2020-13950.patch
 delete mode 100644 meta-webserver/recipes-httpd/apache2/apache2/CVE-2020-35452.patch
 delete mode 100644 meta-webserver/recipes-httpd/apache2/apache2/CVE-2021-26690.patch
 delete mode 100644 meta-webserver/recipes-httpd/apache2/apache2/CVE-2021-26691.patch
 delete mode 100644 meta-webserver/recipes-httpd/apache2/apache2/CVE-2021-30641.patch
 rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.46.bb => apache2_2.4.48.bb} (96%)
meta-webserver/recipes-httpd/apache2/apache2/CVE-2020-13950.patch deleted +0 -45
deleted file mode 100644
index 4eb6b85b1a..0000000000
@@ -1,45 +0,0 @@
-From 8c162db8b65b2193e622b780e8c6516d4265f68b Mon Sep 17 00:00:00 2001
-From: Yann Ylavic <[email protected]>
-Date: Mon, 11 May 2015 15:48:58 +0000
-Subject: [PATCH] mod_proxy_http: follow up to r1656259. The proxy connection
- may be NULL during prefetch, don't try to dereference it! Still
- origin->keepalive will be set according to p_conn->close by the caller
- (proxy_http_handler).
-
-git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1678771 13f79535-47bb-0310-9956-ffa450edef68
-
-Upstream-Status: Backport
-CVE: CVE-2020-35504
-
-Reference to upstream patch:
-https://bugzilla.redhat.com/show_bug.cgi?id=1966738
-https://github.com/apache/httpd/commit/8c162db8b65b2193e622b780e8c6516d4265f68b
-
-Signed-off-by: Li Wang <[email protected]>
----
- modules/proxy/mod_proxy_http.c | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c
-index ec1e042..5f507d5 100644
---- a/modules/proxy/mod_proxy_http.c
-+++ b/modules/proxy/mod_proxy_http.c
-@@ -570,7 +570,6 @@ static int ap_proxy_http_prefetch(proxy_http_req_t *req,
-     apr_off_t bytes;
-     int force10, rv;
-     apr_read_type_e block;
--    conn_rec *origin = p_conn->connection;
- 
-     if (apr_table_get(r->subprocess_env, "force-proxy-request-1.0")) {
-         if (req->expecting_100) {
-@@ -630,7 +629,6 @@ static int ap_proxy_http_prefetch(proxy_http_req_t *req,
-                       "chunked body with Content-Length (C-L ignored)",
-                       c->client_ip, c->remote_host ? c->remote_host: "");
-         req->old_cl_val = NULL;
--        origin->keepalive = AP_CONN_CLOSE;
-         p_conn->close = 1;
-     }
- 
--- 
-2.7.4
-
meta-webserver/recipes-httpd/apache2/apache2/CVE-2020-35452.patch deleted +0 -49

49 lines not on this page · raw message

meta-webserver/recipes-httpd/apache2/apache2/CVE-2021-26690.patch deleted +0 -39
deleted file mode 100644
index d3aea9e122..0000000000
@@ -1,39 +0,0 @@
-From 67bd9bfe6c38831e14fe7122f1d84391472498f8 Mon Sep 17 00:00:00 2001
-From: Yann Ylavic <[email protected]>
-Date: Mon, 1 Mar 2021 20:07:08 +0000
-Subject: [PATCH] mod_session: save one apr_strtok() in
- session_identity_decode().
-
-When the encoding is invalid (missing '='), no need to parse further.
-
-git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887050 13f79535-47bb-0310-9956-ffa450edef68
-
-Upstream-Status: Backport
-CVE: CVE-2021-26690
-
-Reference to upstream patch:
-https://security-tracker.debian.org/tracker/CVE-2021-26690
-https://github.com/apache/httpd/commit/67bd9bfe6c38831e14fe7122f1d84391472498f8
-
-Signed-off-by: Li Wang <[email protected]>
----
- modules/session/mod_session.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/modules/session/mod_session.c b/modules/session/mod_session.c
-index ebd05b0..af70f6b 100644
---- a/modules/session/mod_session.c
-+++ b/modules/session/mod_session.c
-@@ -404,8 +404,8 @@ static apr_status_t session_identity_decode(request_rec * r, session_rec * z)
-         char *plast = NULL;
-         const char *psep = "=";
-         char *key = apr_strtok(pair, psep, &plast);
--        char *val = apr_strtok(NULL, psep, &plast);
-         if (key && *key) {
-+            char *val = apr_strtok(NULL, sep, &plast);
-             if (!val || !*val) {
-                 apr_table_unset(z->entries, key);
-             }
--- 
-2.7.4
-
meta-webserver/recipes-httpd/apache2/apache2/CVE-2021-26691.patch deleted +0 -35
deleted file mode 100644
index f9cf868d01..0000000000
@@ -1,35 +0,0 @@
-From 7e09dd714fc62c08c5b0319ed7b9702594faf49b Mon Sep 17 00:00:00 2001
-From: Yann Ylavic <[email protected]>
-Date: Mon, 1 Mar 2021 20:13:54 +0000
-Subject: [PATCH] mod_session: account for the '&' in identity_concat().
-
-git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887052 13f79535-47bb-0310-9956-ffa450edef68
-
-Upstream-Status: Backport
-CVE: CVE-2021-26691
-
-Reference to upstream patch:
-https://bugzilla.redhat.com/show_bug.cgi?id=1966732
-https://github.com/apache/httpd/commit/7e09dd714fc62c08c5b0319ed7b9702594faf49b
-
-Signed-off-by: Li Wang <[email protected]>
----
- modules/session/mod_session.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/modules/session/mod_session.c b/modules/session/mod_session.c
-index 7ee477c..ebd05b0 100644
---- a/modules/session/mod_session.c
-+++ b/modules/session/mod_session.c
-@@ -317,7 +317,7 @@ static apr_status_t ap_session_set(request_rec * r, session_rec * z,
- static int identity_count(void *v, const char *key, const char *val)
- {
-     int *count = v;
--    *count += strlen(key) * 3 + strlen(val) * 3 + 1;
-+    *count += strlen(key) * 3 + strlen(val) * 3 + 2;
-     return 1;
- }
- 
--- 
-2.7.4
-
meta-webserver/recipes-httpd/apache2/apache2/CVE-2021-30641.patch deleted +0 -66

66 lines not on this page · raw message

meta-webserver/recipes-httpd/apache2/apache2_2.4.48.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.46.bb +2 -7
similarity index 96%
rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.46.bb
rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.48.bb
index 4fc1f16317..7af824dd16 100644
@@ -15,11 +15,6 @@ SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \
            file://0007-apache2-allow-to-disable-selinux-support.patch \
            file://apache-configure_perlbin.patch \
            file://0001-support-apxs.in-force-destdir-to-be-empty-string.patch \
-           file://CVE-2020-13950.patch \
-           file://CVE-2020-35452.patch \
-           file://CVE-2021-26690.patch \
-           file://CVE-2021-26691.patch \
-           file://CVE-2021-30641.patch \
           "
 
 SRC_URI_append_class-target = " \
@@ -31,8 +26,8 @@ SRC_URI_append_class-target = " \
            "
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
-SRC_URI[md5sum] = "7d661ea5e736dac5e2761d9f49fe8361"
-SRC_URI[sha256sum] = "740eddf6e1c641992b22359cabc66e6325868c3c5e2e3f98faf349b61ecf41ea"
+SRC_URI[md5sum] = "a7088cec171b0d00bf43394ce64d3909"
+SRC_URI[sha256sum] = "1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c"
 
 S = "${WORKDIR}/httpd-${PV}"
 
Signature · 1 line
2.25.1