CVE-2017-7961
The cr_tknzr_parse_rgb function in cr-tknzr.c in libcroco 0.6.11 and 0.6.12 has an "outside the range of representable values of type long" undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted CSS file. NOTE: third-party analysis reports "This is not a security issue in my view. The conversion surely is truncating the double into a long value, but there is no impact as the value is one of the RGB components.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | libcroco | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | libcroco | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 9 | libcroco | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | libcroco | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libcroco-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libcroco | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libcroco-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | libcroco | Will not fix Will not fix | ||
| Alpine Linux 3.11 | libcroco | Fixed | 0.6.13-r1 | ALPINE-CVE-2017-7961 |
| Alpine Linux 3.10 | libcroco | Fixed | 0.6.13-r1 | ALPINE-CVE-2017-7961 |
| Alpine Linux 3.9 | libcroco | Fixed | 0.6.12-r2 | ALPINE-CVE-2017-7961 |
| Alpine Linux 3.8 | libcroco | Fixed | 0.6.12-r2 | ALPINE-CVE-2017-7961 |
| Alpine Linux 3.7 | libcroco | Fixed | 0.6.12-r1 | ALPINE-CVE-2017-7961 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/201707-13 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00043.html (vendor-advisory)
References
- https://git.gnome.org/browse/libcroco/commit/?id=9ad72875e9f08e4c519ef63d44cdbd94aa9504f7
- https://security.gentoo.org/glsa/201707-13
- http://openwall.com/lists/oss-security/2017/04/24/2
- https://bugzilla.suse.com/show_bug.cgi?id=1034482
- https://blogs.gentoo.org/ago/2017/04/17/libcroco-heap-overflow-and-undefined-behavior/
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00043.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.