{"id":"CVE-2025-68160","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\nline-buffering filter where the next BIO performs short writes can trigger\na heap-based out-of-bounds write.\n\nImpact summary: This out-of-bounds write can cause memory corruption which\ntypically results in a crash, leading to Denial of Service for an application.\n\nThe line-buffering BIO filter (BIO_f_linebuffer) is not used by default in\nTLS/SSL data paths. In OpenSSL command-line applications, it is typically\nonly pushed onto stdout/stderr on VMS systems. Third-party applications that\nexplicitly use this filter with a BIO chain that can short-write and that\nwrite large, newline-free data influenced by an attacker would be affected.\nHowever, the circumstances where this could happen are unlikely to be under\nattacker control, and BIO_f_linebuffer is unlikely to be handling non-curated\ndata controlled by an attacker. For that reason the issue was assessed as\nLow severity.\n\nThe FIPS modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are not affected by this issue,\nas the BIO implementation is outside the OpenSSL FIPS module boundary.\n\nOpenSSL 3.6, 3.5, 3.4, 3.3, 3.0, 1.1.1 and 1.0.2 are vulnerable to this issue.","modified":"2026-11-11T13:23:09.430967134Z","published":"2026-01-27T16:01:23.181Z","related":["ALSA-2026:1472","ALSA-2026:1473","SUSE-SU-2026:0309-1","SUSE-SU-2026:0310-1","SUSE-SU-2026:0311-1","SUSE-SU-2026:0312-1","SUSE-SU-2026:0331-1","SUSE-SU-2026:0332-1","SUSE-SU-2026:0333-1","SUSE-SU-2026:0343-1","SUSE-SU-2026:0346-1","SUSE-SU-2026:0358-1","SUSE-SU-2026:0359-1","SUSE-SU-2026:0360-1","SUSE-SU-2026:0498-1","SUSE-SU-2026:20211-1","SUSE-SU-2026:20223-1","SUSE-SU-2026:20349-1","SUSE-SU-2026:20373-1","openSUSE-SU-2026:10237-1","openSUSE-SU-2026:20152-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68160.json","cna_assigner":"openssl","cwe_ids":["CWE-787"]},"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68160.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68160"},{"type":"ADVISORY","url":"https://openssl-library.org/news/secadv/20260127.txt"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/384011202af92605d926fafe4a0bcd6b65d162ad"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/475c466ef2fbd8fc1df6fae1c3eed9c813fc8ff6"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/4c96fbba618e1940f038012506ee9e21d32ee12c"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/6845c3b6460a98b1ec4e463baa2ea1a63a32d7c0"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/68a7cd2e2816c3a02f4d45a2ce43fc04fac97096"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/alsyundawy/openssl-1.0.2","events":[{"introduced":"c46078156d49453ba69badc9addb1e2dcd1c71f5"},{"fixed":"c46078156d49453ba69badc9addb1e2dcd1c71f5"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.0.2"},{"fixed":"1.0.2zn"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*"}]}},{"type":"GIT","repo":"https://github.com/kzalewski/openssl-1.1.1","events":[{"introduced":"ddb327ab19b29c64c1752cef26c460ca0b7064ec"},{"fixed":"ddb327ab19b29c64c1752cef26c460ca0b7064ec"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","range":[{"introduced":"1.1.1"},{"fixed":"1.1.1ze"}],"source":"CPE_RANGE"}]}},{"type":"GIT","repo":"https://github.com/openssl/openssl","events":[{"introduced":"e818b74be2170fbe957a07b0da4401c2b694b3b8"},{"fixed":"e818b74be2170fbe957a07b0da4401c2b694b3b8"},{"introduced":"e04bd3433fd84e1861bf258ea37928d9845e6a86"},{"fixed":"e04bd3433fd84e1861bf258ea37928d9845e6a86"},{"introduced":"89cd17a031e022211684eb7eb41190cf1910f9fa"},{"fixed":"a22063cd69a077cc68bb4c10e9f351f75899b194"},{"introduced":"4cb31128b5790819dfeea2739fbde265f71a10a2"},{"fixed":"4601ff25acd6c2fe58a8bfe241e6c470e27b8074"},{"introduced":"98acb6b02839c609ef5b837794e08d906d965335"},{"fixed":"565bdcc41bbf89fcbaf962636469332689f0c9fd"},{"introduced":"636dfadc70ce26f2473870570bfd9ec352806b1d"},{"fixed":"67b5686b4419b4cb8caa502711c41815f5279751"},{"introduced":"7b371d80d959ec9ab4139d09d78e83c090de9779"},{"fixed":"c9a9e5b10105ad850b6e4d1122c645c67767c341"},{"fixed":"384011202af92605d926fafe4a0bcd6b65d162ad"},{"fixed":"475c466ef2fbd8fc1df6fae1c3eed9c813fc8ff6"},{"fixed":"4c96fbba618e1940f038012506ee9e21d32ee12c"},{"fixed":"6845c3b6460a98b1ec4e463baa2ea1a63a32d7c0"},{"fixed":"68a7cd2e2816c3a02f4d45a2ce43fc04fac97096"}],"database_specific":{"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"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","range":[{"introduced":"3.4.0"},{"fixed":"3.4.4"}]},{"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","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"384011202af92605d926fafe4a0bcd6b65d162ad"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"475c466ef2fbd8fc1df6fae1c3eed9c813fc8ff6"}]},{"range":[{"fixed":"4c96fbba618e1940f038012506ee9e21d32ee12c"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"6845c3b6460a98b1ec4e463baa2ea1a63a32d7c0"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"68a7cd2e2816c3a02f4d45a2ce43fc04fac97096"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["3.4-POST-CLANG-FORMAT-WEBKIT","3.0-POST-CLANG-FORMAT-WEBKIT","3.4-PRE-CLANG-FORMAT-WEBKIT","3.3-POST-CLANG-FORMAT-WEBKIT","3.5-POST-CLANG-FORMAT-WEBKIT","3.0-PRE-CLANG-FORMAT-WEBKIT","3.3-PRE-CLANG-FORMAT-WEBKIT","3.5-PRE-CLANG-FORMAT-WEBKIT","3.6-POST-CLANG-FORMAT-WEBKIT","3.6-PRE-CLANG-FORMAT-WEBKIT","openssl-3.6.0","openssl-3.0.18","openssl-3.3.5","openssl-3.4.3","openssl-3.5.4","openssl-3.5.3","openssl-3.5.2","openssl-3.0.17","openssl-3.3.4","openssl-3.4.2","openssl-3.5.1","openssl-3.5.0","openssl-3.0.16","openssl-3.3.3","openssl-3.4.1","openssl-3.4.0","openssl-3.0.15","openssl-3.3.2","openssl-3.0.14","openssl-3.3.1","openssl-3.3.0","openssl-3.0.13","openssl-3.0.12","openssl-3.0.11","openssl-3.0.10","openssl-3.0.9","openssl-3.0.8","openssl-3.0.7","openssl-3.0.6","openssl-3.0.5","openssl-3.0.4","openssl-3.0.3","openssl-3.0.2","openssl-3.0.1","openssl-3.0.0"],"database_specific":{"vanir_signatures":[{"id":"CVE-2025-68160-0115da44","signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/asn1/a_mbstr.c","function":"ASN1_mbstring_ncopy"},"deprecated":false,"digest":{"function_hash":"145081246022159018632346591780852072638","length":3301}},{"digest":{"line_hashes":["151496904140441974460168482169374190024","252388763391472546762550272601898462670","322392321298523662111637318544365606017","92792830564595161366593755445407076135","125370360892352031658984319622272957499","135472893131710710891792272165369874557","144388576385066123595834036136006620631","251569583518298411383983956510462999062","190752638376984200658169048788492801771","100442701798321830557371459503827921141","157868922838337151802955969179465392317","247133924118207300622477622521703740882"],"threshold":0.9},"id":"CVE-2025-68160-10c2ef8d","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/pkcs7/pk7_smime.c"},"deprecated":false},{"digest":{"threshold":0.9,"line_hashes":["326706324675548840343059491432175579308","114844763854417187951168206090197510366","167345785719281904993519213285676239194","257263426464193822686404804161157532412","50859066439319194516902197275909064518","18456403878150118977756109076675068777","52375315159804342268105767276256543041","58506114754643604034222004329137803376"]},"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":{"threshold":0.9,"line_hashes":["326706324675548840343059491432175579308","114844763854417187951168206090197510366","167345785719281904993519213285676239194","257263426464193822686404804161157532412","50859066439319194516902197275909064518","18456403878150118977756109076675068777","52375315159804342268105767276256543041","58506114754643604034222004329137803376"]},"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},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/asn1/a_mbstr.c","function":"out_utf8"},"deprecated":false,"digest":{"length":148,"function_hash":"70418561901620867514045039520920039213"},"id":"CVE-2025-68160-315e1fbb"},{"source":"https://github.com/openssl/openssl/commit/384011202af92605d926fafe4a0bcd6b65d162ad","target":{"file":"crypto/bio/bf_lbuf.c","function":"linebuffer_write"},"deprecated":false,"digest":{"function_hash":"91143076051739638548163354092603980205","length":1836},"id":"CVE-2025-68160-371c2c54","signature_type":"Function","signature_version":"v1"},{"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},{"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":{"function_hash":"91143076051739638548163354092603980205","length":1836},"id":"CVE-2025-68160-6544ee0a"},{"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":["326706324675548840343059491432175579308","114844763854417187951168206090197510366","167345785719281904993519213285676239194","257263426464193822686404804161157532412","50859066439319194516902197275909064518","18456403878150118977756109076675068777","52375315159804342268105767276256543041","58506114754643604034222004329137803376"],"threshold":0.9}},{"signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"include/openssl/opensslv.h"},"deprecated":false,"digest":{"line_hashes":["131154213046974496778457434048691074837","11412147066710286517722597447846471117","264770296592556677305107142032766937388","276397443140848844849079658380453872857","195870554892312134442829321964179019399"],"threshold":0.9},"id":"CVE-2025-68160-87e36a00","signature_type":"Line"},{"target":{"file":"crypto/asn1/tasn_dec.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["126341431044776940549287222658722596257","130570927788432269899785168744788951172","194169660864360803525450492876473860091","110467782499934282756168500046914951485","263946134258438649256241779625323641089","232531144570205203842568959033909256821","50105547378036962616739399907795763233","35026789599821935911816818772042439275","114710208109255960726965919362105298762","125554540231637930487019176647117002503","332182547294553747961268671162250805775","276033856309860817184326883455361222142","318268129131630080093563577138856184340","128526451235089518533697095563624199685","75522999902161732913968142567093758009","233242365504435285051066046524808432015","197089990496411212407345093272572794903","203627204430850126635677767987115907052","110527555710504927393608627867030602220","129739062881190220811156277727848860285","64544717289057079449815286406570439951","201167284819377777248970251144566099169","222516930768176972010755807924686646230","90961471150301180096894104068604511683","128676851434441285018275177161089865561","129724505883296824298208229090221093179","225269234833384762270352983556638638592","90371650052899301631217696225591147992","246784737627998664119002956221509877842","315371643750711437594895449353374659288","286011929765548229255520019142347591441","220624038106194157196845376518684753434","174882410006964856548150664239804105254","116231510630487651899483668166785513275"]},"id":"CVE-2025-68160-89e18e76","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec"},{"deprecated":false,"digest":{"line_hashes":["243971072618222724126117138392541085907","20203436555900253968670420024125559450","261033251671054815966464244630025010874","142558467251092045021326807845044327645","117558078243606577959089637136237792030","124332917225391423252605388545338682722","236022608503733170562534553288003810395","339832511801857794746629870610675811880","219260262152978755644652810379289549161","238161164963855964634408949729400551790","305007661457817428636275014467276783572","224942011457082636465204480559032896603","161399292792765951653776025419102349086","249748745323502641665219507560747603718","133814635171188589537358224623499256384","166636678108051380708454788668826388282","148812255457104429740188330155555022957","67995203963239490129688609208357985916","46589837028236721023105012731504719567","61425611895307496760454057009746874404"],"threshold":0.9},"id":"CVE-2025-68160-8be4f956","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/asn1/a_mbstr.c"}},{"id":"CVE-2025-68160-8dac97cc","signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/cms/cms_pwri.c","function":"cms_RecipientInfo_pwri_crypt"},"deprecated":false,"digest":{"length":2404,"function_hash":"60884720753669845608764646390078165978"}},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["319646123228225632035521226865494527950","52841444872899117514496250284924185664","33853134948390324832871761212087746225","81188860042095766577152905858367341175","302749459819436303573414214711383738500","106372169618065324582769687411773396323","255586470514418239073904203556570502151","316909758438434070933019317604952931093","227036639418218030553513135503985645880","19797040175335443903820697047342526981","3213252085324805485799329367541299827","167277605188112932709311947349617776953","33676618202441094170922943458357128290"]},"id":"CVE-2025-68160-c30f17c3","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/cms/cms_pwri.c"}},{"digest":{"threshold":0.9,"line_hashes":["28170854778703993674264004058177114599","73132526844288570625317440636111911761","177405411499435185068645597737938634778","224809958623850711330610094965797758930","295554444428855106393106961197201359586"]},"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},{"source":"https://github.com/openssl/openssl/commit/4c96fbba618e1940f038012506ee9e21d32ee12c","target":{"file":"crypto/bio/bf_lbuf.c","function":"linebuffer_write"},"deprecated":false,"digest":{"function_hash":"177227187165901619068025629445574661809","length":1842},"id":"CVE-2025-68160-cd92b258","signature_type":"Function","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/openssl/openssl/commit/6845c3b6460a98b1ec4e463baa2ea1a63a32d7c0","target":{"function":"linebuffer_write","file":"crypto/bio/bf_lbuf.c"},"deprecated":false,"digest":{"function_hash":"91143076051739638548163354092603980205","length":1836},"id":"CVE-2025-68160-d2ec84eb","signature_type":"Function"},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["326706324675548840343059491432175579308","114844763854417187951168206090197510366","167345785719281904993519213285676239194","257263426464193822686404804161157532412","50859066439319194516902197275909064518","18456403878150118977756109076675068777","52375315159804342268105767276256543041","58506114754643604034222004329137803376"]},"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"}},{"digest":{"function_hash":"219999985288845958916653358585559913606","length":2843},"id":"CVE-2025-68160-db231d4a","signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/asn1/tasn_dec.c","function":"asn1_ex_c2i"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/openssl/openssl/commit/68a7cd2e2816c3a02f4d45a2ce43fc04fac97096","target":{"file":"crypto/bio/bf_lbuf.c","function":"linebuffer_write"},"deprecated":false,"digest":{"function_hash":"91143076051739638548163354092603980205","length":1836},"id":"CVE-2025-68160-ddc49f75","signature_type":"Function"},{"id":"CVE-2025-68160-df118fd8","signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/cms/cms_pwri.c","function":"kek_unwrap_key"},"deprecated":false,"digest":{"length":1031,"function_hash":"130089047505679726786813950750828918851"}},{"digest":{"threshold":0.9,"line_hashes":["251633914150035957322733061977107206211","338514574181828579838011565939158652696","76638288692106140328510055542557597351","142922657400765574308962710386922248045","71649992455794854055653842592139575350","65527166711110472566013424527579064967","253196866009476977787139000804413898733","172177136897997206866313011107384691461"]},"id":"CVE-2025-68160-e051451f","signature_type":"Line","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/e818b74be2170fbe957a07b0da4401c2b694b3b8","target":{"file":"crypto/opensslv.h"},"deprecated":false}],"vanir_signatures_modified":"2026-11-11T13:23:09Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68160.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}