CVE-2021-46848 Integer overflow in n/a

Critical 9.1 Published Updated

An off-by-one error in GNU Libtasn1 allows attackers to cause denial of service or potentially execute code via crafted ASN.1 data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-46848?

CVE-2021-46848 is a critical vulnerability in Debian Debian Linux, published on 24 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

GNU Libtasn1 before 4.19.0 has an ETYPE_OK off-by-one array size check that affects asn1_encode_simple_der.

Weakness: CWE-193

Which versions are affected by CVE-2021-46848?

It affects 3 products.

Linux distribution packages (40)
libtasn1 AlmaLinux:8All versions4.13-4.el8_7
libtasn1-devel AlmaLinux:8All versions4.13-4.el8_7
libtasn1-tools AlmaLinux:8All versions4.13-4.el8_7
libtasn1 AlmaLinux:9All versions4.16.0-8.el9_1
libtasn1-devel AlmaLinux:9All versions4.16.0-8.el9_1
libtasn1-tools AlmaLinux:9All versions4.16.0-8.el9_1
libtasn1-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-4.el8_7
libtasn1-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-4.el8_7
libtasn1-devel Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-4.el8_7
libtasn1-tools Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-4.el8_7
libtasn1-tools-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-4.el8_7
libtasn1 Red Hat:enterprise_linux:8::baseosAll versions0:4.13-4.el8_7
libtasn1-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.13-4.el8_7
libtasn1-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:4.13-4.el8_7
libtasn1-tools-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.13-4.el8_7
libtasn1-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-8.el9_1
libtasn1-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-8.el9_1
libtasn1-devel Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-8.el9_1
libtasn1-tools Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-8.el9_1
libtasn1-tools-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-8.el9_1
libtasn1 Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-8.el9_1
libtasn1-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-8.el9_1
libtasn1-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-8.el9_1
libtasn1-tools-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-8.el9_1
libtasn1-debuginfo Red Hat:rhel_eus:8.6::appstreamAll versions0:4.13-3.el8_6.1
libtasn1-debugsource Red Hat:rhel_eus:8.6::appstreamAll versions0:4.13-3.el8_6.1
libtasn1-devel Red Hat:rhel_eus:8.6::appstreamAll versions0:4.13-3.el8_6.1
libtasn1-tools Red Hat:rhel_eus:8.6::appstreamAll versions0:4.13-3.el8_6.1
libtasn1-tools-debuginfo Red Hat:rhel_eus:8.6::appstreamAll versions0:4.13-3.el8_6.1
libtasn1 Red Hat:rhel_eus:8.6::baseosAll versions0:4.13-3.el8_6.1
libtasn1-debuginfo Red Hat:rhel_eus:8.6::baseosAll versions0:4.13-3.el8_6.1
libtasn1-debugsource Red Hat:rhel_eus:8.6::baseosAll versions0:4.13-3.el8_6.1
libtasn1-tools-debuginfo Red Hat:rhel_eus:8.6::baseosAll versions0:4.13-3.el8_6.1
libtasn1 Rocky Linux:8All versions0:4.13-4.el8_7
libtasn1 Rocky Linux:9All versions0:4.16.0-8.el9_1
libtasn1 SUSE:Enterprise Storage 6All versions4.13-150000.4.8.1
libtasn1 SUSE:Enterprise Storage 7All versions4.13-150000.4.8.1
libtasn1 SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions4.13-150000.4.8.1
libtasn1 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions4.13-150000.4.8.1
libtasn1 SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions4.13-150000.4.8.1

Products include Debian Debian Linux, Fedoraproject Fedora, Gnu Libtasn1.

How do I fix CVE-2021-46848?

Upgrade to a fixed version.

Is CVE-2021-46848 being exploited?

There is no known exploitation of CVE-2021-46848 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2021-46848, ALSA-2023:0116, ALSA-2023:0343, AZL-11318, CLSA-2023-1695406987, CLSA-2025-1746653404 and 20 more.

Is CVE-2021-46848 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free