The issue is twofold: decoding a DER input with sequences and locating a specific element in a sequence. Even though a DER sequence is conceptually an array, in libtasn1 it is represented as a linked list, whose elements are assigned a string name, such as "?1". Therefore a simple lookup of an element at a given position is linear O(N) time complexity. When decoding a DER sequence, in each step libtasn1 looks up the parent node, recorded on the first element, which requires a backward linear search, resulting in O(N^2) time complexity.
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2025:4051 https://access.redhat.com/errata/RHSA-2025:4051
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2025:7076 https://access.redhat.com/errata/RHSA-2025:7076
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.4 Extended Update Support Via RHSA-2025:8020 https://access.redhat.com/errata/RHSA-2025:8020