CVE-2025-8746 GNU libopts __strstr_sse2 memory corruption

Medium 4.8 Published Updated

Local attackers can exploit memory corruption in GNU libopts to potentially execute code or escalate privileges, affecting unsupported versions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-8746?

CVE-2025-8746 is a medium-severity memory corruption vulnerability in GNU libopts, published on 9 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability, which was classified as problematic, was found in GNU libopts up to 27.6. Affected is the function __strstr_sse2. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used. This issue was initially reported to the tcpreplay project, but the code maintainer explains, that this "bug appears to be in libopts which is an external library." This vulnerability only affects products that are no longer supported by the maintainer.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2025-8746?

It affects 1 product.

Linux distribution packages (5)
autogen SUSE:Linux Enterprise Server 16.0All versions5.18.16-160000.3.1
autogen SUSE:Linux Enterprise Server for SAP applications 16.0All versions5.18.16-160000.3.1
autogen openSUSE:Leap 16.0All versions5.18.16-160000.3.1
autogen openSUSE:TumbleweedAll versions5.18.16-8.1
tcpreplay openSUSE:TumbleweedAll versions4.5.1-2.1

Products include Gnu Libopts.

How do I fix CVE-2025-8746?

Product is end of life, replace it.

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

Is CVE-2025-8746 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8746 exists.

Sources

Also known as DEBIAN-CVE-2025-8746, GHSA-4cc6-crfh-q58w, OESA-2026-1254, OESA-2026-1255, OESA-2026-1256, OESA-2026-1317 and 7 more.

Is CVE-2025-8746 in your software?

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

Check your SBOMs for free