Bug 2140058 (CVE-2021-46848) - CVE-2021-46848 libtasn1: Out-of-bound access in ETYPE_OK
Summary: CVE-2021-46848 libtasn1: Out-of-bound access in ETYPE_OK
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-46848
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2140066 2140067 2140069 2140070 2140600 2140601 2140602 2140603 2140604
Blocks: 2137397 2169449
TreeView+ depends on / blocked
 
Reported: 2022-11-04 10:17 UTC by Sandipan Roy
Modified: 2024-01-24 16:49 UTC (History)
16 users (show)

Fixed In Version: libtasn1 4.19.0
Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds read flaw was found in Libtasn1 due to an ETYPE_OK off-by-one error in the asn1_encode_simple_der() function. This flaw allows a remote attacker to pass specially crafted data or invalid values to the application, triggering an off-by-one error, corrupting the memory, and possibly performing a denial of service (DoS) attack.
Clone Of:
Environment:
Last Closed: 2023-01-25 14:52:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:0116 0 None None None 2023-01-12 09:24:17 UTC
Red Hat Product Errata RHSA-2023:0343 0 None None None 2023-01-23 15:22:40 UTC
Red Hat Product Errata RHSA-2024:0427 0 None None None 2024-01-24 16:49:01 UTC

Description Sandipan Roy 2022-11-04 10:17:55 UTC
GNU Libtasn1 before 4.19.0 has an ETYPE_OK off-by-one array size check that affects asn1_encode_simple_der.

https://gitlab.com/gnutls/libtasn1/-/issues/32
https://bugs.gentoo.org/866237
https://gitlab.com/gnutls/libtasn1/-/commit/44a700d2051a666235748970c2df047ff207aeb5

Comment 1 Sandipan Roy 2022-11-04 10:26:41 UTC
Created libtasn1 tracking bugs for this issue:

Affects: fedora-35 [bug 2140066]
Affects: fedora-36 [bug 2140069]


Created mingw-libtasn1 tracking bugs for this issue:

Affects: fedora-35 [bug 2140067]
Affects: fedora-36 [bug 2140070]

Comment 4 errata-xmlrpc 2023-01-12 09:24:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:0116 https://access.redhat.com/errata/RHSA-2023:0116

Comment 5 errata-xmlrpc 2023-01-23 15:22:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:0343 https://access.redhat.com/errata/RHSA-2023:0343

Comment 6 Product Security DevOps Team 2023-01-25 14:52:12 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-46848

Comment 8 errata-xmlrpc 2024-01-24 16:48:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0427 https://access.redhat.com/errata/RHSA-2024:0427


Note You need to log in before you can comment on or make changes to this bug.