Bug 30098 - flac new security issue CVE-2021-0561
Summary: flac new security issue CVE-2021-0561
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: 2022-02-26 16:53 CET by David Walser
Modified: 2022-03-06 11:41 CET (History)
5 users (show)

See Also:
Source RPM: flac-1.3.3-3.mga8.src.rpm
CVE: CVE-2021-0561
Status comment:


Attachments

Description David Walser 2022-02-26 16:53:56 CET
Fedora has issued an advisory on February 25:
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/EWXBVMPPSL377I7YM55ZYXVKVMYOKES2/

The issue is fixed upstream in 1.3.4.

Mageia 8 is also affected.
David Walser 2022-02-26 16:54:15 CET

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

Comment 1 Lewis Smith 2022-02-26 20:47:26 CET
One of those packages committed by various people, so having to assign this globally.

Assignee: bugsquad => pkg-bugs

Comment 2 Nicolas Salguero 2022-02-26 22:04:06 CET
Suggested advisory:
========================

The updated packages fixa security vulnerability:

In append_to_verify_fifo_interleaved_ of stream_encoder.c, there is a possible out of bounds write due to a missing bounds check. This could lead to local information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation. (CVE-2021-0561)

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-0561
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/EWXBVMPPSL377I7YM55ZYXVKVMYOKES2/
========================

Updated packages in core/updates_testing:
========================
lib(64)flac++6-1.3.3-3.1.mga8
lib(64)flac++-devel-1.3.3-3.1.mga8
lib(64)flac8-1.3.3-3.1.mga8
lib(64)flac-devel-1.3.3-3.1.mga8
flac-1.3.3-3.1.mga8

from SRPM:
flac-1.3.3-3.1.mga8.src.rpm

Version: Cauldron => 8
Whiteboard: MGA8TOO => (none)
Assignee: pkg-bugs => qa-bugs
CVE: (none) => CVE-2021-0561
Status comment: Fixed upstream in 1.3.4 => (none)
CC: (none) => nicolas.salguero
Status: NEW => ASSIGNED

Nicolas Salguero 2022-02-26 22:04:44 CET

Source RPM: flac-1.3.3-4.mga9.src.rpm => flac-1.3.3-3.mga8.src.rpm

Comment 3 Len Lawrence 2022-02-27 17:02:56 CET
mga8 x86_64
Updated the five packages.

$ flac --ogg MatthewLocke.flac 
flac 1.3.3
Copyright (C) 2000-2009  Josh Coalson, 2011-2016  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

MatthewLocke.flac: WARNING, lead-out offset of cuesheet in input FLAC file does not match input length, dropping existing cuesheet...
MatthewLocke.flac: wrote 37343868 bytes, ratio=1.000
$ ll *.oga
-rw-r--r-- 1 lcl lcl 37534861 Feb 26 23:34 MatthewLocke.oga

The ogg file played fine with mplayer.
$ cp MatthewLocke.flac test.flac
$ flac -d --delete-input-file test.flac
flac 1.3.3
Copyright (C) 2000-2009  Josh Coalson, 2011-2016  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

test.flac: WARNING, cannot check MD5 signature since it was unset in the STREAMINFO
done         

The last test decoded the flac file to generate a WAV file which mplayer handled OK.
$ ll *.wav
-rw-r--r-- 1 lcl lcl 103118780 Feb 27 15:15 test.wav

Analyse a flac file:
$ flac -a MatthewLocke.flac
$ less MatthewLocke.flac
frame=0 offset=2412     bits=9776       blocksize=4608  sample_rate=44100       channels=2      channel_assignment=INDEPENDENT
        subframe=0      wasted_bits=0   type=FIXED      order=0 residual_type=RICE      partition_order=3
                parameter[0]=0
                parameter[1]=0
                parameter[2]=0
                parameter[3]=0
                parameter[4]=0
                parameter[5]=0
                parameter[6]=0
                parameter[7]=0
        subframe=1      wasted_bits=0   type=FIXED      order=0 residual_type=RICE      partition_order=3
.......

$ urpmq --whatrequires lib64flac++6-1.3.3 | uniq
audacity
k3b
kid3-core
kwave
lib64flac++-devel
lib64flac++6

Installed kwave.  Launched from the cli, kwave displays a window with all the lower menu options greyed out except record.  Don't know how to access the handbook but found it online.  

$ kwave locke.flac
displayed the same gui and posted lots of things "not found" in the console.
Opened a test WAV file to display two identical audio channels and a summary of the properties like mode, length and number of samples.
No experience of any of this so dropping it.

At entry level flac seems to work.

CC: (none) => tarazed25

Comment 4 Len Lawrence 2022-02-28 17:16:54 CET
Adding the OK for 64-bits.

Whiteboard: (none) => MGA8-64-OK

Comment 5 Thomas Andrews 2022-03-01 20:51:08 CET
Validating. Advisory in Comment 2.

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

Dave Hodgins 2022-03-06 01:54:48 CET

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

Comment 6 Mageia Robot 2022-03-06 11:41:26 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2022-0085.html

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


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