Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777123 (CVE-2020-35492) - <x11-libs/cairo-1.17.6: buffer overwrite vulnerability (CVE-2020-35492)
Summary: <x11-libs/cairo-1.17.6: buffer overwrite vulnerability (CVE-2020-35492)
Status: RESOLVED FIXED
Alias: CVE-2020-35492
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard: A3 [glsa+]
Keywords:
Depends on: 886361
Blocks:
  Show dependency tree
 
Reported: 2021-03-19 03:41 UTC by John Helmert III
Modified: 2023-05-03 11:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-03-19 03:41:56 UTC
CVE-2020-35492 (https://bugzilla.redhat.com/show_bug.cgi?id=1898396):

A flaw was found in cairo's image-compositor.c in all versions prior to 1.17.4. This flaw allows an attacker who can provide a crafted input file to cairo's image-compositor (for example, by convincing a user to open a file in an application using cairo, or if an application uses cairo on untrusted input) to cause a stack buffer overflow -> out-of-bounds WRITE. The highest impact from this vulnerability is to confidentiality, integrity, as well as system availability.


Merged merge request: https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/85
Comment 1 NATTkA bot gentoo-dev 2021-07-29 17:23:39 UTC Comment hidden (obsolete)
Comment 2 NATTkA bot gentoo-dev 2021-07-29 17:32:02 UTC Comment hidden (obsolete)
Comment 3 NATTkA bot gentoo-dev 2021-07-29 17:39:56 UTC Comment hidden (obsolete)
Comment 4 NATTkA bot gentoo-dev 2021-07-29 17:48:07 UTC Comment hidden (obsolete)
Comment 5 NATTkA bot gentoo-dev 2021-07-29 18:04:03 UTC Comment hidden (obsolete)
Comment 6 NATTkA bot gentoo-dev 2021-07-29 18:12:21 UTC
Package list is empty or all packages have requested keywords.
Comment 7 Federico Justus Denkena 2022-07-09 11:53:46 UTC
No vulnerable versions remaining in tree, see 
https://gitlab.freedesktop.org/cairo/cairo
https://packages.gentoo.org/packages/x11-libs/cairo
https://gitlab.freedesktop.org/cairo/cairo/-/issues/437.
Versions prior to 1.17.4 are affected, only 1.16.0-r5 with the upstream fix remains in tree.
I think RESOLVED FIXED would be appropriate here.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-09 12:14:58 UTC
(In reply to 9ts641j2 from comment #7)
> No vulnerable versions remaining in tree, see 
> https://gitlab.freedesktop.org/cairo/cairo
> https://packages.gentoo.org/packages/x11-libs/cairo
> https://gitlab.freedesktop.org/cairo/cairo/-/issues/437.
> Versions prior to 1.17.4 are affected, only 1.16.0-r5 with the upstream fix
> remains in tree.
> I think RESOLVED FIXED would be appropriate here.

Did it get patched by coincidence or did some bug get tagged?
Comment 9 Federico Justus Denkena 2022-07-13 19:24:42 UTC
It got patched by coincidence, I think. There was a new patch that solved this problem (https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/85).
Comment 10 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-07-13 20:58:06 UTC
(In reply to 9ts641j2 from comment #9)
> It got patched by coincidence, I think. There was a new patch that solved
> this problem
> (https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/85).

That merge request seems to be in 1.17.6, but not an in-tree version of cairo?
Comment 11 Federico Justus Denkena 2022-07-14 06:34:53 UTC
Right, sorry. My bad, should have checked the release tags and not relied on the CVE description. Should I bump the in-tree-version?
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-14 07:02:57 UTC
(In reply to 9ts641j2 from comment #11)
> Right, sorry. My bad, should have checked the release tags and not relied on
> the CVE description. Should I bump the in-tree-version?

1.17.x is unstable/dev. It follows odd/even.
Comment 13 Federico Justus Denkena 2022-07-14 19:56:23 UTC
Ok. Maybe add the version with the fix as unstable?
Comment 14 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-12-17 20:31:18 UTC
Please cleanup.
Comment 15 Larry the Git Cow gentoo-dev 2023-01-26 17:47:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a86d7fa81e5e287e69d380daddcef043a1261b6f

commit a86d7fa81e5e287e69d380daddcef043a1261b6f
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-01-26 17:30:28 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-01-26 17:46:09 +0000

    x11-libs/cairo: Drop old versions
    
    Bug: https://bugs.gentoo.org/777123
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-libs/cairo/Manifest                            |   1 -
 x11-libs/cairo/cairo-1.16.0-r6.ebuild              | 134 ---------------------
 .../files/cairo-1.12.18-disable-test-suite.patch   |  15 ---
 .../cairo/files/cairo-1.16.0-binutils-2.34.patch   |  72 -----------
 .../files/cairo-1.16.0-binutils-2.39-ptr.patch     |  29 -----
 ...one_MM_Var-instead-of-free-when-available.patch |  30 -----
 .../files/cairo-1.16.0-pdf-add-missing-flush.patch |  29 -----
 x11-libs/cairo/files/cairo-1.16.0-strings.patch    |  39 ------
 x11-libs/cairo/metadata.xml                        |   2 -
 9 files changed, 351 deletions(-)
Comment 16 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-27 05:50:51 UTC
Thanks!
Comment 17 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-27 05:59:20 UTC
GLSA request filed
Comment 18 Larry the Git Cow gentoo-dev 2023-05-03 10:33:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=e0594bf267edfb23437629368af22c4e33f650fb

commit e0594bf267edfb23437629368af22c4e33f650fb
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2023-05-03 10:32:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-03 10:33:45 +0000

    [ GLSA 202305-21 ] Cairo: Buffer Overflow Vulnerability
    
    Bug: https://bugs.gentoo.org/777123
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 glsa-202305-21.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)