xmlregexp in libxml2 before 2.15.4 has a NULL pointer dereference in xmlRegNewParserCtxt after a strdup failure, i.e., it does not calculate a string length after NULL checking.
{
"cwe_ids": [
"CWE-252"
],
"cna_assigner": "mitre",
"unresolved_ranges": [
{
"source": "CPE_FIELD",
"extracted_events": [
{
"fixed": "2.15.4"
}
]
},
{
"source": "DESCRIPTION",
"extracted_events": [
{
"introduced": "libxml2"
},
{
"fixed": "2.15.4"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86141.json"
}[
{
"target": {
"file": "xmlregexp.c",
"function": "xmlRegNewParserCtxt"
},
"deprecated": false,
"id": "CVE-2026-86141-c53e3e9f",
"signature_version": "v1",
"digest": {
"function_hash": "27170976607720895530530987209039841160",
"length": 525.0
},
"signature_type": "Function",
"source": "https://github.com/gnome/libxml2/commit/e89a8aae4c9b40cdafcf66b3f9e57c62db37bb55"
},
{
"target": {
"file": "xmlregexp.c"
},
"deprecated": false,
"id": "CVE-2026-86141-f3a38828",
"signature_version": "v1",
"digest": {
"line_hashes": [
"302878214505903208486819954151286530424",
"37630202618886685507405295136119697841",
"93590660092254305857982503994138334279",
"246401619821552732899796684282950842927",
"230708275687567048837374181150302063479",
"65239839760804382027564983652252514488",
"296262472162806466516704123982371573640",
"198405272373661148167750893515741146003",
"68532294000374760556522169048268910697"
],
"threshold": 0.9
},
"signature_type": "Line",
"source": "https://github.com/gnome/libxml2/commit/e89a8aae4c9b40cdafcf66b3f9e57c62db37bb55"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-86141.json"
"2026-09-06T08:01:49Z"