CVE-2025-68160

Source
https://cve.org/CVERecord?id=CVE-2025-68160
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68160.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-68160
Downstream
ALPINE (1)
AZL (5)
BELL (1)
CGA (12)
DEBIAN (1)
ECHO (1)
JLSEC (1)
MGASA (1)
MINI (3)
OESA (15)
openSUSE (2)
RHSA (3)
RLSA (2)
SUSE (17)
UBUNTU (1)
Related
Published
2026-01-27T16:01:23Z
Modified
2026-10-22T16:10:09Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Heap out-of-bounds write in BIO_f_linebuffer on short writes
Details

Issue summary: Writing large, newline-free data into a BIO chain using the line-buffering filter where the next BIO performs short writes can trigger a heap-based out-of-bounds write.

Impact summary: This out-of-bounds write can cause memory corruption which typically results in a crash, leading to Denial of Service for an application.

The line-buffering BIO filter (BIO_f_linebuffer) is not used by default in TLS/SSL data paths. In OpenSSL command-line applications, it is typically only pushed onto stdout/stderr on VMS systems. Third-party applications that explicitly use this filter with a BIO chain that can short-write and that write large, newline-free data influenced by an attacker would be affected. However, the circumstances where this could happen are unlikely to be under attacker control, and BIO_f_linebuffer is unlikely to be handling non-curated data controlled by an attacker. For that reason the issue was assessed as Low severity.

The FIPS modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the BIO implementation is outside the OpenSSL FIPS module boundary.

OpenSSL 3.6, 3.5, 3.4, 3.3, 3.0, 1.1.1 and 1.0.2 are vulnerable to this issue.

Database specific
{
    "cna_assigner": "openssl",
    "cwe_ids": [
        "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68160.json"
}
References

Affected packages

Git / github.com/openssl/openssl

Affected ranges

Type
GIT
Repo
https://github.com/openssl/openssl
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "1.0.2"
                },
                {
                    "fixed": "1.0.2zn"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "1.1.1"
                },
                {
                    "fixed": "1.1.1ze"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "3.0.0"
                },
                {
                    "fixed": "3.0.19"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "3.3.0"
                },
                {
                    "fixed": "3.3.6"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "3.4.0"
                },
                {
                    "fixed": "3.4.4"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "3.5.0"
                },
                {
                    "fixed": "3.5.5"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "3.6.0"
                },
                {
                    "fixed": "3.6.1"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "range": [
                {
                    "fixed": "384011202af92605d926fafe4a0bcd6b65d162ad"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "475c466ef2fbd8fc1df6fae1c3eed9c813fc8ff6"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "4c96fbba618e1940f038012506ee9e21d32ee12c"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "6845c3b6460a98b1ec4e463baa2ea1a63a32d7c0"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "68a7cd2e2816c3a02f4d45a2ce43fc04fac97096"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

3.*
3.0-POST-CLANG-FORMAT-WEBKIT
3.0-PRE-CLANG-FORMAT-WEBKIT
3.3-POST-CLANG-FORMAT-WEBKIT
3.3-PRE-CLANG-FORMAT-WEBKIT
3.4-POST-CLANG-FORMAT-WEBKIT
3.4-PRE-CLANG-FORMAT-WEBKIT
3.5-POST-CLANG-FORMAT-WEBKIT
3.5-PRE-CLANG-FORMAT-WEBKIT
3.6-POST-CLANG-FORMAT-WEBKIT
3.6-PRE-CLANG-FORMAT-WEBKIT
openssl-3.*
openssl-3.0.0
openssl-3.0.1
openssl-3.0.10
openssl-3.0.11
openssl-3.0.12
openssl-3.0.13
openssl-3.0.14
openssl-3.0.15
openssl-3.0.16
openssl-3.0.17
openssl-3.0.18
openssl-3.0.2
openssl-3.0.3
openssl-3.0.4
openssl-3.0.5
openssl-3.0.6
openssl-3.0.7
openssl-3.0.8
openssl-3.0.9
openssl-3.3.0
openssl-3.3.1
openssl-3.3.2
openssl-3.3.3
openssl-3.3.4
openssl-3.3.5
openssl-3.4.0
openssl-3.4.1
openssl-3.4.2
openssl-3.4.3
openssl-3.5.0
openssl-3.5.1
openssl-3.5.2
openssl-3.5.3
openssl-3.5.4
openssl-3.6.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68160.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "326706324675548840343059491432175579308",
                "114844763854417187951168206090197510366",
                "167345785719281904993519213285676239194",
                "257263426464193822686404804161157532412",
                "50859066439319194516902197275909064518",
                "18456403878150118977756109076675068777",
                "52375315159804342268105767276256543041",
                "58506114754643604034222004329137803376"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-68160-11f3e179",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/475c466ef2fbd8fc1df6fae1c3eed9c813fc8ff6",
        "target": {
            "file": "crypto/bio/bf_lbuf.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "326706324675548840343059491432175579308",
                "114844763854417187951168206090197510366",
                "167345785719281904993519213285676239194",
                "257263426464193822686404804161157532412",
                "50859066439319194516902197275909064518",
                "18456403878150118977756109076675068777",
                "52375315159804342268105767276256543041",
                "58506114754643604034222004329137803376"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-68160-193f929b",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/6845c3b6460a98b1ec4e463baa2ea1a63a32d7c0",
        "target": {
            "file": "crypto/bio/bf_lbuf.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "91143076051739638548163354092603980205",
            "length": 1836
        },
        "id": "CVE-2025-68160-371c2c54",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/384011202af92605d926fafe4a0bcd6b65d162ad",
        "target": {
            "file": "crypto/bio/bf_lbuf.c",
            "function": "linebuffer_write"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "326706324675548840343059491432175579308",
                "114844763854417187951168206090197510366",
                "167345785719281904993519213285676239194",
                "257263426464193822686404804161157532412",
                "50859066439319194516902197275909064518",
                "18456403878150118977756109076675068777",
                "52375315159804342268105767276256543041",
                "58506114754643604034222004329137803376"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-68160-5f322883",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/384011202af92605d926fafe4a0bcd6b65d162ad",
        "target": {
            "file": "crypto/bio/bf_lbuf.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "91143076051739638548163354092603980205",
            "length": 1836
        },
        "id": "CVE-2025-68160-6544ee0a",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/475c466ef2fbd8fc1df6fae1c3eed9c813fc8ff6",
        "target": {
            "file": "crypto/bio/bf_lbuf.c",
            "function": "linebuffer_write"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "326706324675548840343059491432175579308",
                "114844763854417187951168206090197510366",
                "167345785719281904993519213285676239194",
                "257263426464193822686404804161157532412",
                "50859066439319194516902197275909064518",
                "18456403878150118977756109076675068777",
                "52375315159804342268105767276256543041",
                "58506114754643604034222004329137803376"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-68160-6dcc1b10",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/4c96fbba618e1940f038012506ee9e21d32ee12c",
        "target": {
            "file": "crypto/bio/bf_lbuf.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "28170854778703993674264004058177114599",
                "73132526844288570625317440636111911761",
                "177405411499435185068645597737938634778",
                "224809958623850711330610094965797758930",
                "295554444428855106393106961197201359586"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-68160-c377fa22",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/e04bd3433fd84e1861bf258ea37928d9845e6a86",
        "target": {
            "file": "include/openssl/opensslv.h"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "177227187165901619068025629445574661809",
            "length": 1842
        },
        "id": "CVE-2025-68160-cd92b258",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/4c96fbba618e1940f038012506ee9e21d32ee12c",
        "target": {
            "file": "crypto/bio/bf_lbuf.c",
            "function": "linebuffer_write"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "91143076051739638548163354092603980205",
            "length": 1836
        },
        "id": "CVE-2025-68160-d2ec84eb",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/6845c3b6460a98b1ec4e463baa2ea1a63a32d7c0",
        "target": {
            "file": "crypto/bio/bf_lbuf.c",
            "function": "linebuffer_write"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "326706324675548840343059491432175579308",
                "114844763854417187951168206090197510366",
                "167345785719281904993519213285676239194",
                "257263426464193822686404804161157532412",
                "50859066439319194516902197275909064518",
                "18456403878150118977756109076675068777",
                "52375315159804342268105767276256543041",
                "58506114754643604034222004329137803376"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-68160-d7ed1c09",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/68a7cd2e2816c3a02f4d45a2ce43fc04fac97096",
        "target": {
            "file": "crypto/bio/bf_lbuf.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "91143076051739638548163354092603980205",
            "length": 1836
        },
        "id": "CVE-2025-68160-ddc49f75",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/68a7cd2e2816c3a02f4d45a2ce43fc04fac97096",
        "target": {
            "file": "crypto/bio/bf_lbuf.c",
            "function": "linebuffer_write"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "251633914150035957322733061977107206211",
                "338514574181828579838011565939158652696",
                "76638288692106140328510055542557597351",
                "142922657400765574308962710386922248045",
                "71649992455794854055653842592139575350",
                "65527166711110472566013424527579064967",
                "253196866009476977787139000804413898733",
                "172177136897997206866313011107384691461"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-68160-e051451f",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/e818b74be2170fbe957a07b0da4401c2b694b3b8",
        "target": {
            "file": "crypto/opensslv.h"
        }
    }
]
vanir_signatures_modified
"2026-10-22T16:10:09Z"