Bug 24682 - java-1.8.0-openjdk new security issues
Summary: java-1.8.0-openjdk new security issues
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA6-32-OK MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks: 24688
  Show dependency treegraph
 
Reported: 2019-04-17 20:42 CEST by David Walser
Modified: 2019-05-07 23:39 CEST (History)
8 users (show)

See Also:
Source RPM: java-1.8.0-openjdk-1.8.0.201-1.b09.2.mga6.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2019-04-17 20:42:06 CEST
RedHat has issued an advisory today (April 17):
https://access.redhat.com/errata/RHSA-2019:0775

Corresponding Oracle CPU:
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html#AppendixJAVA
David Walser 2019-04-17 20:42:11 CEST

Whiteboard: (none) => MGA6TOO

Comment 1 David Walser 2019-04-17 20:43:22 CEST
It doesn't look like Fedora has started syncing it into their git yet.
Comment 2 Nicolas Salguero 2019-04-18 12:35:43 CEST
Suggested advisory:
========================

The updated packages fix several bugs and some security issues:

Font layout engine out of bounds access setCurrGlyphID(). (CVE-2019-2698)

Slow conversion of BigDecimal to long. (CVE-2019-2602)

Incorrect skeleton selection in RMI registry server-side dispatch handling. (CVE-2019-2684)

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-2698
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-2602
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-2684
https://access.redhat.com/errata/RHSA-2019:0775
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html#AppendixJAVA
========================

Updated packages in core/updates_testing:
========================
java-1.8.0-openjdk-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-headless-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-devel-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-demo-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-src-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-javadoc-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-javadoc-zip-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-accessibility-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-openjfx-1.8.0.212-1.b02.1.mga6
java-1.8.0-openjdk-openjfx-devel-1.8.0.212-1.b02.1.mga6

from SRPMS:
java-1.8.0-openjdk-1.8.0.212-1.b02.1.mga6.src.rpm

Whiteboard: MGA6TOO => (none)
Status: NEW => ASSIGNED
Version: Cauldron => 6
Assignee: nicolas.salguero => qa-bugs

Comment 3 Len Lawrence 2019-04-18 19:32:18 CEST
mga6, x86_64

Could find no public discussion on the issues attached to the CVEs.
Clean update.
Ran the helloworld compile and run test  associated with bug https://bugs.mageia.org/show_bug.cgi?id=24688.

$ javac -cp ".:/usr/share/java/*" helloworld.java
$ java helloworld
Hello World!

A gui with a single button - pressed it and saw the response in the terminal.

Whiteboard: (none) => MGA-64-OK
CC: (none) => tarazed25

Comment 4 Len Lawrence 2019-04-18 19:35:45 CEST
https://bugs.mageia.org/show_bug.cgi?id=24682 has now been tested independently so this bug is done.  64-bit OK.
Len Lawrence 2019-04-18 22:08:51 CEST

Whiteboard: MGA-64-OK => MGA6-64-OK

Comment 5 Brian Rockwell 2019-04-21 01:28:50 CEST
$ uname -a
Linux localhost 4.14.106-desktop-1.mga6 #1 SMP Thu Mar 14 19:13:32 UTC 2019 i686 i686 i686 GNU/Linux


The following 11 packages are going to be installed:

- java-1.8.0-openjdk-1.8.0.212-1.b02.1.mga6.i586
- java-1.8.0-openjdk-accessibility-1.8.0.212-1.b02.1.mga6.i586
- java-1.8.0-openjdk-demo-1.8.0.212-1.b02.1.mga6.i586
- java-1.8.0-openjdk-devel-1.8.0.212-1.b02.1.mga6.i586
- java-1.8.0-openjdk-headless-1.8.0.212-1.b02.1.mga6.i586
- java-1.8.0-openjdk-javadoc-zip-1.8.0.212-1.b02.1.mga6.noarch
- java-1.8.0-openjdk-openjfx-1.8.0.212-1.b02.1.mga6.i586
- java-1.8.0-openjdk-openjfx-devel-1.8.0.212-1.b02.1.mga6.i586
- java-1.8.0-openjfx-1.8.0.202-1.b07.1.mga6.i586
- java-atk-wrapper-0.33.2-3.mga6.i586
- meta-task-6-3.3.mga6.noarch

After the installs:

$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b02)
OpenJDK Server VM (build 25.212-b02, mixed mode)

Ran one of my old programs for conversting text files to HTML.

Worked before update and after, but after update this appeared:

$ java TxtToHTML_View
java.io.IOException: Cannot run program "/opt/X11/bin/xprop": error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at java.lang.Runtime.exec(Runtime.java:620)
	at java.lang.Runtime.exec(Runtime.java:450)
	at java.lang.Runtime.exec(Runtime.java:347)
	at org.GNOME.Accessibility.AtkWrapper.<clinit>(AtkWrapper.java:34)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:805)
	at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:887)
	at java.awt.Window.getToolkit(Window.java:1358)
	at java.awt.Window.init(Window.java:506)
	at java.awt.Window.<init>(Window.java:537)
	at java.awt.Frame.<init>(Frame.java:420)
	at javax.swing.JFrame.<init>(JFrame.java:233)
	at TxtToHTML_View.main(TxtToHTML_View.java:316)
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)


I recompiled the program using javac.  Still get the message.


It works - could be because of depracated code, but why on the prior version I didn't get flags I'm not sure.  Someone should look at this I think.

Keywords: (none) => feedback
CC: (none) => brtians1

Comment 6 Nicolas Salguero 2019-04-23 12:35:24 CEST
I did not find "/opt/X11/bin/xprop" in Openjdk so I think it comes from the class you use to test.  Anyway I updated to 8u212-b04.

Suggested advisory:
========================

The updated packages fix several bugs and some security issues:

Font layout engine out of bounds access setCurrGlyphID(). (CVE-2019-2698)

Slow conversion of BigDecimal to long. (CVE-2019-2602)

Incorrect skeleton selection in RMI registry server-side dispatch handling. (CVE-2019-2684)

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-2698
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-2602
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-2684
https://access.redhat.com/errata/RHSA-2019:0775
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html#AppendixJAVA
========================

Updated packages in core/updates_testing:
========================
java-1.8.0-openjdk-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-headless-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-devel-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-demo-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-src-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-javadoc-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-javadoc-zip-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-accessibility-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-openjfx-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-openjfx-devel-1.8.0.212-1.b04.1.mga6

from SRPMS:
java-1.8.0-openjdk-1.8.0.212-1.b04.1.mga6.src.rpm

CC: (none) => nicolas.salguero
Keywords: feedback => (none)
Whiteboard: MGA6-64-OK => (none)

Comment 7 Brian Rockwell 2019-04-23 16:21:45 CEST
$ java -version
openjdk version "1.8.0_201"
OpenJDK Runtime Environment (build 1.8.0_201-b09)
OpenJDK Server VM (build 25.201-b09, mixed mode)
[brian@localhost BookReader]$ java GUIBookStart
0
/media/sf_vmshare/BookReader/TERMC10.TXT


Another one:

$ java TxtToHTML_View
/media/sf_vmshare/TxtToHTML/pmwld10.txt
[brian@localhost TxtToHTML]$ 



App runs fine.

----------

- java-1.8.0-openjdk-1.8.0.212-1.b04.1.mga6.i586
- java-1.8.0-openjdk-demo-1.8.0.212-1.b04.1.mga6.i586
- java-1.8.0-openjdk-devel-1.8.0.212-1.b04.1.mga6.i586
- java-1.8.0-openjdk-headless-1.8.0.212-1.b04.1.mga6.i586
- java-1.8.0-openjdk-javadoc-zip-1.8.0.212-1.b04.1.mga6.noarch
- meta-task-6-3.3.mga6.noarch


$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK Server VM (build 25.212-b04, mixed mode)

[brian@localhost TxtToHTML]$ java TxtToHTML_View
/media/sf_vmshare/TxtToHTML/pmwld10.txt


App runs fine

Added the following

- java-1.8.0-openjdk-accessibility-1.8.0.212-1.b04.1.mga6.i586
- java-atk-wrapper-0.33.2-3.mga6.i586

$ java TxtToHTML_View
java.io.IOException: Cannot run program "/opt/X11/bin/xprop": error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at java.lang.Runtime.exec(Runtime.java:620)
	at java.lang.Runtime.exec(Runtime.java:450)
	at java.lang.Runtime.exec(Runtime.java:347)
	at org.GNOME.Accessibility.AtkWrapper.<clinit>(AtkWrapper.java:34)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:805)
	at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:887)
	at java.awt.Window.getToolkit(Window.java:1358)
	at java.awt.Window.init(Window.java:506)
	at java.awt.Window.<init>(Window.java:537)
	at java.awt.Frame.<init>(Frame.java:420)
	at javax.swing.JFrame.<init>(JFrame.java:233)
	at TxtToHTML_View.main(TxtToHTML_View.java:316)
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 17 more
/media/sf_vmshare/TxtToHTML/pmwld10.txt



So - it is something to do with open accessibility part.  I think it showed up in my last test because as a default I do not install that module.  I don't think this would be my code, unless it is caused by using deprecated functions, which it probably does, it was written in Java 1.4 days.

But the base code is working.
Comment 8 PC LX 2019-04-24 14:00:08 CEST
Installed and tested without issues.

Tested using netbeans, aladin, freecol, projectlibre, htmlcleaner, yuicompressor.

System: Mageia 6, x86_64, Plasma DE, LXQt DE, Intel CPU, nVidia GPU using nvidia340 proprietary driver.

$ uname -a 
Linux marte 4.14.106-desktop-1.mga6 #1 SMP Thu Mar 14 18:01:29 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -qa | grep java-1.8.0-openjdk
java-1.8.0-openjdk-headless-1.8.0.212-1.b04.1.mga6
java-1.8.0-openjdk-1.8.0.212-1.b04.1.mga6

CC: (none) => mageia

Comment 9 Len Lawrence 2019-05-01 11:50:52 CEST
Thanks Brian and PC LX.  From your tests it looks like it works fine.  Please add the OKs if you are happy with it.
Comment 10 Herman Viaene 2019-05-01 14:37:47 CEST
MGA6-32 MATE on IBM Thinkpad R50e
No installation issues
At CLI:
$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK Server VM (build 25.212-b04, mixed mode)
$ javac helloworld.java 
$ java helloworld 
Prism-ES2 Error : GL_VERSION (major.minor) = 1.3
Gtk-Message: Failed to load module "canberra-gtk-module"
Hello World!

Looks OK as in previous versions.

CC: (none) => herman.viaene
Whiteboard: (none) => MGA6-32-OK

PC LX 2019-05-01 19:45:59 CEST

Whiteboard: MGA6-32-OK => MGA6-32-OK MGA6-64-OK

Comment 11 Thomas Andrews 2019-05-02 16:07:40 CEST
Thank you everyone. Validating. Suggested advisory in Comment 6.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Comment 12 Thomas Andrews 2019-05-02 16:30:04 CEST
Sysadmins, please make sure this update goes out either before or at the same time as Bug 24688.
Comment 13 David Walser 2019-05-02 17:14:09 CEST
(In reply to Thomas Andrews from comment #12)
> Sysadmins, please make sure this update goes out either before or at the
> same time as Bug 24688.

A comment is not going to achieve that.

Blocks: (none) => 24688

Dave Hodgins 2019-05-07 20:05:28 CEST

CC: (none) => davidwhodgins
Keywords: (none) => advisory

Comment 14 Mageia Robot 2019-05-07 23:39:19 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2019-0155.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.