Bug 30640 - libtiff new security issues CVE-2022-205[6-8]
Summary: libtiff new security issues CVE-2022-205[6-8]
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-07-15 19:48 CEST by David Walser
Modified: 2022-07-25 23:43 CEST (History)
6 users (show)

See Also:
Source RPM: libtiff-4.2.0-1.5.mga8.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2022-07-15 19:48:46 CEST
Fedora has issued an advisory today (July 15):
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/4TSS7MJ7OO7JO5BNKCRYSFU7UAYOKLA2/

Mageia 8 is also affected.
David Walser 2022-07-15 19:49:02 CEST

Whiteboard: (none) => MGA8TOO
Status comment: (none) => Patches available from Fedora

Comment 1 Nicolas Salguero 2022-07-18 10:44:16 CEST
Suggested advisory:
========================

The updated packages fix security vulnerabilities:

Divide By Zero error in tiffcrop in libtiff 4.4.0 allows attackers to cause a denial-of-service via a crafted tiff file. (CVE-2022-2056, CVE-2022-2057, CVE-2022-2058)

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2056
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2057
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2058
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/4TSS7MJ7OO7JO5BNKCRYSFU7UAYOKLA2/
========================

Updated packages in core/updates_testing:
========================
lib(64)tiff5-4.2.0-1.6.mga8
lib(64)tiff-devel-4.2.0-1.6.mga8
lib(64)tiff-static-devel-4.2.0-1.6.mga8
libtiff-progs-4.2.0-1.6.mga8

from SRPM:
libtiff-4.2.0-1.6.mga8.src.rpm

Status comment: Patches available from Fedora => (none)
Source RPM: libtiff-4.4.0-1.mga9.src.rpm => libtiff-4.2.0-1.5.mga8.src.rpm
Version: Cauldron => 8
Status: NEW => ASSIGNED
Whiteboard: MGA8TOO => (none)
Assignee: nicolas.salguero => qa-bugs

Nicolas Salguero 2022-07-18 10:44:26 CEST

CC: (none) => nicolas.salguero

Comment 2 Herman Viaene 2022-07-20 10:32:52 CEST
MGA8-64 Plasma on Acer Aspire 5253
No installation issues.
First followed wiki and noted that the command bmp2tiff isn't there. Why ???? Other commands listed there work well.
Then followed bug 30228 Comment 2 and 3
More or less as in Len's test, the results of raw2tiff were not good. It generates a file, but its contents are like an old analogue TV were the line synchronization was disturbed, at least on the preview in dolphin, and gwenview crashes after showing the file for a second or so.
My tests as in bug 30228 Comment 2 all worked OK, I will not repeat here.
I have the impression that the problems with raw2tiff are not a regression, I'd rather have someone else (Len??) confirming this.

CC: (none) => herman.viaene

Comment 3 Len Lawrence 2022-07-20 20:03:27 CEST
OK Herman.  This took a lot longer than expected.
Checked a raw file conversion before updating:
$ raw2tiff -w 2864 'KODAK C603 C643 Format 420 CCDI0001.RAW' test_before.tiff
Image height is not specified.
Height is guessed as 2152.

tiffgt displayed a grey image rather than the original full colour image (checked with rawtherapee) and there was a check (plaid) pattern superimposed.
The height should be 2144 pixels but I do not see an option in the help list.  The man page indicates that the height would be calculated internally from file size minus header size in this case.

Tried
$ raw2tiff -p rgb -w 2864 'KODAK C603 C643 Format 420 CCDI0001.RAW' test_before.tiff
Image height is not specified.
Height is guessed as 2152.

No show with tiffgt, nor with cmyk or cielab.

Updated packages.

$ raw2tiff -w 2864 'KODAK C603 C643 Format 420 CCDI0001.RAW' test_update.tiff
Image height is not specified.
Height is guessed as 2152.
$ tiffgt test_update.tiff
The update result looked exactly like the test_before image.
So, whatever the problem is with raw2tiff (not excluding users) this is not a regression.

CC: (none) => tarazed25

Comment 4 Len Lawrence 2022-07-20 20:21:55 CEST
Tried using a calculated image header size.
$ raw2tiff -H 22912 -w 2864 'KODAK C603 C643 Format 420 CCDI0001.RAW' test_update.tiff
Image height is not specified.
Height is guessed as 2144.
That is correct according to rawtherapee but there is no change in the appearance of the image so the check pattern is likely to be an artefact.
Something to do with not specifying a colour model.  Beyond my ken.
Herman Viaene 2022-07-21 09:05:07 CEST

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

Comment 5 Len Lawrence 2022-07-21 09:16:51 CEST
As a rider to earlier comments, display treats the test output as a monochrome image with normal dithering - no check overlay.
$ urpmq --whatrequires lib64tiff5 | uniq | grep -i magick
graphicsmagick
imagemagick

$ strace -o im.trace display test_update.tiff
$ grep -i tiff im.trace
openat(AT_FDCWD, "/usr/lib64/ImageMagick-7.0.10/modules-Q16HDRI/coders/tiff.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/lib64/libtiff.so.5", O_RDONLY|O_CLOEXEC) = 4
s
Comment 6 Thomas Andrews 2022-07-22 04:07:49 CEST
Validating. Advisory in Comment 2.

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

Dave Hodgins 2022-07-25 20:05:08 CEST

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

Comment 7 Mageia Robot 2022-07-25 23:43:12 CEST
An update for this issue has been pushed to the Mageia Updates repository.

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

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


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