Skip to content
Heist/ feed
High

Stack buffer overflow in SCTP error cause parsing in inet_drv allows remote VM crash

Type: advisorySource: Official CVE List1 source record

Stack-based Buffer Overflow vulnerability in Erlang OTP erts (inet_drv) allows an unauthenticated remote attacker to crash the BEAM VM by sending a crafted SCTP ERROR chunk. The sctp_parse_error_chunk function in erts/emulator/drivers/common/inet_drv.c parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated ErlDrvTermData spec[] array without checking bounds. A remote attacker who has established an SCTP association to a listening port can send a single crafted SCTP ERROR chunk containing enough cause codes to overflow the stack buffer, crashing the VM. The attacker can only write 16-bit values interleaved with a fixed tag, so the overflow does not provide a controlled return address, limiting exploitation to Denial of Service. A crafted SCTP ERROR chunk may also leak bits and pieces of Erlang VM memory into the received error packet observed by the Erlang process. Such data is already readable by the user running the Erlang VM, so the disclosure scope is limited. This issue affects OTP from OTP 17.0 before OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to erts from 6.0 before 15.2.7.9, 16.4.0.2, and 17.0.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.

Announced Source revision 1
Original source ↗

CVE-2026-49759

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-49759

OTP

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

OTP

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

OTP

Source reference: /containers/cna/affected/2/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "vendor": "Erlang",
    "modules": [
      "inet_drv"
    ],
    "product": "OTP",
    "versions": [
      {
        "status": "affected",
        "changes": [
          {
            "at": "27.3.4.13",
            "status": "unaffected"
          },
          {
            "at": "28.5.0.2",
            "status": "unaffected"
          },
          {
            "at": "29.0.2",
            "status": "unaffected"
          }
        ],
        "version": "17.0",
        "lessThan": "*",
        "versionType": "otp"
      }
    ],
    "packageURL": "pkg:software-id/erlang.org/otp",
    "packageName": "otp",
    "programFiles": [
      "erts/emulator/drivers/common/inet_drv.c"
    ],
    "defaultStatus": "unknown",
    "programRoutines": [
      {
        "name": "sctp_parse_error_chunk"
      }
    ]
  },
  {
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "repo": "https://github.com/erlang/otp",
    "vendor": "Erlang",
    "modules": [
      "inet_drv"
    ],
    "product": "OTP",
    "versions": [
      {
        "status": "affected",
        "changes": [
          {
            "at": "15.2.7.9",
            "status": "unaffected"
          },
          {
            "at": "16.4.0.2",
            "status": "unaffected"
          },
          {
            "at": "17.0.2",
            "status": "unaffected"
          }
        ],
        "version": "6.0",
        "lessThan": "*",
        "versionType": "otp"
      }
    ],
    "packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
    "packageName": "erts",
    "programFiles": [
      "emulator/drivers/common/inet_drv.c"
    ],
    "defaultStatus": "unknown",
    "programRoutines": [
      {
        "name": "sctp_parse_error_chunk"
      }
    ]
  },
  {
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "repo": "https://github.com/erlang/otp",
    "vendor": "Erlang",
    "modules": [
      "inet_drv"
    ],
    "product": "OTP",
    "versions": [
      {
        "status": "affected",
        "version": "84adefa331c4159d432d22840663c38f155cd4c1",
        "lessThan": "3983d495284331c121f600a80bac9fcf4e16381e",
        "versionType": "git"
      },
      {
        "status": "unaffected",
        "version": "3983d495284331c121f600a80bac9fcf4e16381e",
        "lessThan": "*",
        "versionType": "git"
      }
    ],
    "packageURL": "pkg:github/erlang/otp",
    "packageName": "erlang/otp",
    "programFiles": [
      "erts/emulator/drivers/common/inet_drv.c"
    ],
    "collectionURL": "https://github.com",
    "defaultStatus": "unknown",
    "programRoutines": [
      {
        "name": "sctp_parse_error_chunk"
      }
    ]
  }
]
Related CVEs
CVE-2026-49759

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#1889 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement