CyberSecBulletin

Free of Memory not on the Heap

CWE-590

The product calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc().

We track 11 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.3.

How this weakness is prevented

  • Implementation: Only free pointers that you have called malloc on previously. This is the recommended solution. Keep track of which pointers point at the beginning of valid chunks and free them only once.
  • Implementation: Before freeing a pointer, the programmer should make sure that the pointer was previously allocated on the heap and that the memory belongs to the programmer. Freeing an unallocated pointer will cause undefined behavior in the program.
  • Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, glibc in Linux provides protection against free of invalid pointers.
  • Architecture and Design: Use a language that provides abstractions for memory allocation and deallocation.

Latest Free of Memory not on the Heap vulnerabilities

  • 9.8 Critical severity

    Cisco NX-OS Software: Free of Memory not on the Heap

    CVE-2026-76465Cisco

    A vulnerability in the MPLS Operation, Administration, and Maintenance (OAM) feature of Cisco NX-OS Software for Cisco Nexus 3000 Series Switches and Cisco Nexus 9000 Series Switches could allow an unauthenticated, remote attacker to execute arbitrary code wit

  • 7.5 High severity

    ImageMagick: Free of Memory not on the Heap

    CVE-2026-106578ImageMagick

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-31 and 6.9.13-56, a crafted image can cause an invalid memory free in the MVG decoder and crash the process. This issue is fixed in versions 7.1.2-31

  • 9.6 Critical severity

    Chrome: Free of Memory not on the Heap

    CVE-2026-95311Google

    Free of non-heap memory in Fonts in Google Chrome prior to 154.0.8037.57 allowed a remote attacker leveraging social engineering to potentially execute arbitrary code outside the sandbox via a crafted HTML page. (Chromium security severity: Medium)

  • 7.5 High severity

    SAP MDM Server: Free of Memory not on the Heap

    CVE-2025-42995SAP

    SAP MDM Server Read function allows an attacker to send specially crafted packets which could trigger a memory read access violation in the server process that would then fail and exit unexpectedly causing high impact on availability with no impact on confiden

  • 7.5 High severity

    SAP MDM Server: Free of Memory not on the Heap

    CVE-2025-42994SAP

    SAP MDM Server ReadString function allows an attacker to send specially crafted packets which could trigger a memory read access violation in the server process that would then fail and exit unexpectedly causing high impact on availability with no impact on co

  • 9.0 Critical severity

    Red Hat Enterprise Linux 7 Extended Lifecycle…: Free of Memory not on the Heap

    CVE-2025-32911Red Hat

    A use-after-free type vulnerability was found in libsoup, in the soup_message_headers_get_content_disposition() function. This flaw allows a malicious HTTP client to cause memory corruption in the libsoup server.

  • 7.5 High severity

    Fast-DDS: Double Free

    CVE-2023-42459eProsimaEPSS 1%

    Fast DDS is a C++ implementation of the DDS (Data Distribution Service) standard of the OMG (Object Management Group). In affected versions specific DATA submessages can be sent to a discovery locator which may trigger a free error. This can remotely crash any

  • 7.8 High severity

    Ichitaro: Free of Memory not on the Heap

    CVE-2023-22291Ichitaro

    An invalid free vulnerability exists in the Frame stream parser functionality of Ichitaro 2022 1.0.1.57600. A specially crafted document can lead to an attempt to free a stack pointer, which causes memory corruption. An attacker can provide a malicious file to

  • 7.5 High severity

    gss-ntlmssp: Release of Invalid Pointer or Reference

    CVE-2023-25565GssapiEPSS 1.1%

    GSS-NTLMSSP is a mechglue plugin for the GSSAPI library that implements NTLM authentication. Prior to version 1.2.0, an incorrect free when decoding target information can trigger a denial of service. The error condition incorrectly assumes the `cb` and `sh` b

  • 9.8 Critical severity

    PHP: Out-of-bounds Write

    CVE-2022-31627PHP GroupEPSS 2.14%

    In PHP versions 8.1.x below 8.1.8, when fileinfo functions, such as finfo_buffer, due to incorrect patch applied to the third party code from libmagic, incorrect function may be used to free allocated memory, which may lead to heap corruption.

  • 8.1 High severity

    PHP: Release of Invalid Pointer or Reference

    CVE-2022-31625PHP GroupEPSS 3.79%

    In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This c