CVE-2026-18355: Integer Underflow (Wrap or Wraparound) in Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support
A heap buffer overflow flaw was found in the SASL I/O layer of 389 Directory Server (389-ds-base). In sasl_io_start_packet(), the wrapped-record length read from the wire is validated only against an upper bound. A small wire length (0, 1, or 2) produces an encrypted_buffer_count below the already-consumed encrypted_buffer_offset, causing an unsigned subtraction underflow in sasl_io_read_packet(). PR_Recv is then requested to read approximately 4 GiB into a 1024-byte heap buffer, resulting in a heap buffer overflow with attacker-controlled content. After a successful SASL bind with integrity protection (SSF > 0), a remote authenticated attacker can cause a denial of service or potentially achieve remote code execution. This flaw is distinct from CVE-2026-11774, whose fix only guards against upper-bound overflow.
AI Analysis
Technical Summary
The vulnerability in Red Hat Directory Server 11 involves an integer underflow in the SASL I/O layer's sasl_io_read_packet() function. When the wrapped-record length read from the wire is very small (0, 1, or 2), the calculation of encrypted_buffer_count underflows below the encrypted_buffer_offset, causing PR_Recv to attempt reading approximately 4 GiB into a 1024-byte heap buffer. This heap buffer overflow allows an attacker who has successfully completed a SASL bind with integrity protection (SSF > 0) to cause denial of service or potentially execute arbitrary code remotely. The flaw is independent of CVE-2026-11774, which only addressed upper-bound overflow checks. Red Hat rates this issue as Important and has not identified a practical mitigation other than updating the affected package. Deployments not using SASL security layers after bind are not vulnerable on this path.
Potential Impact
A remote authenticated attacker who has completed a SASL bind with integrity protection can exploit this vulnerability to cause a denial of service or potentially achieve remote code execution on the affected server. The flaw leads to heap buffer overflow with attacker-controlled content, impacting confidentiality, integrity, and availability. Systems not negotiating SASL security layers after bind are not affected by this vulnerability.
Mitigation Recommendations
Red Hat has not identified any practical mitigation for this issue beyond applying the official fix. Users are strongly advised to update the affected package as soon as a fix is released. Deployments that do not negotiate a SASL security layer after bind are not exposed to this vulnerability. Monitor Red Hat's advisory page for patch availability and apply updates promptly once released.
CVE-2026-18355: Integer Underflow (Wrap or Wraparound) in Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support
Description
A heap buffer overflow flaw was found in the SASL I/O layer of 389 Directory Server (389-ds-base). In sasl_io_start_packet(), the wrapped-record length read from the wire is validated only against an upper bound. A small wire length (0, 1, or 2) produces an encrypted_buffer_count below the already-consumed encrypted_buffer_offset, causing an unsigned subtraction underflow in sasl_io_read_packet(). PR_Recv is then requested to read approximately 4 GiB into a 1024-byte heap buffer, resulting in a heap buffer overflow with attacker-controlled content. After a successful SASL bind with integrity protection (SSF > 0), a remote authenticated attacker can cause a denial of service or potentially achieve remote code execution. This flaw is distinct from CVE-2026-11774, whose fix only guards against upper-bound overflow.
CVSS v3.1
Score 7.5high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Red Hat Directory Server 11 involves an integer underflow in the SASL I/O layer's sasl_io_read_packet() function. When the wrapped-record length read from the wire is very small (0, 1, or 2), the calculation of encrypted_buffer_count underflows below the encrypted_buffer_offset, causing PR_Recv to attempt reading approximately 4 GiB into a 1024-byte heap buffer. This heap buffer overflow allows an attacker who has successfully completed a SASL bind with integrity protection (SSF > 0) to cause denial of service or potentially execute arbitrary code remotely. The flaw is independent of CVE-2026-11774, which only addressed upper-bound overflow checks. Red Hat rates this issue as Important and has not identified a practical mitigation other than updating the affected package. Deployments not using SASL security layers after bind are not vulnerable on this path.
Potential Impact
A remote authenticated attacker who has completed a SASL bind with integrity protection can exploit this vulnerability to cause a denial of service or potentially achieve remote code execution on the affected server. The flaw leads to heap buffer overflow with attacker-controlled content, impacting confidentiality, integrity, and availability. Systems not negotiating SASL security layers after bind are not affected by this vulnerability.
Mitigation Recommendations
Red Hat has not identified any practical mitigation for this issue beyond applying the official fix. Users are strongly advised to update the affected package as soon as a fix is released. Deployments that do not negotiate a SASL security layer after bind are not exposed to this vulnerability. Monitor Red Hat's advisory page for patch availability and apply updates promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-07-30T07:37:32.170Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-18355","vendor":"Red Hat"}]
Threat ID: 6a9ec8b6acd9273b49c4cf8a
Added to database: 09/07/2026, 14:22:46 UTC
Last enriched: 09/07/2026, 14:37:54 UTC
Last updated: 09/08/2026, 02:37:42 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.