CVE and update status of the FreeBSD ports tree4,526 unaddressed CVEs in 616 portsAll times are CET

CVE details

CVE-2026-22796

Issue summary: A type confusion vulnerability exists in the signature verification of signed PKCS#7 data where an ASN1_TYPE union member is accessed without first validating the type, causing an invalid or NULL pointer dereference when processing malformed PKCS#7 data. Impact summary: An application performing signature verification of PKCS#7 data or calling directly the PKCS7_digest_from_attributes() function can be caused to dereference an invalid or NULL pointer when reading, resulting in a Denial of Service. The function PKCS7_digest_from_attributes() accesses the message digest attribute value without validating its type. When the type is not V_ASN1_OCTET_STRING, this results in accessing invalid memory through the ASN1_TYPE union, causing a crash. Exploiting this vulnerability requires an attacker to provide a malformed signed PKCS#7 to an application that verifies it. The impact of the exploit is just a Denial of Service, the PKCS7 API is legacy and applications should be using the CMS API instead. For these reasons the issue was assessed as Low severity. The FIPS modules in 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the PKCS#7 parsing 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.

Score
5.3 medium
Published
2026-01-27
Links
NVD · cve.org

Affected ports (2)

PortPackageVersionStatusMaintainer
security/linux-c7-openssl-devellinux-c7-openssl-devel1.0.2k_2unaddressedemulation@FreeBSD.org
security/openssl-unsafeopenssl-unsafe1.0.2.20170706unaddressedbrnrd@FreeBSD.org

VuXML

Template for a VuXML entry

Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.

  <vuln vid="FIXME (make newentry)">
    <topic>FIXME -- FIXME</topic>
    <affects>
      <package>
	<name>linux-c7-openssl-devel</name>
	<range><lt>1.0.2zn</lt></range>
      </package>
      <package>
	<name>openssl-unsafe</name>
	<range><lt>1.0.2zn</lt></range>
      </package>
    </affects>
    <description>
      <body xmlns="http://www.w3.org/1999/xhtml">
	<p>Issue summary: A type confusion vulnerability exists in the
	signature
verification of signed PKCS#7 data where an ASN1_TYPE union
	member is
accessed without first validating the type, causing an
	invalid or NULL
pointer dereference when processing malformed PKCS#7
	data.

Impact summary: An application performing signature
	verification of PKCS#7
data or calling directly the
	PKCS7_digest_from_attributes() function can be
caused to dereference
	an invalid or NULL pointer when reading, resulting in
a Denial of
	Service.

The function PKCS7_digest_from_attributes() accesses the
	message digest attribute
value without validating its type. When the
	type is not V_ASN1_OCTET_STRING,
this results in accessing invalid
	memory through the ASN1_TYPE union, causing
a crash.

Exploiting this
	vulnerability requires an attacker to provide a malformed
signed
	PKCS#7 to an application that verifies it. The impact of the
exploit
	is just a Denial of Service, the PKCS7 API is legacy and
	applications
should be using the CMS API instead. For these reasons
	the issue was
assessed as Low severity.

The FIPS modules in 3.5, 3.4,
	3.3 and 3.0 are not affected by this issue,
as the PKCS#7 parsing
	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.</p>
      </body>
    </description>
    <references>
      <cvename>CVE-2026-22796</cvename>
      <url>https://nvd.nist.gov/vuln/detail/CVE-2026-22796</url>
    </references>
    <dates>
      <discovery>2026-01-27</discovery>
      <entry>2026-10-25</entry>
    </dates>
  </vuln>