Bug 29766 - log4j new security issue CVE-2021-45046
Summary: log4j new security issue CVE-2021-45046
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-12-14 22:10 CET by David Walser
Modified: 2021-12-19 13:27 CET (History)
6 users (show)

See Also:
Source RPM: log4j-2.14.1-2.mga9.src.rpm
CVE:
Status comment:


Attachments
Execute Log4j from java (1.39 KB, application/x-7z-compressed)
2021-12-17 23:11 CET, Brian Rockwell
Details

Description David Walser 2021-12-14 22:10:38 CET
Apache has issued an advisory today (December 14):
https://www.openwall.com/lists/oss-security/2021/12/14/4
https://github.com/advisories/GHSA-7rjr-3q55-vv33

The issue is fixed upstream in 2.16.0.

Mageia 8 is also affected.
David Walser 2021-12-14 22:10:51 CET

Status comment: (none) => Fixed upstream in 2.16.0
Whiteboard: (none) => MGA8TOO

Comment 1 Nicolas Lécureuil 2021-12-14 22:53:54 CET
fixed in cauldron.

CC: (none) => mageia
Whiteboard: MGA8TOO => (none)
Version: Cauldron => 8

Comment 3 Nicolas Lécureuil 2021-12-14 23:06:47 CET
build OK now ( it was missing a BR )

Whiteboard: MGA8TOO => (none)
Version: Cauldron => 8
Assignee: java => qa-bugs

Comment 4 David Walser 2021-12-14 23:08:09 CET
log4j-jcl-2.16.0-1.mga8
log4j-slf4j-2.16.0-1.mga8
log4j-2.16.0-1.mga8

from log4j-2.16.0-1.mga8.src.rpm

Status comment: Fixed upstream in 2.16.0 => (none)

Comment 5 William Kenney 2021-12-15 02:22:12 CET
Could someone briefly describe the best way to test this.
Make sure Apache works before and after?
Thanks

CC: (none) => wilcal.int

Comment 6 David Walser 2021-12-15 02:37:20 CET
This has nothing to do with Apache.  Check for packages that require these ones.
Comment 7 William Kenney 2021-12-15 03:22:30 CET
The Log4j 2 API provides the interface that applications should code to and provides the adapter components required for implementers to create a logging implementation. 
https://logging.apache.org/log4j/2.x/manual/api.html

Microsoft doesn't own Log4J, so they are not responsible for patching a 3rd party library. Log4J is owned by Apache. does it affect any other applications released by Microsoft like MSSQL, SCCM or IIS etc. no Microsoft applications use Log4J

Using the MCC -> Install & Remove Software -> find log4j
While log4j is in there and installable it is not installed on my webserver

Maybe this disaster has little to no effect on most of our users???
Comment 8 David Walser 2021-12-15 03:41:37 CET
Again, it has nothing to do with the Apache web server.  It's a Java library.

Try urpmq --whatrequires log4j log4j-jcl log4j-slf4j
Comment 9 William Kenney 2021-12-15 03:54:27 CET
FWIW

clear
urpmi --auto log4j-jcl
urpmi --auto log4j-slf4j
urpmi --auto log4j
 

installs without error
system reboots back to a working desktop
so just a basic install seems to be harmless
Comment 10 William Kenney 2021-12-15 03:55:58 CET
[root@localhost wilcal]# urpmq --whatrequires log4j log4j-jcl log4j-slf4j
ant-apache-log4j
ant-apache-log4j
log4j
log4j-jcl
log4j-jcl
log4j-jcl
log4j-jcl
log4j-slf4j
log4j-slf4j
log4j-slf4j
log4j-slf4j
xbean
xbean
Comment 11 William Kenney 2021-12-15 03:58:56 CET
urpmi --auto ant-apache-log4j
[root@localhost wilcal]# urpmi --auto ant-apache-log4j
Package ant-apache-log4j-1.10.9-1.mga8.noarch is already installed

also does not seem to be harmful
Comment 12 William Kenney 2021-12-15 04:17:15 CET
In VirtualBox, M8, Plasma, 64-bit

Package(s) under test:
xbean

The following 9 packages are going to be installed:

- jackson-annotations-2.11.3-1.mga8.noarch
- jackson-core-2.11.3-1.mga8.noarch
- jackson-databind-2.11.3-1.mga8.noarch
- jakarta-activation-1.2.2-1.mga8.noarch
- log4j-2.13.3-1.1.mga8.noarch
- objectweb-asm-8.0.1-1.mga8.noarch
- slf4j-1.7.30-8.mga8.noarch
- xbean-4.15-2.mga8.noarch
- xbean-javadoc-4.15-2.mga8.noarch

Does no harm
Comment 13 Brian Rockwell 2021-12-15 17:58:52 CET
Which version is right for me to test?  I'm lost on this ticket.

CC: (none) => brtians1

Comment 14 William Kenney 2021-12-15 18:03:30 CET
Microsoft warns China, Iran, North Korea and Turkey are exploiting recently revealed software vulnerability
https://www.cnn.com/2021/12/15/politics/microsoft-china-iran-log4j/index.html
Comment 15 William Kenney 2021-12-15 18:05:16 CET
(In reply to Brian Rockwell from comment #13)
> Which version is right for me to test?  I'm lost on this ticket.

I'm with you Brian. I think we don't understand this enough to determine what the best plan of testing is. Certainly a subject for tomorrows QA meeting.
Comment 16 David Walser 2021-12-16 01:45:28 CET
The version in updates_testing, 2.16.0.
Comment 17 William Kenney 2021-12-16 01:52:41 CET
In VirtualBox client, M8, Plasma, 64-bit

clear
urpmi --auto log4j-jcl
urpmi --auto log4j-slf4j
urpmi --auto log4j
 
Package log4j-jcl-2.13.3-1.1.mga8.noarch is already installed
Package log4j-slf4j-2.13.3-1.1.mga8.noarch is already installed
Package log4j-2.13.3-1.1.mga8.noarch is already installed

Install updates from updates testing

Package log4j-jcl-2.16.0-1.mga8.noarch is already installed
Package log4j-slf4j-2.16.0-1.mga8.noarch is already installed
Package log4j-2.16.0-1.mga8.noarch is already installed

Does not seem to cause any problems
Comment 18 David Walser 2021-12-16 20:05:46 CET
Ubuntu has issued an advisory for this on December 15:
https://ubuntu.com/security/notices/USN-5197-1
Comment 19 William Kenney 2021-12-16 21:32:07 CET
(In reply to David Walser from comment #18)
> Ubuntu has issued an advisory for this on December 15:
> https://ubuntu.com/security/notices/USN-5197-1

I don't see that in our repo.
Comment 20 David Walser 2021-12-16 22:24:07 CET
(In reply to William Kenney from comment #19)
> (In reply to David Walser from comment #18)
> > Ubuntu has issued an advisory for this on December 15:
> > https://ubuntu.com/security/notices/USN-5197-1
> 
> I don't see that in our repo.

I have no idea what you mean by that.  I'm just documenting a third-party advisory for this issue, as I usually do.
Comment 21 Dave Hodgins 2021-12-17 01:56:08 CET
(In reply to David Walser from comment #20)
> (In reply to William Kenney from comment #19)
> > (In reply to David Walser from comment #18)
> > > Ubuntu has issued an advisory for this on December 15:
> > > https://ubuntu.com/security/notices/USN-5197-1
> > 
> > I don't see that in our repo.
> 
> I have no idea what you mean by that.  I'm just documenting a third-party
> advisory for this issue, as I usually do.

The ubuntu advisory is for liblog4j2-java (Apache log4j package) which Mageia
doesn't have in our repositories. It isn't an advisory for log4j itself.

CC: (none) => davidwhodgins

Comment 22 David Walser 2021-12-17 02:58:01 CET
That is log4j.  Debian has a goofy naming scheme for their binary packages.
Comment 23 David Walser 2021-12-17 19:25:39 CET
Debian has issued an advisory for this on December 16:
https://www.debian.org/security/2021/dsa-5022
Comment 24 Brian Rockwell 2021-12-17 23:11:21 CET
Created attachment 13055 [details]
Execute Log4j from java

This will not test the bug, but does call the new routines and write's to console an error message saying "Hello World".  It confirms the api/core work.

$ java -cp .:/usr/share/java/log4j/log4j-core.jar:/usr/share/java/log4j/log4j-api.jar log4j_t1.Test1L
16:10:29.101 [main] ERROR HelloWorld - Hello, World!

If you extract folder to home and have installed the latest log4j files this should work.
Comment 25 Brian Rockwell 2021-12-17 23:12:11 CET
oh go into bin folder first
Comment 26 Thomas Andrews 2021-12-19 01:07:28 CET
As was discussed at the QA meeting two days ago, passing this on the basis of the two clean installs.

Keywords: (none) => validated_update
Whiteboard: (none) => MGA8-64-OK
CC: (none) => andrewsfarm, sysadmin-bugs

Thomas Backlund 2021-12-19 12:21:10 CET

Keywords: (none) => advisory

Comment 27 Mageia Robot 2021-12-19 13:27:43 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2021-0566.html

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


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