You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fuzzing has found an out of memory issues in OSS-Fuzz with JVM Fuzzer Jazzer in jline3. We have reviewed the finding and regarded it as security-related due to the potential of a denial of service.
The out of memory is triggered at this line while running in a loop.
We would appreciate it if you could take a look at the finding. Do you see a risk that this might be exploited by untrusted input?
Part of the stack trace:
== Java Exception: com.code_intelligence.jazzer.api.FuzzerSecurityIssueLow: Out of memory (use '-Xmx1710m' to reproduce)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.base/java.lang.Object.clone(Native Method)
at org.jline.reader.impl.BufferImpl.(BufferImpl.java:42)
at org.jline.reader.impl.BufferImpl.copy(BufferImpl.java:48)
at org.jline.reader.impl.BufferImpl.copy(BufferImpl.java:22)
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:699)
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:518)
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:489)
at LineReaderFuzzer.fuzzerTestOneInput(LineReaderFuzzer.java:66)
at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000800b94c40.invokeStatic(LambdaForm$DMH)
at java.base/java.lang.invoke.LambdaForm$MH/0x0000000800bf6840.invoke(LambdaForm$MH)
at java.base/java.lang.invoke.LambdaForm$MH/0x0000000800bf7040.invoke_MT(LambdaForm$MH)
...
Dear jline3 maintainers,
Fuzzing has found an out of memory issues in OSS-Fuzz with JVM Fuzzer Jazzer in jline3. We have reviewed the finding and regarded it as security-related due to the potential of a denial of service.
The out of memory is triggered at this line while running in a loop.
We would appreciate it if you could take a look at the finding. Do you see a risk that this might be exploited by untrusted input?
Part of the stack trace:
== Java Exception: com.code_intelligence.jazzer.api.FuzzerSecurityIssueLow: Out of memory (use '-Xmx1710m' to reproduce)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.base/java.lang.Object.clone(Native Method)
at org.jline.reader.impl.BufferImpl.(BufferImpl.java:42)
at org.jline.reader.impl.BufferImpl.copy(BufferImpl.java:48)
at org.jline.reader.impl.BufferImpl.copy(BufferImpl.java:22)
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:699)
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:518)
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:489)
at LineReaderFuzzer.fuzzerTestOneInput(LineReaderFuzzer.java:66)
at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000800b94c40.invokeStatic(LambdaForm$DMH)
at java.base/java.lang.invoke.LambdaForm$MH/0x0000000800bf6840.invoke(LambdaForm$MH)
at java.base/java.lang.invoke.LambdaForm$MH/0x0000000800bf7040.invoke_MT(LambdaForm$MH)
...
We have added a reproducer zip which contains a README that describes how to reproduce the issue.
Reproducer zip: https://drive.google.com/file/d/1Yfb5zH7i8-xgPg1W8Sz-3hmuPA2DA2be/view?usp=sharing
Fuzz target: https://github.com/google/oss-fuzz/blob/master/projects/jline3/LineReaderFuzzer.java
OSS-Fuzz issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56774
Hint: The provided OSS-Fuzz Issue link is only accessible if the issue is fixed or you are the maintainer of the OSS-Fuzz project.
Best regards,
Henry
The text was updated successfully, but these errors were encountered: