Lucene search
+L

hping3 547c76 IP Record Route Out-of-Bounds Write

🗓️ 30 Nov 2026 00:00:00Reported by Umut SEVİNÇType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 5 Views

Out-of-bounds write in hping3 IP Record Route processing.

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2026-136131
24 Nov 202616:11
–githubexploit
circl
Circl
CVE-2026-136131
24 Nov 202615:13
–circl
cve
CVE
CVE-2026-136131
24 Nov 202614:11
–cve
cvelist
Cvelist
CVE-2026-136131 hping3 through commit 3547c76 Out-of-Bounds Write in display_ipopt() via Record Route
24 Nov 202614:11
–cvelist
euvd
EUVD
EUVD-2026-133976
24 Nov 202614:11
–euvd
mend
Mend
CVE-2026-136131
24 Nov 202614:11
–mend
nvd
NVD
CVE-2026-136131
24 Nov 202615:17
–nvd
osv_azl
osv_azl
AZL-116375 CVE-2026-136131 affecting package hping3 0.0.20051105-41
24 Nov 202615:17
–osv_azl
osv_cve
osv_cve
CVE-2026-136131 hping3 through commit 3547c76 Out-of-Bounds Write in display_ipopt() via Record Route
24 Nov 202614:11
–osv_cve
osv_ubuntu
osv_ubuntu
UBUNTU-CVE-2026-136131
24 Nov 202615:17
–osv_ubuntu
Rows per page
/*
 * Local test harness concept for reproducing/verifying the IPOPT_RR
 * bounds behavior in display_ipopt() under AddressSanitizer (-fsanitize=address).
 * Intended for local analysis and patch verification only.
 */

#include <stdint.h>
#include <stdio.h>
#include <string.h>

#define MAX_IPOPTLEN 40
#define IPOPT_RR     7
#define IPOPT_MINOFF 4

/* Minimal mock of the vulnerable slice logic for isolated testing */
static int old_rrlen;
static char old_rr[MAX_IPOPTLEN];

static void simulated_ipopt_rr(const uint8_t *opt_stream, size_t opt_len) {
    /* Expected layout in opt_stream:
     * opt_stream[0] -> option code (IPOPT_RR)
     * opt_stream[1] -> option length byte (j)
     * opt_stream[2] -> pointer byte (i)
     * opt_stream[3..] -> option payload data
     */
    if (opt_len < 3) {
        return;
    }

    size_t idx = 0;
    int j = opt_stream[++idx];
    int i = opt_stream[++idx];
    int hlen = (int)opt_len - 2;

    if (i > j) {
        i = j;
    }

    i -= IPOPT_MINOFF;
    if (i <= 0) {
        return;
    }

    /* NOTE: In unpatched logic, clamping to MAX_IPOPTLEN and remaining hlen is missing */
    if (i > (int)sizeof(old_rr)) {
        /* Demonstrating where an unguarded copy exceeds the 40-byte buffer */
        printf("[!] Unbounded length detected: i=%d (buffer=%zu)\n", i, sizeof(old_rr));
        return;
    }

    old_rrlen = i;
    memcpy(old_rr, &opt_stream[idx + 1], (size_t)i);
    printf("[+] Copied %d bytes safely into old_rr\n", i);
}

int main(void) {
    uint8_t sample_buf[300];
    memset(sample_buf, 'A', sizeof(sample_buf));

    sample_buf[0] = IPOPT_RR;
    sample_buf[1] = 100; /* example length byte */
    sample_buf[2] = 100; /* example pointer byte -> (100 - 4) = 96 > 40 */

    simulated_ipopt_rr(sample_buf, sizeof(sample_buf));
    return 0;
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

30 Nov 2026 00:00Current
6.2Medium risk
Vulners AI Score6.2
CVSS 3.15.9
CVSS 46
EPSS0.00823
SSVC
5