Cloudanix VulnDB

CVE-2026-6846

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Apr 22, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A malicious file used during software builds could let an attacker take over the build process or make it fail.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Remote Code Execution
Component
Application
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability is a heap-based buffer overflow in GNU binutils when the linker processes a specially crafted XCOFF object file. If a vulnerable linking workflow parses the malicious object, memory corruption can occur in the linker process. Successful exploitation can allow code execution with the privileges of the user running the build or link command; unsuccessful exploitation is likely to crash the linker and interrupt build or packaging activity.

Why it matters to the business

This primarily affects developer workstations, build servers, CI/CD runners, container image build pipelines, and systems that compile or link third-party code. An attacker who can get a malicious object file into a build workflow could compromise the build account, tamper with software artifacts, steal source code or credentials available to the build process, or cause build outages. The issue is not listed in CISA KEV, is not known to be used in ransomware campaigns, has low EPSS, and has no public exploit maturity reported, so urgency is moderate unless the organization processes untrusted object files or depends heavily on automated builds using affected Red Hat or GNU binutils packages.

How an attack unfolds

An attacker prepares a malformed XCOFF object file designed to trigger heap memory corruption inside GNU binutils during linking. The attacker then delivers the file through a source package, dependency, archive, pull request, build artifact, or other mechanism likely to be processed by a developer or automated build system. When the victim invokes a vulnerable linker directly or indirectly through tools such as a compiler driver or build system, binutils parses the crafted XCOFF input and overflows heap memory. Depending on exploit reliability and target hardening, the result may be a linker crash or attacker-controlled code execution in the context of the user or CI/CD account performing the build.

How to fix it

Update GNU binutils and downstream vendor packages to fixed versions as soon as they are released by the relevant distribution or platform vendor. For Red Hat Enterprise Linux, Red Hat OpenShift Container Platform, Red Hat hardened images, and other downstream products, track the vendor advisory and rebuild affected container images after updated binutils packages are available. Where immediate patching is not possible, reduce exposure by preventing untrusted object files and archives from being linked, isolating builds in disposable sandboxes or containers, running CI jobs with least-privilege credentials, disabling access to production secrets from build jobs, and treating externally supplied binary object files as untrusted. Avoid manually opening, linking, or repackaging unknown XCOFF object files with vulnerable binutils tools.

How to confirm the fix worked

Confirm exposure by inventorying systems and images that include GNU binutils and checking the installed package version against the operating system or vendor advisory once fixed package versions are published. Validate remediation by confirming the vulnerable package has been updated on developer workstations, build hosts, CI images, container base images, and OpenShift/RHEL-derived images, then rebuilding dependent images and build environments. Confirm that build workflows no longer use old cached toolchain images or runners. Where safe test cases are available from the vendor, run them only in an isolated environment to verify the linker no longer crashes when processing malformed XCOFF input.

Typical attack path

  1. Identify a target that uses vulnerable GNU binutils or downstream platform packages during local or automated builds.
  2. Create or obtain a specially crafted XCOFF object file that triggers the heap-buffer-overflow condition during linking.
  3. Place the malicious object file in a source tree, dependency package, archive, pull request, or build artifact expected to be linked.
  4. Wait for a developer, packaging job, CI runner, or build pipeline to invoke the vulnerable linker against the crafted file.
  5. Exploit memory corruption to crash the linker or execute commands with the privileges and environment access of the build process.
  6. If code execution succeeds, access source code, build secrets, signing material, dependency credentials, or modify produced artifacts.

How to detect it

Look for evidence that vulnerable linker tools processed unexpected XCOFF object files or crashed during builds. Useful sources include CI/CD job logs, build system logs, shell history, auditd or process accounting, endpoint detection telemetry, kernel logs, coredump records, container runtime logs, and artifact repository activity. Investigate linker crashes such as segmentation faults in ld, ld.bfd, collect2, gcc, or g++ that occurred after processing newly introduced object files, libraries, archives, or pull-request content. Also hunt for suspicious child processes launched by compiler or linker processes, especially shells, interpreters, download tools, credential access commands, or outbound network connections. Since there are no public exploitation indicators or known threat actors reported for this issue, detection should focus on behavioral signs: malformed object input, abnormal build-tool crashes, unexpected process trees from toolchain binaries, and unauthorized changes to build outputs or pipeline credentials.

  • /usr/bin/ld
  • /usr/bin/ld.bfd
  • /usr/bin/collect2
  • /usr/bin/gcc
  • /usr/bin/g++
  • Segmentation fault (core dumped)
  • kernel: ld[
  • kernel: collect2[
  • audit: ANOM_ABEND
  • ld.bfd: internal error
  • collect2: error: ld returned
  • core.ld
  • core.ld.bfd
  • core.collect2
  • .xcoff

What your security team should do

  • Prioritize inventory of build servers, CI/CD runners, developer toolchain images, and container base images containing GNU binutils.
  • Monitor vendor advisories for exact fixed package versions and patch affected RHEL, OpenShift, hardened image, and GNU binutils deployments when updates become available.
  • Restrict untrusted binary object files, archives, and precompiled dependencies from entering build pipelines without review or sandboxing.
  • Run build jobs with least privilege and avoid exposing long-lived secrets, signing keys, or production credentials to compilation and linking steps.
  • Add monitoring for abnormal linker crashes and for linker or compiler processes spawning shells or network-capable utilities.
  • Rebuild and redeploy container images that inherited vulnerable binutils packages from affected base images.
  • Because EPSS is low, KEV is false, and no exploit maturity is reported, handle as a controlled patching priority unless untrusted build inputs are common, in which case accelerate mitigation.

The record

A flaw was found in binutils. A heap-buffer-overflow vulnerability exists when processing a specially crafted XCOFF (Extended Common Object File Format) object file during linking. A local attacker could trick a user into processing this malicious file, which could lead to arbitrary code execution, allowing the attacker to run unauthorized commands, or cause a denial of service, making the system unavailable.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities