Vulnerability DatabaseCVE-2026-125404

CVE-2026-125404: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2026-125404 is a stack buffer overflow vulnerability in Ettercap through version 0.8.4.1, caused by an integer underflow in the ccmp_decrypt() function in src/ec_encryption_ccmp.c. The function subtracts the 8-byte CCMP trailer from an unsigned size_t length without first verifying the frame is at least 8 bytes long, causing the length to wrap to a near-SIZE_MAX value and triggering an unbounded stack write. The vulnerability was discovered by the DREAM Security Research Team (Adiel Sol, Arad Inbar, Erez Cohen, Nir Somech, Ben Grinberg, Daniel Lubel, and Shir Sadon) and reported against v0.8.4.1; the fix was merged on November 6, 2026, and published on November 10, 2026. It carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 base score of 7.7 (High) (GitHub Advisory, Github Advisory).

Technical details

The root cause is an integer underflow (CWE-191) in ccmp_decrypt() at src/ec_encryption_ccmp.c line 195, where len -= WPA_CCMP_TRAILER (subtracting 8) is performed on a size_t variable without a prior minimum-length check. For a frame with len < 8 (e.g., len = 3), the subtraction wraps to 0xFFFFFFFFFFFFFFFB, causing the subsequent decryption loop to iterate approximately 2^60 times, writing AES blocks progressively up the stack past the decbuf variable-length array (VLA) in the caller's frame (GitHub Advisory). The outer function wpa_ccmp_decrypt() also contains related defects: data_len = len - sizeof(struct wpa_header) underflows for short frames, the len > UINT16_MAX guard appears after the VLA decbuf[len] is declared, and memcpy/memset calls operate out-of-bounds on short frames (GitHub Advisory, Vulnerable Code). Exploitation requires Ettercap to be running in 802.11 monitor mode with a valid WPA2/CCMP security association loaded (via -W/wifi key configuration and an observed 4-way handshake), so that wpa_decrypt() dispatches to the CCMP path. The resulting write is classified as CWE-787 (Out-of-bounds Write) (Github Advisory).

Impact

Successful exploitation results in stack corruption in the Ettercap process, which typically runs as root, enabling an attacker to achieve arbitrary code execution with root privileges on the host running Ettercap. The confidentiality, integrity, and availability impacts are all rated High, as a root-level compromise grants full control over the affected system, including access to all captured network traffic, credentials, and the ability to pivot to other systems on the monitored network (GitHub Advisory, Github Advisory).

Exploitability

No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and NVD's SSVC assessment classifies exploitation as "none" and the attack as non-automatable. The EPSS score is approximately 0.129% (3rd percentile), indicating a low near-term exploitation probability. Exploitation requires the attacker to be on the same adjacent network segment and to possess knowledge of the loaded WPA key, raising the practical bar for exploitation (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify a host on the local wireless network running Ettercap in 802.11 monitor mode with a WPA2/CCMP key loaded (e.g., via process listing, network scanning, or physical observation).
  2. Confirm preconditions: Verify that Ettercap has observed the WPA 4-way handshake for the target network, enabling the CCMP decryption path (wpa_decrypt() dispatching to ccmp_decrypt()).
  3. Craft malformed CCMP frame: Construct a short 802.11 CCMP-encrypted frame with a payload length less than 8 bytes (e.g., len = 3), which is shorter than the 8-byte WPA_CCMP_TRAILER constant.
  4. Transmit the frame: Inject the crafted frame onto the monitored wireless network using a tool capable of raw 802.11 frame injection (e.g., scapy, airpwn, or a custom raw socket program).
  5. Trigger integer underflow: When Ettercap processes the frame, ccmp_decrypt() computes len -= WPA_CCMP_TRAILER (e.g., 3 - 8), wrapping len to 0xFFFFFFFFFFFFFFFB due to unsigned integer underflow.
  6. Achieve stack buffer overflow: The decryption loop iterates ~2^60 times, writing AES-block-sized chunks progressively up the stack past the decbuf VLA, corrupting return addresses and other stack data.
  7. Gain root code execution: With a carefully crafted frame payload and knowledge of the stack layout, an attacker can overwrite the return address to redirect execution to attacker-controlled code, achieving arbitrary code execution as root (GitHub Advisory, PR #1330).

Indicators of compromise

  • Network: Anomalous short 802.11 CCMP-encrypted frames (payload length < 8 bytes) transmitted on the monitored wireless network; unexpected raw 802.11 frame injection activity from a non-AP/non-STA device.
  • Process: Ettercap process crashing with a segmentation fault or stack smashing error; unexpected child processes spawned by the Ettercap process (e.g., /bin/sh, bash, nc, curl) running as root.
  • Logs: System logs (/var/log/syslog, dmesg) showing segfault or stack corruption messages from the Ettercap process; AddressSanitizer output (if instrumented) reporting dynamic stack buffer overflow in ccmp_decrypt or wpa_ccmp_decrypt.
  • File System: Unexpected files created in world-writable directories or the Ettercap working directory by the root user; new cron jobs, SSH authorized keys, or SUID binaries created after Ettercap was running.

Mitigation and workarounds

Upgrade Ettercap to version 0.8.5.1, which includes the fix merged via pull request #1330 (commit 1d8badb) that adds minimum-length checks in both ccmp_decrypt() and wpa_ccmp_decrypt() before any arithmetic, and moves the UINT16_MAX guard above the VLA declaration (PR #1330, Fix Commit). As a workaround, avoid running Ettercap in 802.11 monitor mode with WPA keys loaded on untrusted networks, and restrict physical/network access to the monitoring host. Where possible, run Ettercap with reduced privileges (though this may limit functionality) and consider enabling stack protection mechanisms (e.g., -fstack-protector-strong, ASLR) on the host (GitHub Advisory).

Community reactions

The Ettercap maintainer (eaescob) responded rapidly to the DREAM Security Research Team's report, merging the fix on November 6, 2026, and releasing version 0.8.5.1 on November 10, 2026, the same day the CVE was published. A member of the Ettercap project (koeppea) praised the fix as "massive" and commended both the development team and the research team. The NixOS/nixpkgs community promptly opened and closed tracking issues for all seven vulnerabilities in the DREAM report, with the nixpkgs maintainer (pSub) quickly updating the package to 0.8.5.1 (PR #1330).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

ettercap

Affected

sid

ettercap

Affected

trixie

ettercap

Affected

Ubuntu

Unknown

bionic (esm-apps)

ettercap

Unknown

devel

ettercap

Unknown

focal (esm-apps)

ettercap

Unknown

jammy

ettercap

Unknown

jammy (esm-apps)

ettercap

Unknown

noble

ettercap

Unknown

noble (esm-apps)

ettercap

Unknown

resolute

ettercap

Unknown

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134844HIGH7.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134843HIGH7.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134845HIGH7.4
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134847MEDIUM6.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134846MEDIUM6.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management