{"id":"UBUNTU-CVE-2026-17510","details":"Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute. print_attribute() sizes the destination buffer for a BMPSTRING attribute from its declared byte length with `Renew(*attribute, length, char)`. A zero length attribute makes that a zero size reallocation, which Perl implements as a free returning NULL, so the buffer pointer becomes NULL, the following `strncpy` copies nothing, and the caller dereferences NULL in the `strlen()` it passes to `newSVpvn()`. A zero length BMPSTRING is even length, so the ASN.1 decoder accepts it and the value reaches this code. The UTF8STRING, OCTET STRING and BIT STRING arms size on `length + 1` or `length * 4 + 1` and are unaffected. Any caller that passes an untrusted PKCS#12 file to info_as_hash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.","modified":"2026-08-13T19:30:09.826679368Z","published":"2026-08-09T02:16:00Z","upstream":["CVE-2026-17510"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-17510"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-17510"},{"type":"REPORT","url":"https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/6cb282d8d8e8ded4859551cd2d3cfa7c6028ce48.patch"},{"type":"REPORT","url":"https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.98/source/Changes.md"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2026/08/09/1"}],"affected":[{"package":{"name":"libcrypt-openssl-pkcs12-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7-1","0.7-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7-1build1","binary_name":"libcrypt-openssl-pkcs12-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"}},{"package":{"name":"libcrypt-openssl-pkcs12-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7-3ubuntu2","0.8-1","0.8-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8-1build1","binary_name":"libcrypt-openssl-pkcs12-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"}},{"package":{"name":"libcrypt-openssl-pkcs12-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2-1","1.2-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcrypt-openssl-pkcs12-perl","binary_version":"1.2-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"}},{"package":{"name":"libcrypt-openssl-pkcs12-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9-2","1.9-3","1.9-3build1","1.9-3build3","1.9-3build4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9-3build4","binary_name":"libcrypt-openssl-pkcs12-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"}},{"package":{"name":"libcrypt-openssl-pkcs12-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.94-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcrypt-openssl-pkcs12-perl","binary_version":"1.94-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"}}],"schema_version":"1.9.0","severity":[{"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"}]}