Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
Outils/GitHubGitHub/ravi-lk/cve-2026-102253-poc
Vulnerability AnalysisExploitationFuzzingNetwork Security
GitHubravi-lk/cve-2026-102253-poc

CVE-2026-102253-POC

Python proof-of-concept that drives the iperf3 control protocol to trigger an unauthenticated UDP receive-worker infinite loop (CWE-835) denial of service.

Voir le dépôt
il y a 1 moisPas encore vérifié
Partager
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

CVE-2026-102253-POC

DOS infinite-loop Vulnerability POC

Summary

An unauthenticated remote attacker who can reach an iperf3 -s server’s control port can crash-loop the server’s UDP receive worker into an unrecoverable, CPU-pinning infinite loop using a single crafted control-channel parameter message followed by one UDP data packet. No credentials, no valid test session, and no more than one small TCP message plus one 16-byte UDP datagram are required.

Details

Affected package: iperf3 (esnet/iperf) Affected versions: current main at git c9b7422 (“3.21+”); the bug is present in the shared blksize validation and receive-loop logic and does not appear to be new to this commit — needs maintainer confirmation of the earliest affected release. Not present in the CVE-2025-54349/54350/54351 fix set (those addressed iperf_auth.c and the --skip-rx-copy buffer overflow in net.c; this is a distinct code path and root cause). Patched version: none yet (0-day at time of report)

Root Cause

iperf_udp_recv() (src/iperf_udp.c:60) advances through a receive buffer using a per-iteration stride, dgram_sz, taken directly from the client-negotiated blksize (the len control parameter):

// src/iperf_udp.c:124-232 (abridged)
dgram_buf = sp->buffer;
dgram_buf_end = sp->buffer + buf_sz;

while (buf_sz >= dgram_sz && dgram_buf + dgram_sz <= dgram_buf_end) {
    if (buf_sz < min_pkt_size)   // min_pkt_size == 12
        break;
    ... parse 12/20-byte packet header ...
    dgram_buf += dgram_sz;
    buf_sz    -= dgram_sz;
}

If dgram_sz == 0, neither dgram_buf nor buf_sz changes on any iteration. Both loop conditions (buf_sz >= 0 and an unmoving pointer comparison) remain true forever, and the only internal break requires buf_sz to shrink below 12 — which never happens. Once entered with buf_sz >= 12 and dgram_sz == 0, the loop is unconditionally infinite.

dgram_sz is set directly from sp->settings->blksize (iperf_udp.c:90 and :95), and blksize is attacker-controlled via the len field of the control-channel JSON parameter exchange (get_parameters(), src/iperf_api.c:2654-2661):

// src/iperf_api.c:2654-2661
if ((j_p = ...,"len", cJSON_Number)) != NULL){
    if (j_p->valueint < 0){ i_errno = IEBLOCKSIZE; r = -1; }
    else test->settings->blksize = j_p->valueint;   // 0 is accepted
}

The post-parse sanity check (src/iperf_api.c:2805-2815) has a validation gap specific to UDP:

// src/iperf_api.c:2805-2815
if ((test->protocol->id != Pudp && test->settings->blksize <= 0)   // UDP: skipped
    || test->settings->blksize > MAX_BLOCKSIZE) {
    i_errno = IEBLOCKSIZE; return -1;
}
if (test->protocol->id == Pudp &&
    (test->settings->blksize > 0 &&                                 // <-- gated on > 0
        (test->settings->blksize < MIN_UDP_BLOCKSIZE || test->settings->blksize > MAX_UDP_BLOCKSIZE))) {
    i_errno = IEUDPBLOCKSIZE; return -1;
}

The non-UDP branch correctly rejects blksize <= 0. The UDP branch’s range check is only applied when blksize is already greater than 0 — so blksize == 0 bypasses both checks and is accepted as a valid UDP block size, even though the genuine iperf3 client never sends this value (it resolves -l 0 to a concrete positive size from the path MTU before transmission — iperf_client_api.c:513-518). This is only reachable by a client that speaks the wire protocol directly, i.e. a hostile peer.

A second condition is needed to actually reach the loop with buf_sz > 0: by default, with blksize == 0, the plain UDP read requests 0 bytes and returns early safely. Setting gro=1 with any positive gro_bf_size in the same parameter message causes the receive size to instead be gro_bf_size (iperf_udp.c:87), while dgram_sz is still taken from blksize == 0 (iperf_udp.c:90). UDP_GRO is a standard, unprivileged socket option on modern Linux (confirmed available in the tested build).

(Note: an initially-hypothesized alternate trigger via skip_rx_copy=1 / MSG_TRUNC does not work — the stream buffer is allocated via mmap(NULL, blksize, ...) in iperf_new_stream(), and blksize == 0 without GRO causes that mmap call to fail with EINVAL before the stream/thread is even created. Only the GRO path reaches the vulnerable loop; this was verified experimentally, not assumed.)

Attack Vector

  1. Open a TCP connection to the iperf3 server’s control port (default 5201).
  2. Send the 37-byte cookie the protocol expects (any 37 bytes; content is not validated at this stage).
  3. Receive the server’s PARAM_EXCHANGE (state 9) byte.
  4. Send a 4-byte big-endian length prefix followed by the JSON body: {"udp":true,"len":0,"gro":1,"gro_bf_size":1000,"omit":0,"time":10,"parallel":1}.
  5. Receive CREATE_STREAMS (state 10).
  6. Open a UDP socket to the same host:port, send the 4-byte UDP_CONNECT_MSG handshake value, and receive the 4-byte UDP_CONNECT_REPLY.
  7. The server (with default num_streams=1, mode RECEIVER) immediately transitions to TEST_START (state 1) then TEST_RUNNING (state 2) on the control channel.
  8. Send one UDP datagram of ≥12 bytes on the connected UDP socket (e.g. 16 zero bytes).
  9. The server’s receive thread enters the infinite loop described above and never returns.

No authentication, no valid iperf3 client, and no more than a handful of protocol messages are required. --authorized-users (pre-shared RSA/username auth), which is not the default configuration, is the only mitigation.

Impact

The server’s per-stream receive thread is permanently pinned at ~100% CPU and never completes; the affected test/connection can never be cleaned up by the server on its own, and the process must be forcibly killed (observed requiring SIGKILL; the process did not respond to normal control-channel closure). Since iperf3 -s serves one test/connection at a time by default, a single crafted packet renders the server unusable until an operator manually intervenes — a clean, unauthenticated, single-packet-triggered availability denial-of-service.

Proof of Concept

A standalone Python 3 script (no dependency on the iperf3 client binary) that implements the control protocol described above and demonstrates the hang is attached: poc_udp_dos.py.

$ ./src/iperf3 -s -p 5201
$ python3 poc_udp_dos.py <server-ip> 5201

Observed output (against a locally built git HEAD c9b7422 server):

[*] Server state -> 9 (expect 9=PARAM_EXCHANGE)
[*] Sending crafted params: {'udp': True, 'len': 0, 'gro': 1, 'gro_bf_size': 1000, ...}
[*] Server state -> 10 (expect 10=CREATE_STREAMS)
[*] UDP connect reply: 36373839
[*] Server state -> 1
[*] Server state -> 2
[*] Sending ONE malicious UDP datagram (16 bytes, dgram_sz=0 -> infinite loop)
[+] Control channel produced no further data for 15s after the single trigger datagram

Severity

CVSS 3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5 HIGHCWE: CWE-835 (Loop with Unreachable Exit Condition) leading to CWE-400 (Uncontrolled Resource Consumption)

Credits

  • Reporter: Ravindu Lakmina Munaweera

References

  • CVE Record: CVE-2026-102253
  • VulnCheck Advisory: iperf3 UDP Receive Worker Infinite Loop DoS
  • Vendor Release notes: iPerf3 Release Notes
Télécharger l’outil

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 La boîte à outils OSINT ultime : graphe d'enquête, notation de confiance, familles d'alias, carte, chronologie et rapports. 49 modules, plus de 400 sites, aucune clé API requise.

    915
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    891
  • 3

    wifit3

    derv82/wifit3

    Wifite mais uniquement USB et multiplateforme.

    678
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer est une plateforme open-source de Gestion des Accès Privilégiés (PAM) qui offre aux équipes DevOps et IT un accès sécurisé et à la demande aux terminaux SSH, RDP, Kubernetes, bases de données et RemoteApp via un navigateur web.

    454
  • 5

    SafeLine

    chaitin/safeline

    WAF auto-hébergé et proxy inverse qui filtre le trafic HTTP malveillant, bloque les injections SQL, les XSS et les attaques de robots, avec limitation de débit et chiffrement dynamique HTML/JS.

    404
  • 6

    looking-glass

    anonghosty/looking-glass

    Plateforme CSIRT qui ingère les rapports Shadowserver dans MongoDB et les rejoue sous forme de cartes interactives, d'analyses, de constats, d'avis et de tableaux de bord exécutifs.

    388

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →