Description
Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv.
asn_recv peeks the socket in a loop, doubling the buffer size on each pass until a tag and length can be decoded. An inverted boolean guard ($tb || rather than $tb &&) prevents the need-more-data exit from firing once a tag byte has been decoded. When asn_decode_length returns no value because the length is absent or incomplete, no exit fires for that case either. MSG_PEEK leaves socket data unconsumed, so each re-peek returns at once while the buffer size doubles.
A single truncated BER header sent to a process calling asn_recv doubles the peek buffer until memory is exhausted. Perl's realloc failure is fatal and not catchable with eval.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Convert-ASN1 | < 0.37 | 0.37 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libconvert-asn1-perl | 0.37-1 | — |
| Debian 13 | libconvert-asn1-perl | No fix yet | — |
| Debian 12 | libconvert-asn1-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libconvert-asn1-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libconvert-asn1-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libconvert-asn1-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libconvert-asn1-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libconvert-asn1-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libconvert-asn1-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libconvert-asn1-perl | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-Convert-ASN1 | 0.370.0-1.1 | openSUSE-SU-2026:12746-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.25 | perl-convert-asn1 | 0.37-r0 | — |
| Alpine v3.24 | perl-convert-asn1 | 0.37-r0 | — |
| Alpine v3.23 | perl-convert-asn1 | 0.37-r0 | — |
| Alpine v3.22 | perl-convert-asn1 | 0.37-r0 | — |
| Alpine v3.21 | perl-convert-asn1 | 0.37-r0 | — |
Advisories 1
- openSUSE-SU-2026:12746-1 perl-Convert-ASN1-0.370.0-1.1 on GA media SUSE / openSUSE Security Updates · Dec 2, 2026