Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
tomcat.26534
tomcat-9.0-CVE-2021-25122.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tomcat-9.0-CVE-2021-25122.patch of Package tomcat.26534
From d47c20a776e8919eaca8da9390a32bc8bf8210b1 Mon Sep 17 00:00:00 2001 From: Mark Thomas <markt@apache.org> Date: Thu, 14 Jan 2021 16:59:43 +0000 Subject: [PATCH] Simplify the code and fix an edge case for BZ 64830 https://bz.apache.org/bugzilla/show_bug.cgi?id=64830 --- java/org/apache/coyote/AbstractProtocol.java | 6 +++--- webapps/docs/changelog.xml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) Index: apache-tomcat-9.0.36-src/java/org/apache/coyote/AbstractProtocol.java =================================================================== --- apache-tomcat-9.0.36-src.orig/java/org/apache/coyote/AbstractProtocol.java +++ apache-tomcat-9.0.36-src/java/org/apache/coyote/AbstractProtocol.java @@ -870,8 +870,10 @@ public abstract class AbstractProtocol<S if (state == SocketState.UPGRADING) { // Get the HTTP upgrade handler UpgradeToken upgradeToken = processor.getUpgradeToken(); - // Retrieve leftover input + // Restore leftover input to the wrapper so the upgrade + // processor can process it. ByteBuffer leftOverInput = processor.getLeftoverInput(); + wrapper.unRead(leftOverInput); if (upgradeToken == null) { // Assume direct HTTP/2 connection UpgradeProtocol upgradeProtocol = getProtocol().getUpgradeProtocol("h2c"); @@ -880,7 +882,6 @@ public abstract class AbstractProtocol<S release(processor); // Create the upgrade processor processor = upgradeProtocol.getProcessor(wrapper, getProtocol().getAdapter()); - wrapper.unRead(leftOverInput); // Associate with the processor with the connection wrapper.setCurrentProcessor(processor); } else { Index: apache-tomcat-9.0.36-src/webapps/docs/changelog.xml =================================================================== --- apache-tomcat-9.0.36-src.orig/webapps/docs/changelog.xml +++ apache-tomcat-9.0.36-src/webapps/docs/changelog.xml @@ -174,6 +174,10 @@ <subsection name="Catalina"> <changelog> <fix> + Additional fix for <bug>64830</bug> to address an edge case that could + trigger request corruption with h2c connections. (markt) + </fix> + <fix> Reduce reflection use and remove AJP specific code in the Connector. (remm/markt/fhanik) </fix>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor