JDK-8255559 : Leak File Descriptors Because of ResolverLocalFilesystem#engineResolveURI()
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.xml.crypto
  • Affected Version: 8u261
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-28
  • Updated: 2021-03-01
  • Resolved: 2020-11-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 8
11.0.11Fixed 8u271Fixed
Description
While validating XML signature, ResolverLocalFilesystem.engineResolveURI() opens a new Input Stream which is never closed leading to leakage in file descriptor.
When large number of files are validated, new file descriptor allocation might fail causing the application to fail.
Comments
Fix Request Should get backported for parity with 11.0.11-oracle. Applies cleanly.
28-12-2020

Changeset: 6e8b8628 Author: prajwal_kumaraswamy <prajwal.kumaraswamy@oracle.com> Committer: Sean Coffey <coffeys@openjdk.org> Date: 2020-11-11 09:24:42 +0000 URL: https://github.com/openjdk/jdk/commit/6e8b8628
11-11-2020

Fix has been included in apache code. https://github.com/apache/santuario-xml-security-java/pull/9
09-11-2020