https://bugzilla.redhat.com/show_bug.cgi?id=1864680
Bug ID: 1864680 Summary: CVE-2019-17638 jetty: double release of resouce can lead to information disclosure Product: Security Response Hardware: All OS: Linux Status: NEW Component: vulnerability Keywords: Security Severity: medium Priority: medium Assignee: security-response-team@redhat.com Reporter: gsuckevi@redhat.com CC: aboyko@redhat.com, aileenc@redhat.com, bkearney@redhat.com, chazlett@redhat.com, drieden@redhat.com, eclipse-sig@lists.fedoraproject.org, ggaughan@redhat.com, gmalinko@redhat.com, gvarsami@redhat.com, hhorak@redhat.com, janstey@redhat.com, java-maint@redhat.com, java-sig-commits@lists.fedoraproject.org, jcoleman@redhat.com, jjohnstn@redhat.com, jochrist@redhat.com, jorton@redhat.com, jwon@redhat.com, kconner@redhat.com, krathod@redhat.com, krzysztof.daniel@gmail.com, ldimaggi@redhat.com, mat.booth@redhat.com, mizdebsk@redhat.com, nwallace@redhat.com, pdrozd@redhat.com, pjindal@redhat.com, rwagner@redhat.com, sochotni@redhat.com, sthorger@redhat.com, tcunning@redhat.com, tkirby@redhat.com, tlestach@redhat.com Target Milestone: --- Classification: Other
In Eclipse Jetty, versions 9.4.27.v20200227 to 9.4.29.v20200521, in case of too large response headers, Jetty throws an exception to produce an HTTP 431 error. When this happens, the ByteBuffer containing the HTTP response headers is released back to the ByteBufferPool twice. Because of this double release, two threads can acquire the same ByteBuffer from the pool and while thread1 is about to use the ByteBuffer to write response1 data, thread2 fills the ByteBuffer with response2 data. Thread1 then proceeds to write the buffer that now contains response2 data. This results in client1, which issued request1 and expects responses, to see response2 which could contain sensitive data belonging to client2 (HTTP session ids, authentication credentials, etc.).
References: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564984 https://github.com/eclipse/jetty.project/issues/4936