fix CVE-2026-119618 #62
Open
zhangtao99Add on 5 days ago
Total: 2 files changed+40-1
@@ -0,0 +1,31 @@
1+Origin: https://github.com/apache/httpd/commit/5ed39287660daacd1233cb9bbc984b25fa9a4fe3
2+ 
3+From 5ed39287660daacd1233cb9bbc984b25fa9a4fe3 Mon Sep 17 00:00:00 2001
4+From: Eric Covener <covener@apache.org>
5+Date: Mon, 9 Nov 2026 01:51:55 +0000
6+Subject: [PATCH] mod_http2: assign_headers update table (#975)
7+ 
8+Backport of the upstream Apache httpd fix for CVE-2026-119618: store the
9+synthetic Content-Length header in the per-request r->headers_in table
10+instead of the h2_request table shared with stream clones, which is not
11+thread-safe.
12+ 
13+CVE: CVE-2026-119618
14+---
15+ mod_http2/h2_request.c | 2 +-
16+ 1 file changed, 1 insertion(+), 1 deletion(-)
17+ 
18+diff --git a/mod_http2/h2_request.c b/mod_http2/h2_request.c
19+--- a/mod_http2/h2_request.c
20++++ b/mod_http2/h2_request.c
21+@@ -350,7 +350,7 @@ static void assign_headers(request_rec *r, const h2_request *req,
22+ /* If we have a content-type, but already seen eos, no more
23+ * data will come. Signal a zero content length explicitly.
24+ */
25+- apr_table_setn(req->headers, "Content-Length", "0");
26++ apr_table_setn(r->headers_in, "Content-Length", "0");
27+ }
28+ }
29+ #if !AP_HAS_RESPONSE_BUCKETS
30+--
31+2.33.0
@@ -2,12 +2,14 @@
2 2 
3Name: mod_http23Name: mod_http2
4Version: 2.0.424Version: 2.0.42
5-Release: 15+Release: 2
6Summary: Support for the HTTP/2 transport layer6Summary: Support for the HTTP/2 transport layer
7License: Apache-2.07License: Apache-2.0
8URL: https://icing.github.io/mod_h2/8URL: https://icing.github.io/mod_h2/
9Source0: https://github.com/icing/mod_h2/releases/download/v%{version}/%{name}-%{version}.tar.gz9Source0: https://github.com/icing/mod_h2/releases/download/v%{version}/%{name}-%{version}.tar.gz
10 10 
11+Patch0: backport-CVE-2026-119618.patch
12+ 
11BuildRequires: make gcc pkgconfig httpd-devel >= 2.4.20 libnghttp2-devel >= 1.7.0 openssl-devel >= 1.0.2 autoconf libtool hostname13BuildRequires: make gcc pkgconfig httpd-devel >= 2.4.20 libnghttp2-devel >= 1.7.0 openssl-devel >= 1.0.2 autoconf libtool hostname
12Requires: httpd-mmn = %{_httpd_mmn}14Requires: httpd-mmn = %{_httpd_mmn}
13 15 
@@ -48,6 +50,12 @@ make check
48%doc ChangeLog README README.md50%doc ChangeLog README README.md
49 51 
50%changelog52%changelog
53+* Sat Nov 14 2026 zhangtao99 <zhangtao@kylinos.cn> - 2.0.42-2
54+- Type:cves
55+- CVE:CVE-2026-119618
56+- SUG:https://httpd.apache.org/security/vulnerabilities_24.html
57+- DESC:fix CVE-2026-119618
58+ 
51* Mon Jun 08 2026 gaihuiying <eaglegai@163.com> - 2.0.42-159* Mon Jun 08 2026 gaihuiying <eaglegai@163.com> - 2.0.42-1
52- Type:requirement60- Type:requirement
53- CVE:NA61- CVE:NA