OESA-2023-1581

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2023-1581
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2023-1581.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2023-1581
Upstream
Published
2023-09-02T11:05:49Z
Modified
2025-09-03T06:19:20.821174Z
Summary
libreswan security update
Details

Libreswan is an implementation of IKEv1 and IKEv2 for IPsec. IPsec is the Internet Protocol Security and uses strong cryptography to provide both authentication and encryption services.

Security Fix(es):

An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or 1, an error notify INVALID_SPI is sent back. The notify payload's protocol ID is copied from the incoming packet, but the code that verifies outgoing packets fails an assertion that the protocol ID must be ESP (2) or AH(3) and causes the pluto daemon to crash and restart. NOTE: the earliest affected version is 3.20.(CVE-2023-38710)

An issue was discovered in Libreswan before 4.12. When an IKEv1 Quick Mode connection configured with IDIPV4ADDR or IDIPV6ADDR receives an IDcr payload with ID_FQDN, a NULL pointer dereference causes a crash and restart of the pluto daemon. NOTE: the earliest affected version is 4.6.(CVE-2023-38711)

An issue was discovered in Libreswan 3.x and 4.x before 4.12. When an IKEv1 ISAKMP SA Informational Exchange packet contains a Delete/Notify payload followed by further Notifies that act on the ISAKMP SA, such as a duplicated Delete/Notify message, a NULL pointer dereference on the deleted state causes the pluto daemon to crash and restart.(CVE-2023-38712)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / libreswan

Package

Name
libreswan
Purl
pkg:rpm/openEuler/libreswan&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.12-1.oe1

Ecosystem specific

{
    "src": [
        "libreswan-4.12-1.oe1.src.rpm"
    ],
    "x86_64": [
        "libreswan-4.12-1.oe1.x86_64.rpm",
        "libreswan-debuginfo-4.12-1.oe1.x86_64.rpm",
        "libreswan-debugsource-4.12-1.oe1.x86_64.rpm",
        "libreswan-help-4.12-1.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "libreswan-4.12-1.oe1.aarch64.rpm",
        "libreswan-debugsource-4.12-1.oe1.aarch64.rpm",
        "libreswan-debuginfo-4.12-1.oe1.aarch64.rpm",
        "libreswan-help-4.12-1.oe1.aarch64.rpm"
    ]
}

openEuler:20.03-LTS-SP3 / libreswan

Package

Name
libreswan
Purl
pkg:rpm/openEuler/libreswan&distro=openEuler-20.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.12-1.oe1

Ecosystem specific

{
    "src": [
        "libreswan-4.12-1.oe1.src.rpm"
    ],
    "x86_64": [
        "libreswan-debuginfo-4.12-1.oe1.x86_64.rpm",
        "libreswan-4.12-1.oe1.x86_64.rpm",
        "libreswan-help-4.12-1.oe1.x86_64.rpm",
        "libreswan-debugsource-4.12-1.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "libreswan-debugsource-4.12-1.oe1.aarch64.rpm",
        "libreswan-help-4.12-1.oe1.aarch64.rpm",
        "libreswan-4.12-1.oe1.aarch64.rpm",
        "libreswan-debuginfo-4.12-1.oe1.aarch64.rpm"
    ]
}

openEuler:22.03-LTS / libreswan

Package

Name
libreswan
Purl
pkg:rpm/openEuler/libreswan&distro=openEuler-22.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.12-1.oe2203sp2

Ecosystem specific

{
    "src": [
        "libreswan-4.12-1.oe2203.src.rpm",
        "libreswan-4.12-1.oe2203sp1.src.rpm",
        "libreswan-4.12-1.oe2203sp2.src.rpm"
    ],
    "x86_64": [
        "libreswan-help-4.12-1.oe2203.x86_64.rpm",
        "libreswan-debugsource-4.12-1.oe2203.x86_64.rpm",
        "libreswan-4.12-1.oe2203.x86_64.rpm",
        "libreswan-debuginfo-4.12-1.oe2203.x86_64.rpm",
        "libreswan-help-4.12-1.oe2203sp1.x86_64.rpm",
        "libreswan-debuginfo-4.12-1.oe2203sp1.x86_64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp1.x86_64.rpm",
        "libreswan-4.12-1.oe2203sp1.x86_64.rpm",
        "libreswan-debuginfo-4.12-1.oe2203sp2.x86_64.rpm",
        "libreswan-help-4.12-1.oe2203sp2.x86_64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp2.x86_64.rpm",
        "libreswan-4.12-1.oe2203sp2.x86_64.rpm"
    ],
    "aarch64": [
        "libreswan-debuginfo-4.12-1.oe2203.aarch64.rpm",
        "libreswan-debugsource-4.12-1.oe2203.aarch64.rpm",
        "libreswan-help-4.12-1.oe2203.aarch64.rpm",
        "libreswan-4.12-1.oe2203.aarch64.rpm",
        "libreswan-help-4.12-1.oe2203sp1.aarch64.rpm",
        "libreswan-4.12-1.oe2203sp1.aarch64.rpm",
        "libreswan-debuginfo-4.12-1.oe2203sp1.aarch64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp1.aarch64.rpm",
        "libreswan-debuginfo-4.12-1.oe2203sp2.aarch64.rpm",
        "libreswan-help-4.12-1.oe2203sp2.aarch64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp2.aarch64.rpm",
        "libreswan-4.12-1.oe2203sp2.aarch64.rpm"
    ]
}

openEuler:22.03-LTS-SP1 / libreswan

Package

Name
libreswan
Purl
pkg:rpm/openEuler/libreswan&distro=openEuler-22.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.12-1.oe2203sp1

Ecosystem specific

{
    "src": [
        "libreswan-4.12-1.oe2203sp1.src.rpm"
    ],
    "x86_64": [
        "libreswan-help-4.12-1.oe2203sp1.x86_64.rpm",
        "libreswan-debuginfo-4.12-1.oe2203sp1.x86_64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp1.x86_64.rpm",
        "libreswan-4.12-1.oe2203sp1.x86_64.rpm"
    ],
    "aarch64": [
        "libreswan-help-4.12-1.oe2203sp1.aarch64.rpm",
        "libreswan-4.12-1.oe2203sp1.aarch64.rpm",
        "libreswan-debuginfo-4.12-1.oe2203sp1.aarch64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp1.aarch64.rpm"
    ]
}

openEuler:22.03-LTS-SP2 / libreswan

Package

Name
libreswan
Purl
pkg:rpm/openEuler/libreswan&distro=openEuler-22.03-LTS-SP2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.12-1.oe2203sp2

Ecosystem specific

{
    "src": [
        "libreswan-4.12-1.oe2203sp2.src.rpm"
    ],
    "x86_64": [
        "libreswan-debuginfo-4.12-1.oe2203sp2.x86_64.rpm",
        "libreswan-help-4.12-1.oe2203sp2.x86_64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp2.x86_64.rpm",
        "libreswan-4.12-1.oe2203sp2.x86_64.rpm"
    ],
    "aarch64": [
        "libreswan-debuginfo-4.12-1.oe2203sp2.aarch64.rpm",
        "libreswan-help-4.12-1.oe2203sp2.aarch64.rpm",
        "libreswan-debugsource-4.12-1.oe2203sp2.aarch64.rpm",
        "libreswan-4.12-1.oe2203sp2.aarch64.rpm"
    ]
}