GLSA-200603-07 : flex: Potential insecure code generation

This script is Copyright (C) 2006-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200603-07
(flex: Potential insecure code generation)

Chris Moore discovered a buffer overflow in a special class of
lexicographical scanners generated by flex. Only scanners generated by
grammars which use either REJECT, or rules with a 'variable trailing
context' might be at risk.

Impact :

An attacker could feed malicious input to an application making
use of an affected scanner and trigger the buffer overflow, potentially
resulting in the execution of arbitrary code.

Workaround :

Avoid using vulnerable grammar in your flex scanners.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200603-07.xml

Solution :

All flex users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=sys-devel/flex-2.5.33-r1'

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 21045 (gentoo_GLSA-200603-07.nasl)

Bugtraq ID:

CVE ID: CVE-2006-0459