CVE-2018-12641 Denial of service in n/a

Medium 5.5 Published Updated

Stack exhaustion in GNU libiberty C++ demangling functions allows attackers to cause denial of service via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-12641?

CVE-2018-12641 is a medium-severity denial of service vulnerability in Gnu Binutils, published on 22 Jun 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An issue was discovered in arm_pt in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.30. Stack Exhaustion occurs in the C++ demangling functions provided by libiberty, and there are recursive stack frames: demangle_arm_hp_template, demangle_class_name, demangle_fund_type, do_type, do_arg, demangle_args, and demangle_nested_args. This can occur during execution of nm-new.

Weakness: CWE-400

Which versions are affected by CVE-2018-12641?

It affects 1 product.

Products include Gnu Binutils.

How do I fix CVE-2018-12641?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-12641 being exploited?

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

All Gnu Binutils vulnerabilities

Sources

Also known as GHSA-4cqc-25m3-f64g, UBUNTU-CVE-2018-12641.

Is CVE-2018-12641 in your software?

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

Check your SBOMs for free