Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 2 min read

A negative beforeCount in 389 Directory Server can exhaust memory through VLV

A negative beforeCount in 389 Directory Server can exhaust memory through VLV Directory servers are expected to answer many small, concurrent queries. CVE-2026-118469 shows how a malformed virtual list view request can

A negative beforeCount in 389 Directory Server can exhaust memory through VLV

Directory servers are expected to answer many small, concurrent queries. CVE-2026-118469 shows how a malformed virtual list view request can turn one query into an oversized memory allocation. The problem is an integer underflow in the VLV byIndex path.

The vulnerable component is 389-ds-base as shipped with Red Hat Directory Server 11 and related Red Hat Identity Management products. Affected platform versions should be checked in the Red Hat CVE page and the corresponding errata.

Mechanism

VLV lets a client request a window from a sorted result set. The byIndex option asks the server to select a position, and the request includes a beforeCount value that controls how many entries precede the target window. A negative value is not a valid count, but the vulnerable logic uses it in a size calculation. The arithmetic underflows, and the server attempts an allocation much larger than the requested result.

The attacker does not need an application exploit or a database write. The crafted LDAP request reaches the directory service and triggers the calculation. If the allocation fails or the server spends excessive time preparing it, other queries and authentication operations can be delayed or interrupted.

Exposure conditions

The request must reach the VLV path and be accepted by the directory service. Anonymous VLV access is not required for every deployment, but any client able to submit the relevant operation can attempt it. A directory exposed to an untrusted network or shared with many applications has a larger set of possible sources.

The impact is primarily availability. A failed allocation can produce a crash or an error, while repeated requests can create sustained pressure. The advisory does not establish data disclosure or modification. Availability loss in an identity service still affects authentication, authorization and administrative workflows across dependent applications.

Remediation and monitoring

Apply the Red Hat updates for 389-ds-base and the products that package it. Review anonymous and broad authenticated access to VLV operations and restrict them to the applications that require the feature. Add per-client connection and operation limits, and keep directory replicas on a management network.

Search LDAP logs for VLV requests with a negative beforeCount, byIndex operations from unexpected clients and bursts of allocation or connection errors. Correlate those events with authentication latency and replica health. A malformed query that returns an error is not proof of a successful denial of service, but a sudden sequence followed by memory failure is a useful investigative lead.

After patching, test the VLV features used by address books and identity clients. A broad block can break legitimate applications, so scope the restriction to operation and client identity rather than disabling directory search.

References

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.