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

 

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

Published: February 25, 2022


Vulnerability identifier: #VU60867
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-4091
CWE-ID: CWE-416
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to perform a denial of service (DoS) attack.

The vulnerability exists due to a use-after-free error when processing virtual attributes context in persistent searches. A remote user can send specially crafted search requests to the directory server, trigger a use-after-free error and crash the server.



Affected software

389-ds-base
Red Hat Directory Server
Amazon Linux AMI
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
Red Hat Enterprise Linux Workstation
Anolis OS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Scientific Computing
CentOS
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Server Applications
openSUSE Leap
389-ds-base (Red Hat package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
389-ds-base
389-ds-base-devel
389-ds-base-libs
389-ds-base-snmp
389-ds-base-tests
389-ds
389-ds-debuginfo
389-ds-debugsource
389-ds-devel
libsvrcore0
libsvrcore0-debuginfo
389-ds-snmp-debuginfo
lib389
389-ds-snmp
python3-lib389
389-ds-base-legacy-tools

How to mitigate CVE-2021-4091

Install updates from vendor's website.

389-ds-base (Red Hat package) - update to 1.3.10.2-15.el7_9
389-ds-base - addressed in versions 1.3.10.2-15, 1.4.3.23-14.0.1
389-ds-base-devel - addressed in versions 1.3.10.2-15, 1.4.3.23-14.0.1
389-ds-base-libs - addressed in versions 1.3.10.2-15, 1.4.3.23-14.0.1
389-ds-base-snmp - addressed in versions 1.3.10.2-15, 1.4.3.23-14.0.1
389-ds-base-tests - update to 1.3.10.2-15
389-ds-base - update to 1.3.10.2-16.69
389-ds - addressed in versions 1.4.0.31~git15.8b9843b0b-150000.4.27.1, 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.3.30~git2.ca761af4b-150200.3.29.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
389-ds-debuginfo - addressed in versions 1.4.0.31~git15.8b9843b0b-150000.4.27.1, 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.3.30~git2.ca761af4b-150200.3.29.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
389-ds-debugsource - addressed in versions 1.4.0.31~git15.8b9843b0b-150000.4.27.1, 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.3.30~git2.ca761af4b-150200.3.29.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
389-ds-devel - addressed in versions 1.4.0.31~git15.8b9843b0b-150000.4.27.1, 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.3.30~git2.ca761af4b-150200.3.29.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
libsvrcore0 - addressed in versions 1.4.0.31~git15.8b9843b0b-150000.4.27.1, 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.3.30~git2.ca761af4b-150200.3.29.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
libsvrcore0-debuginfo - addressed in versions 1.4.0.31~git15.8b9843b0b-150000.4.27.1, 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.3.30~git2.ca761af4b-150200.3.29.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
389-ds-snmp-debuginfo - addressed in versions 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
lib389 - addressed in versions 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.3.30~git2.ca761af4b-150200.3.29.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
389-ds-snmp - addressed in versions 1.4.2.16~git68.efa843752-150100.7.34.1, 1.4.4.19~git38.9951c1101-150300.3.17.1, 2.0.15~git26.1ea6a6803-150400.3.5.1
python3-lib389 - update to 1.4.3.23-14.0.1
389-ds-base-legacy-tools - update to 1.4.3.23-14.0.1

External References

Related Security Bulletins