Every CVE Search/ Get API key

CVE-2018-6942

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the...

6.5 MediumFix available

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.08%Up 0.8 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Record
CVE-2018-6942
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-476
Updated
2026-11-02
CVE List No score

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Record
CVE-2018-6942
Updated
2026-11-02
EUVDEUVD-2018-18686 No score

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Record
EUVD-2018-18686
Updated
2026-11-03
GitHub AdvisoriesGHSA-pjfg-6mwr-j367 6.5

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the...

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Record
GHSA-pjfg-6mwr-j367
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-476
Updated
2026-11-02
OSVALPINE-CVE-2018-6942 6.5

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Record
ALPINE-CVE-2018-6942
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVBELL-CVE-2018-6942 6.5

CVE-2018-6942 does not affect BellSoft software

Record
BELL-CVE-2018-6942
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 6 moreShow less
OSV 6.5

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Record
CVE-2018-6942
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-6942 6.5

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file.

Record
DEBIAN-CVE-2018-6942
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2018-0140 No score

Updated freetype2 packages fix security vulnerability

An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file (CVE-2018-6942).

Record
MGASA-2018-0140
Updated
2026-11-02
OSVopenSUSE-SU-2020:0704-1 No score

Security update for freetype2

This update for freetype2 to version 2.10.1 fixes the following issues:

Security issue fixed:

  • CVE-2018-6942: Fixed a NULL pointer dereference within ttinerp.c (bsc#1079603).

Non-security issues fixed:

  • Update to version 2.10.1

    • The bytecode hinting of OpenType variation fonts was flawed, since the data in the `CVAR' table wasn't correctly applied.
    • Auto-hinter support for Mongolian.
    • The handling of the default character in PCF fonts as introduced in version 2.10.0 was partially broken, causing premature abortion of charmap iteration for many fonts.
    • If `FT_Set_Named_Instance' was called with the same arguments twice in a row, the function returned an incorrect error code the second time.
    • Direct rendering using FT_RASTER_FLAG_DIRECT crashed (bug introduced in version 2.10.0).
    • Increased precision while computing OpenType font variation instances.
    • The flattening algorithm of cubic Bezier curves was slightly changed to make it faster. This can cause very subtle rendering changes, which aren't noticeable by the eye, however.
    • The auto-hinter now disables hinting if there are blue zones defined for a `style' (i.e., a certain combination of a script and its related typographic features) but the font doesn't contain any characters needed to set up at least one blue zone.
  • Add tarball signatures and freetype2.keyring

  • Update to version 2.10.0

    • A bunch of new functions has been added to access and process COLR/CPAL data of OpenType fonts with color-layered glyphs.
    • As a GSoC 2018 project, Nikhil Ramakrishnan completely overhauled and modernized the API reference.
    • The logic for computing the global ascender, descender, and height of OpenType fonts has been slightly adjusted for consistency.
    • `TT_Set_MM_Blend' could fail if called repeatedly with the same arguments.
    • The precision of handling deltas in Variation Fonts has been increased.The problem did only show up with multidimensional designspaces.
    • New function `FT_Library_SetLcdGeometry' to set up the geometry of LCD subpixels.
    • FreeType now uses the `defaultChar' property of PCF fonts to set the glyph for the undefined character at glyph index 0 (as FreeType already does for all other supported font formats). As a consequence, the order of glyphs of a PCF font if accessed with FreeType can be different now compared to previous versions. This change doesn't affect PCF font access with cmaps.
    • FT_Select_Charmap' has been changed to allow parameter value FT_ENCODING_NONE', which is valid for BDF, PCF, and Windows FNT formats to access built-in cmaps that don't have a predefined `FT_Encoding' value.
    • A previously reserved field in the `FT_GlyphSlotRec' structure now holds the glyph index.
    • The usual round of fuzzer bug fixes to better reject malformed fonts.
    • FT_Outline_New_Internal' and FT_Outline_Done_Internal' have been removed.These two functions were public by oversight only and were never documented.
    • A new function `FT_Error_String' returns descriptions of error codes if configuration macro FT_CONFIG_OPTION_ERROR_STRINGS is defined.
    • FT_Set_MM_WeightVector' and FT_Get_MM_WeightVector' are new functions limited to Adobe MultiMaster fonts to directly set and get the weight vector.
  • Enable subpixel rendering with infinality config:

  • Re-enable freetype-config, there is just too many fallouts.

  • Update to version 2.9.1

    • Type 1 fonts containing flex features were not rendered correctly (bug introduced in version 2.9).
    • CVE-2018-6942: Older FreeType versions can crash with certain malformed variation fonts.
    • Bug fix: Multiple calls to `FT_Get_MM_Var' returned garbage.
    • Emboldening of bitmaps didn't work correctly sometimes, showing various artifacts (bug introduced in version…
Record
openSUSE-SU-2020:0704-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10770-1 No score

freetype2-devel-2.11.0-1.2 on GA media

These are all security issues fixed in the freetype2-devel-2.11.0-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10770-1
Updated
2026-11-02
OSVSUSE-SU-2020:1353-1 No score

Security update for freetype2

This update for freetype2 to version 2.10.1 fixes the following issues:

Security issue fixed:

  • CVE-2018-6942: Fixed a NULL pointer dereference within ttinerp.c (bsc#1079603).

Non-security issues fixed:

  • Update to version 2.10.1

    • The bytecode hinting of OpenType variation fonts was flawed, since the data in the `CVAR' table wasn't correctly applied.
    • Auto-hinter support for Mongolian.
    • The handling of the default character in PCF fonts as introduced in version 2.10.0 was partially broken, causing premature abortion of charmap iteration for many fonts.
    • If `FT_Set_Named_Instance' was called with the same arguments twice in a row, the function returned an incorrect error code the second time.
    • Direct rendering using FT_RASTER_FLAG_DIRECT crashed (bug introduced in version 2.10.0).
    • Increased precision while computing OpenType font variation instances.
    • The flattening algorithm of cubic Bezier curves was slightly changed to make it faster. This can cause very subtle rendering changes, which aren't noticeable by the eye, however.
    • The auto-hinter now disables hinting if there are blue zones defined for a `style' (i.e., a certain combination of a script and its related typographic features) but the font doesn't contain any characters needed to set up at least one blue zone.
  • Add tarball signatures and freetype2.keyring

  • Update to version 2.10.0

    • A bunch of new functions has been added to access and process COLR/CPAL data of OpenType fonts with color-layered glyphs.
    • As a GSoC 2018 project, Nikhil Ramakrishnan completely overhauled and modernized the API reference.
    • The logic for computing the global ascender, descender, and height of OpenType fonts has been slightly adjusted for consistency.
    • `TT_Set_MM_Blend' could fail if called repeatedly with the same arguments.
    • The precision of handling deltas in Variation Fonts has been increased.The problem did only show up with multidimensional designspaces.
    • New function `FT_Library_SetLcdGeometry' to set up the geometry of LCD subpixels.
    • FreeType now uses the `defaultChar' property of PCF fonts to set the glyph for the undefined character at glyph index 0 (as FreeType already does for all other supported font formats). As a consequence, the order of glyphs of a PCF font if accessed with FreeType can be different now compared to previous versions. This change doesn't affect PCF font access with cmaps.
    • FT_Select_Charmap' has been changed to allow parameter value FT_ENCODING_NONE', which is valid for BDF, PCF, and Windows FNT formats to access built-in cmaps that don't have a predefined `FT_Encoding' value.
    • A previously reserved field in the `FT_GlyphSlotRec' structure now holds the glyph index.
    • The usual round of fuzzer bug fixes to better reject malformed fonts.
    • FT_Outline_New_Internal' and FT_Outline_Done_Internal' have been removed.These two functions were public by oversight only and were never documented.
    • A new function `FT_Error_String' returns descriptions of error codes if configuration macro FT_CONFIG_OPTION_ERROR_STRINGS is defined.
    • FT_Set_MM_WeightVector' and FT_Get_MM_WeightVector' are new functions limited to Adobe MultiMaster fonts to directly set and get the weight vector.
  • Enable subpixel rendering with infinality config:

  • Re-enable freetype-config, there is just too many fallouts.

  • Update to version 2.9.1

    • Type 1 fonts containing flex features were not rendered correctly (bug introduced in version 2.9).
    • CVE-2018-6942: Older FreeType versions can crash with certain malformed variation fonts.
    • Bug fix: Multiple calls to `FT_Get_MM_Var' returned garbage.
    • Emboldening of bitmaps didn't work correctly sometimes, showing various artifacts (bug introduced in version…
Record
SUSE-SU-2020:1353-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
freetype
Alpine:v3.10
before 2.9-r1
2.9-r1
freetype
Alpine:v3.11
before 2.9-r1
2.9-r1
freetype
Alpine:v3.12
before 2.9-r1
2.9-r1
freetype
Alpine:v3.13
before 2.9-r1
2.9-r1
freetype
Alpine:v3.14
before 2.9-r1
2.9-r1
freetype
Alpine:v3.15
before 2.9-r1
2.9-r1
freetype
Alpine:v3.16
before 2.9-r1
2.9-r1
freetype
Alpine:v3.17
before 2.9-r1
2.9-r1
freetype
Alpine:v3.18
before 2.9-r1
2.9-r1
freetype
Alpine:v3.19
before 2.9-r1
2.9-r1
Show 19 moreShow less
Affected packages
PackageAffectedFixed
freetype
Alpine:v3.20
before 2.9-r1
2.9-r1
freetype
Alpine:v3.21
before 2.9-r1
2.9-r1
freetype
Alpine:v3.22
before 2.9-r1
2.9-r1
freetype
Alpine:v3.23
before 2.9-r1
2.9-r1
freetype
Alpine:v3.24
before 2.9-r1
2.9-r1
freetype
Alpine:v3.5
before 2.7-r2
2.7-r2
freetype
Alpine:v3.6
before 2.7.1-r2
2.7.1-r2
freetype
Alpine:v3.7
before 2.8.1-r3
2.8.1-r3
freetype
Alpine:v3.8
before 2.9-r1
2.9-r1
freetype
Alpine:v3.9
before 2.9-r1
2.9-r1
freetype
Debian:12
before 2.9.1-3
2.9.1-3
freetype
Debian:13
before 2.9.1-3
2.9.1-3
freetype
Debian:14
before 2.9.1-3
2.9.1-3
freetype2
Mageia:6
before 2.7.1-2.2.mga6
2.7.1-2.2.mga6
freetype2
Mageia:6
before 2.7.1-2.2.mga6.tainted
2.7.1-2.2.mga6.tainted
freetype2
SUSE:Linux Enterprise Module for Basesystem 15 SP1
before 2.10.1-4.3.1
2.10.1-4.3.1
freetype2
openSUSE:Leap 15.1
before 2.10.1-lp151.4.3.1
2.10.1-lp151.4.3.1
ft2demos
openSUSE:Leap 15.1
before 2.10.1-lp151.4.3.1
2.10.1-lp151.4.3.1
freetype2
openSUSE:Tumbleweed
before 2.11.0-1.2
2.11.0-1.2

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-6942 is a medium vulnerability (CVSS 6.5) in Freetype, published February 13, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.08%, the 81st percentile. Fixed in freetype 2.9-r1.

References

Show 15 moreShow less
This page doesn't list everything

Left out here: the rest of 2 source descriptions. The JSON record has them.

MoveEnter Open