Skip to content
Heist/ feed
Back to feed
High

libreswan — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-77206

Libreswan's IKEv2 state machine has a null pointer dereference bug in the EAP handling code for authentication. As a result of inconsistency within the IKEv2 state machine code, this bug can be triggered by any IKEv2 connection, even if EAP is not configured at all. The error is caused by a fall-through where it incorrectly dereferences ike->sa.st_eap which is NULL. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. The bug results in a crash and restart of the pluto daemon. No remote code execution is possible. Continued exploitation can cause a denial of service.

Products
libreswan
Affected versions
3.20-7build1, 3.21-2, 3.22-1, 3.22-2, 3.22-3, 3.22-4, 3.23-1, 3.23-4, 3.29-2, 3.29-2build1, 3.32-3ubuntu3, 4.11-1ubuntu1, 4.12-1ubuntu1, 4.14-1ubuntu1, 4.14-1ubuntu2, 5.2-2.2ubuntu1, 5.2-2.2ubuntu2
Fixed versions
Not specified
CVEs
CVE-2026-77206
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:19 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-77206

core-osv · Original source

Published 13 Oct 2026, 22:18 UTC

Libreswan's IKEv2 state machine has a null pointer dereference bug in the EAP handling code for authentication. As a result of inconsistency within the IKEv2 state machine code, this bug can be triggered by any IKEv2 connection, even if EAP is not configured at all. The error is caused by a fall-through where it incorrectly dereferences ike->sa.st_eap which is NULL. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. The bug results in a crash and restart of the pluto daemon. No remote code execution is possible. Continued exploitation can cause a denial of service.

osv:UBUNTU-CVE-2026-77206

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

Complete source record
{
  "id": "3afcaa8e731eb049b58d5c32e70aead99b3daf15723922bcbba5386ef6042afb",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-77206",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-77206",
    "summary": "Libreswan's IKEv2 state machine has a null pointer dereference bug in the EAP handling code for authentication. As a result of inconsistency within the IKEv2 state machine code, this bug can be triggered by any IKEv2 connection, even if EAP is not configured at all. The error is caused by a fall-through where it incorrectly dereferences ike->sa.st_eap which is NULL. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. The bug results in a crash and restart of the pluto daemon. No remote code execution is possible. Continued exploitation can cause a denial of service.",
    "evidence": "osv:UBUNTU-CVE-2026-77206",
    "products": [
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.20-7build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.21-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.23-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.23-4",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.29-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.29-2build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.32-3ubuntu3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.11-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.12-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.14-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.14-1ubuntu2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2-2.2ubuntu2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2-2.2ubuntu1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "5.2-2.2ubuntu2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-77206",
      "aliases": [
        "UBUNTU-CVE-2026-77206"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.20-7build1",
            "3.21-2",
            "3.22-1",
            "3.22-2",
            "3.22-3",
            "3.22-4",
            "3.23-1",
            "3.23-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77206.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "3.23-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.29-2",
            "3.29-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77206.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "3.29-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.32-3ubuntu3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77206.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "3.32-3ubuntu3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.11-1ubuntu1",
            "4.12-1ubuntu1",
            "4.14-1ubuntu1",
            "4.14-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77206.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "4.14-1ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.2-2.2ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77206.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "5.2-2.2ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5.2-2.2ubuntu1",
            "5.2-2.2ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77206.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "5.2-2.2ubuntu2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:08.238328387Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-77206"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-77206",
        "https://www.cve.org/CVERecord?id=CVE-2026-77206",
        "https://libreswan.org/security/CVE-2026-77206/",
        "https://libreswan.org/security/CVE-2026-77206/CVE-2026-77206.txt"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-77206",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361049,
  "published_at": "2026-10-13T22:18:00+00:00"
}