CVE-2011-2895 Memory corruption in n/a

Critical 9.3 Published Updated

A heap-based buffer overflow in the LZW decompressor allows attackers to execute arbitrary code or cause denial of service via crafted compressed streams.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2011-2895?

CVE-2011-2895 is a critical memory corruption vulnerability in Freebsd Freebsd, published on 19 Aug 2011. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The LZW decompressor in (1) the BufCompressedFill function in fontfile/decompress.c in X.Org libXfont before 1.4.4 and (2) compress/compress.c in 4.3BSD, as used in zopen.c in OpenBSD before 3.8, FreeBSD, NetBSD 4.0.x and 5.0.x before 5.0.3 and 5.1.x before 5.1.1, FreeType 2.1.9, and other products, does not properly handle code words that are absent from the decompression table when encountered, which allows context-dependent attackers to trigger an infinite loop or a heap-based buffer overflow, and possibly execute arbitrary code, via a crafted compressed stream, a related issue to CVE-2006-1168 and CVE-2011-2896.

Weakness: CWE-119

Which versions are affected by CVE-2011-2895?

It affects 5 products.

Linux distribution packages (40)
freetype Red Hat:enterprise_linux:4::asAll versions0:2.1.9-19.el4
freetype-debuginfo Red Hat:enterprise_linux:4::asAll versions0:2.1.9-19.el4
freetype-demos Red Hat:enterprise_linux:4::asAll versions0:2.1.9-19.el4
freetype-devel Red Hat:enterprise_linux:4::asAll versions0:2.1.9-19.el4
freetype-utils Red Hat:enterprise_linux:4::asAll versions0:2.1.9-19.el4
xorg-x11 Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-Mesa-libGL Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-Mesa-libGLU Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-Xdmx Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-Xnest Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-Xvfb Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-deprecated-libs Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-deprecated-libs-devel Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-devel Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-doc Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-font-utils Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-libs Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-sdk Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-tools Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-twm Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-xauth Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-xdm Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
xorg-x11-xfs Red Hat:enterprise_linux:4::asAll versions0:6.8.2-1.EL.69
freetype Red Hat:enterprise_linux:4::desktopAll versions0:2.1.9-19.el4
freetype-debuginfo Red Hat:enterprise_linux:4::desktopAll versions0:2.1.9-19.el4
freetype-demos Red Hat:enterprise_linux:4::desktopAll versions0:2.1.9-19.el4
freetype-devel Red Hat:enterprise_linux:4::desktopAll versions0:2.1.9-19.el4
freetype-utils Red Hat:enterprise_linux:4::desktopAll versions0:2.1.9-19.el4
xorg-x11 Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-Mesa-libGL Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-Mesa-libGLU Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-Xdmx Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-Xnest Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-Xvfb Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-deprecated-libs Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-deprecated-libs-devel Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-devel Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-doc Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-font-utils Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69
xorg-x11-libs Red Hat:enterprise_linux:4::desktopAll versions0:6.8.2-1.EL.69

Products include Freebsd Freebsd, Freetype Freetype, Netbsd Netbsd, Openbsd Openbsd, X Libxfont.

How do I fix CVE-2011-2895?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2011-2895 being exploited?

There is no known exploitation of CVE-2011-2895 in the wild and no public exploit code.

All Freebsd Freebsd vulnerabilities

Sources

Also known as DEBIAN-CVE-2011-2895, DSA-2293-1, GHSA-8hvp-h85w-jwq9, RHSA-2011:1154, RHSA-2011:1155, RHSA-2011:1161 and 2 more.

Is CVE-2011-2895 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free