dia: infinite loop on filenames with invalid encoding (CVE-2019-19451)
When GNOME Dia before 2019-11-27 is launched with a filename argument that is not a valid codepoint in the current encoding, it enters an endless loop, thus endlessly writing text to stdout. If this launch is from a thumbnailer service, this output will usually be written to disk via the system's logging facility (potentially with elevated privileges), thus filling up the disk and eventually rendering the system unusable. (The filename can be for a nonexistent file.)
References:
- https://gitlab.gnome.org/GNOME/dia/issues/428
- Introduced by: https://gitlab.gnome.org/GNOME/dia/commit/9a5f438d4b3e718c8ab0efe01d08ee2c3a0d9a86
- https://nvd.nist.gov/vuln/detail/CVE-2019-19451
Patch:
https://gitlab.gnome.org/GNOME/dia/commit/baa2df853f9fb770eedcf3d94c7f5becebc90bb9
Affected branches:
- master
- 3.11-stable