Xfig buffer overflow vulnerability patched in Ubuntu ESM releases
A buffer overflow in Xfig caused by improper handling of the LANG environment variable can lead to denial of service or arbitrary code execution.
Summary
A security vulnerability has been identified in Xfig, an interactive figure generation facility for the X11 windowing system. The flaw involves improper handling of the LANG environment variable, which can trigger a buffer overflow under specific conditions.
This vulnerability, tracked as CVE-2021-40241, allows an attacker to potentially crash the application or execute arbitrary code with the privileges of the logged-in user. Fixes are currently being provided through Ubuntu Pro via Expanded Security Maintenance (ESM) for older Long Term Support (LTS) releases.
Technical details of CVE-2021-40241
- Defect Class: The issue is a buffer overflow resulting from insufficient validation of the LANG environment variable.
- Attack Vector: An attacker can exploit this by providing specially crafted input to the application.
- Impact Severity: Successful exploitation can result in a denial of service (application crash) or arbitrary code execution under the user's login context.
- Affected Versions: The vulnerability affects Xfig versions used in Ubuntu 20.04 LTS, 18.04 LTS, and 16.04 LTS.
Why it matters
Because these fixes are delivered via Ubuntu Pro ESM Apps, users running legacy LTS distributions (16.04, 18.04, and 20.04) must have an active Ubuntu Pro subscription to receive the security update for this X11 utility. This highlights the ongoing security challenges in maintaining older desktop environments and legacy X11-based software.
Original reference: ubuntu.com →