CVE-2026-22693

Null Pointer Dereference in SubtableUnicodesCache::create leading to DoS

Published Jan 10, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
HarfBuzz is a text shaping engine. Prior to version 12.3.0, a null pointer dereference vulnerability exists in the SubtableUnicodesCache::create function located in src/hb-ot-cmap-table.hh. The function fails to check if hb_malloc returns NULL before using placement new to construct an object at the returned pointer address. When hb_malloc fails to allocate memory (which can occur in low-memory conditions or when using custom allocators that simulate allocation failures), it returns NULL. The code then attempts to call the constructor on this null pointer using placement new syntax, resulting in undefined behavior and a Segmentation Fault. This issue has been patched in version 12.3.0.

Analysis

AI-generated

Technical impact

The vulnerability is a null‑pointer dereference in the SubtableUnicodesCache::create function of HarfBuzz, which can lead to a segmentation fault when memory allocation fails. This results in a denial of service for applications that depend on the library, as the crash halts execution. The weakness is a classic example of improper null dereference handling, identified by CWE‑476.

Affected Systems

The HarfBuzz text shaping engine from the HarfBuzz project is affected when using any version earlier than 12.3.0. Users of the C/C++ library should review installed versions and upgrade accordingly.

Risk and Exploitability

With a CVSS score of 5.3 the vulnerability is considered moderate, and the EPSS score of less than 1% indicates a very low likelihood of exploitation. HarfBuzz is not listed in the CISA KEV catalog. The required condition is a failure of hb_malloc, which can be triggered by low‑memory environments or custom allocators designed to simulate allocation failures. The attack does not require remote code execution; it is limited to causing application crashes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to HarfBuzz 12.3.0 or later to receive the patch that adds a null check before placement new.
  • Ensure that the application environment provides sufficient memory and avoids custom allocators that simulate allocation failures so that hb_malloc does not return NULL.
  • If an immediate upgrade is not possible, isolate HarfBuzz usage in a separate sandboxed process to prevent a crash from bringing down the entire application.

Generated by OpenCVE AI on April 18, 2026 at 07:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:harfbuzz_project:harfbuzz:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Harfbuzz Project
Harfbuzz Project harfbuzz
Vendors & Products Harfbuzz Project
Harfbuzz Project harfbuzz
Type Values Removed Values Added
Description HarfBuzz is a text shaping engine. Prior to version 12.3.0, a null pointer dereference vulnerability exists in the SubtableUnicodesCache::create function located in src/hb-ot-cmap-table.hh. The function fails to check if hb_malloc returns NULL before using placement new to construct an object at the returned pointer address. When hb_malloc fails to allocate memory (which can occur in low-memory conditions or when using custom allocators that simulate allocation failures), it returns NULL. The code then attempts to call the constructor on this null pointer using placement new syntax, resulting in undefined behavior and a Segmentation Fault. This issue has been patched in version 12.3.0.
Title Null Pointer Dereference in SubtableUnicodesCache::create leading to DoS
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 12, 2026, 4:47 PM
Reserved
Jan 8, 2026, 7:23 PM
Status
Analyzed
Published
Jan 10, 2026, 6:15 AM
Modified
Jun 17, 2026, 10:20 AM
Severity
Moderate
Public date
Jan 10, 2026, 5:53 AM