CVE-2021-4091 Use after free in 389-ds-base

High 7.5 Published Updated

An attacker can crash the 389-ds-base LDAP server by sending specific search requests that trigger a double-free error in virtual attribute handling.

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-4091?

CVE-2021-4091 is a high-severity use after free vulnerability in Redhat Enterprise Linux Desktop, published on 18 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A double-free was found in the way 389-ds-base handles virtual attributes context in persistent searches. An attacker could send a series of search requests, forcing the server to behave unexpectedly, and crash.

Weakness: CWE-415

Which versions are affected by CVE-2021-4091?

It affects 8 products.

Linux distribution packages (40)
389-ds-base AlmaLinux:8All versions1.4.3.23-14.module_el8.5.0+2628+c731dc97
389-ds-base-devel AlmaLinux:8All versions1.4.3.23-14.module_el8.5.0+2628+c731dc97
389-ds-base-legacy-tools AlmaLinux:8All versions1.4.3.23-14.module_el8.5.0+2628+c731dc97
389-ds-base-libs AlmaLinux:8All versions1.4.3.23-14.module_el8.5.0+2628+c731dc97
389-ds-base-snmp AlmaLinux:8All versions1.4.3.23-14.module_el8.5.0+2628+c731dc97
python3-lib389 AlmaLinux:8All versions1.4.3.23-14.module_el8.5.0+2628+c731dc97
389-ds-base Red Hat:enterprise_linux:7::clientAll versions0:1.3.10.2-15.el7_9
389-ds-base-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:1.3.10.2-15.el7_9
389-ds-base-devel Red Hat:enterprise_linux:7::clientAll versions0:1.3.10.2-15.el7_9
389-ds-base-libs Red Hat:enterprise_linux:7::clientAll versions0:1.3.10.2-15.el7_9
389-ds-base-snmp Red Hat:enterprise_linux:7::clientAll versions0:1.3.10.2-15.el7_9
389-ds-base Red Hat:enterprise_linux:7::computenodeAll versions0:1.3.10.2-15.el7_9
389-ds-base-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:1.3.10.2-15.el7_9
389-ds-base-devel Red Hat:enterprise_linux:7::computenodeAll versions0:1.3.10.2-15.el7_9
389-ds-base-libs Red Hat:enterprise_linux:7::computenodeAll versions0:1.3.10.2-15.el7_9
389-ds-base-snmp Red Hat:enterprise_linux:7::computenodeAll versions0:1.3.10.2-15.el7_9
389-ds-base Red Hat:enterprise_linux:7::serverAll versions0:1.3.10.2-15.el7_9
389-ds-base-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1.3.10.2-15.el7_9
389-ds-base-devel Red Hat:enterprise_linux:7::serverAll versions0:1.3.10.2-15.el7_9
389-ds-base-libs Red Hat:enterprise_linux:7::serverAll versions0:1.3.10.2-15.el7_9
389-ds-base-snmp Red Hat:enterprise_linux:7::serverAll versions0:1.3.10.2-15.el7_9
389-ds-base Red Hat:enterprise_linux:7::workstationAll versions0:1.3.10.2-15.el7_9
389-ds-base-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:1.3.10.2-15.el7_9
389-ds-base-devel Red Hat:enterprise_linux:7::workstationAll versions0:1.3.10.2-15.el7_9
389-ds-base-libs Red Hat:enterprise_linux:7::workstationAll versions0:1.3.10.2-15.el7_9
389-ds-base-snmp Red Hat:enterprise_linux:7::workstationAll versions0:1.3.10.2-15.el7_9
389-ds-base Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-devel Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-legacy-tools Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-legacy-tools-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-libs Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-libs-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-snmp Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base-snmp-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
python3-lib389 Red Hat:enterprise_linux:8::appstreamAll versions0:1.4.3.23-14.module+el8.5.0+14377+c731dc97
389-ds-base Red Hat:rhel_eus:8.4::appstreamAll versions0:1.4.3.16-20.module+el8.4.0+14552+b182c759
389-ds-base-debuginfo Red Hat:rhel_eus:8.4::appstreamAll versions0:1.4.3.16-20.module+el8.4.0+14552+b182c759
389-ds-base-debugsource Red Hat:rhel_eus:8.4::appstreamAll versions0:1.4.3.16-20.module+el8.4.0+14552+b182c759

Products include Port389 389-Ds-Base, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux for Ibm Z Systems, Redhat Enterprise Linux for Power Big Endian, Redhat Enterprise Linux for Power Little Endian, Redhat Enterprise Linux for Scientific Computing and 2 more.

How do I fix CVE-2021-4091?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-4091 being exploited?

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

All Redhat Enterprise Linux Desktop vulnerabilities

Sources

Also known as ALSA-2022:0889, DEBIAN-CVE-2021-4091, GHSA-qwhp-2gp7-qhfq, MGASA-2022-0106, RHSA-2022:0628, RHSA-2022:0889 and 3 more.

Is CVE-2021-4091 in your software?

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

Check your SBOMs for free