Skip to content
OpenAdvisories

Weakness (CWE)

CWE-401: Missing Release of Memory after Effective Lifetime

Variant Draft

The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.

How to prevent it (3 mitigations)
  1. Implementation

    Choose a language or tool that provides automatic memory management, or makes manual memory management less error-prone.

    For example, glibc in Linux provides protection against free of invalid pointers.

    When using Xcode to target OS X or iOS, enable automatic reference counting (ARC) [REF-391].

    To help correctly and consistently manage memory when programming in C++, consider using a smart pointer class such as std::auto_ptr (defined by ISO/IEC ISO/IEC 14882:2003), std::shared_ptr and std::unique_ptr (specified by an upcoming revision of the C++ standard, informally referred to as C++ 1x), or equivalent solutions such as Boost.

  2. Architecture and Design

    Use an abstraction library to abstract away risky APIs. Not a complete solution.

  3. Architecture and Design, Build and Compilation

    Consider using the Boehm-Demers-Weiser garbage collector (bdwgc), which can help avoid leaks.

Source: MITRE CWE-401

84 results · Clear filters · Feed

  • Low 3.3

    wasm3 NewCodePage memory leak

    A vulnerability has been found in wasm3 up to 0.5.0. The affected element is the function NewCodePage. The manipulation leads to memory leak. The attack must be carried out locally. The exploit has been disclosed to the public and may be used. Unfortunately, …

  • Low 3.3

    iccDEV has a Memory Leak in its CIccProfileXml::ParseTag() Error Path

    iccDEV provides a set of libraries and tools for working with ICC color management profiles. Versions 2.3.1 and below contain a memory leak vulnerability in its XML MPE Parsing Path (iccFromXml). This issue is fixed in version 2.3.1.1.

  • Low 3.3

    radare2 v5.9.8 and before contains a memory leak in the function bochs_open.

  • Low 3.1

    Libssh: memory exhaustion via repeated key exchange in libssh

    A flaw was found in libssh's handling of key exchange (KEX) processes when a client repeatedly sends incorrect KEX guesses. The library fails to free memory during these rekey operations, which can gradually exhaust system memory. This issue can lead to crash…

  • Low 2.5

    LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak

    A flaw has been found in LibTIFF 4.7.0. This affects the function _TIFFmallocExt/_TIFFCheckRealloc/TIFFHashSetNew/InitCCITTFax3 of the file tools/tiffcmp.c of the component tiffcmp. Executing manipulation can lead to memory leak. The attack is restricted to l…

  • Low 3.3

    communication_dsoftbus has a missing release of memory vulnerability

    in OpenHarmony v5.0.3 and prior versions allow a local attacker case DOS through missing release of memory.

  • Low 3.3

    communication_dsoftbus has a missing release of memory vulnerability

    in OpenHarmony v5.0.3 and prior versions allow a local attacker case DOS through missing release of memory.

  • Low 3.3

    applications_settings has a missing release of memory vulnerability

    in OpenHarmony v5.0.3 and prior versions allow a local attacker case DOS through missing release of memory.

  • Low 3.3

    GNU Binutils DWARF Section dwarf.c process_debug_info memory leak

    A vulnerability was found in GNU Binutils 2.44 and classified as problematic. This issue affects the function process_debug_info of the file binutils/dwarf.c of the component DWARF Section Handler. The manipulation leads to memory leak. Attacking locally is a…

  • Low 3.5

    Redis through 8.0.3 allows memory consumption via a multi-bulk command composed of many bulks, sent by an authenticated…

  • Low 3.7

    ImageMagick has Memory Leak in magick stream

    ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0 and 6.9.13-26, in ImageMagick's `magick stream` command, specifying multiple consecutive `%d` format specifiers in a filename template …

  • Low 3.3

    HDF5 H5FL.c H5FL__malloc memory leak

    A vulnerability, which was classified as problematic, has been found in HDF5 1.14.6. This issue affects the function H5FL__malloc of the file src/H5FL.c. The manipulation leads to memory leak. Attacking locally is a requirement. The exploit has been disclosed…

  • Low 3.3

    HTACG tidy-html5 alloc.c defaultAlloc memory leak

    A vulnerability classified as problematic has been found in HTACG tidy-html5 5.8.0. Affected is the function defaultAlloc of the file src/alloc.c. The manipulation leads to memory leak. It is possible to launch the attack on the local host. The exploit has be…

  • Low 3.3

    TechPowerUp GPU-Z 0x8000645C IOCTL GPU-Z.sys sub_140001880 memory leak

    A vulnerability, which was classified as problematic, was found in TechPowerUp GPU-Z 2.23.0. Affected is the function sub_140001880 in the library GPU-Z.sys of the component 0x8000645C IOCTL Handler. The manipulation leads to memory leak. It is possible to la…

  • Low 3.7

    In Node.js, the `ReadFileUtf8` internal binding leaks memory due to a corrupted pointer in `uv_fs_s.file`: a UTF-16 pat…

  • Low 3.1

    undici Denial of Service attack via bad certificate data

    Undici is an HTTP/1.1 client for Node.js. Prior to versions 5.29.0, 6.21.2, and 7.5.0, applications that use undici to implement a webhook-like system are vulnerable. If the attacker set up a server with an invalid certificate, and they can force the applicat…

  • Low 3.3

    distributeddatamgr_udmf has a memory leak vulnerability

    in OpenHarmony v5.0.3 and prior versions allow a local attacker case DOS through missing release of memory.

  • Low 3.3

    can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path

    In the Linux kernel, the following vulnerability has been resolved: can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path In es58x_rx_err_msg(), if can->do_set_mode() fails, the function directly returns without calling netif_rx(skb). This means …

  • Low 3.3

    third_party_NuttX has a memory leak vulnerability

    in OpenHarmony v5.0.2 and prior versions allow a local attacker case DOS through missing release of memory.

  • Low 3.3

    GNU Binutils objdump bucomm.c display_info memory leak

    A vulnerability has been found in GNU Binutils 2.43/2.44 and classified as problematic. Affected by this vulnerability is the function display_info of the file binutils/bucomm.c of the component objdump. The manipulation leads to memory leak. An attack has to…

  • Low 3.3

    Communication Dsoftbus has a memory leak vulnerability

    in OpenHarmony v5.0.2 and prior versions allow a local attacker case DOS through missing release of memory.

  • Low 3.1

    GNU Binutils ld xstrdup.c xstrdup memory leak

    A vulnerability classified as problematic has been found in GNU Binutils 2.43. Affected is the function xstrdup of the file xstrdup.c of the component ld. The manipulation leads to memory leak. It is possible to launch the attack remotely. The complexity of a…

  • Low 3.1

    GNU Binutils ld xmemdup.c xmemdup memory leak

    A vulnerability was found in GNU Binutils 2.43. It has been rated as problematic. This issue affects the function xmemdup of the file xmemdup.c of the component ld. The manipulation leads to memory leak. The attack may be initiated remotely. The complexity of…

  • Low 3.1

    GNU Binutils ld libbfd.c bfd_malloc memory leak

    A vulnerability was found in GNU Binutils 2.43. It has been declared as problematic. This vulnerability affects the function bfd_malloc of the file libbfd.c of the component ld. The manipulation leads to memory leak. The attack can be initiated remotely. The …

  • Low 3.1

    GNU Binutils ld xmalloc.c xstrdup memory leak

    A vulnerability was found in GNU Binutils 2.43. It has been classified as problematic. This affects the function xstrdup of the file libiberty/xmalloc.c of the component ld. The manipulation leads to memory leak. It is possible to initiate the attack remotely…

  • Low 3.1

    GNU Binutils ld ldelfgen.c link_order_scan memory leak

    A vulnerability was found in GNU Binutils 2.43 and classified as problematic. Affected by this issue is the function link_order_scan of the file ld/ldelfgen.c of the component ld. The manipulation leads to memory leak. The attack may be launched remotely. The…

  • Low 3.3

    scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()

    In the Linux kernel, the following vulnerability has been resolved: scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb() Hook "qed_ops->common->sb_init = qed_sb_init" does not release the DMA memory sb_virt when it fails. Add dma_free_coherent()…

  • Low 3.3

    scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()

    In the Linux kernel, the following vulnerability has been resolved: scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() Hook "qedi_ops->common->sb_init = qed_sb_init" does not release the DMA memory sb_virt when it fails. Add dma_free_coherent(…

  • Low 3.3

    fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()

    In the Linux kernel, the following vulnerability has been resolved: fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem() When information such as info->screen_base is not ready, calling sh7760fb_free_mem() does not release memory correctly. Cal…

  • Low 3.3

    PCI: Fix reset_method_store() memory leak

    In the Linux kernel, the following vulnerability has been resolved: PCI: Fix reset_method_store() memory leak In reset_method_store(), a string is allocated via kstrndup() and assigned to the local "options". options is then used in with strsep() to find spac…

  • Low 3.3

    vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()

    In the Linux kernel, the following vulnerability has been resolved: vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages() Fix an unwind issue in mlx5vf_add_migration_pages(). If a set of pages is allocated but fails to be added to the SG table, they …

  • Low 3.3

    udmabuf: fix memory leak on last export_udmabuf() error path

    In the Linux kernel, the following vulnerability has been resolved: udmabuf: fix memory leak on last export_udmabuf() error path In export_udmabuf(), if dma_buf_fd() fails because the FD table is full, a dma_buf owning the udmabuf has already been created; bu…

  • Low 3.3

    ceph: fix memory leak in ceph_direct_read_write()

    In the Linux kernel, the following vulnerability has been resolved: ceph: fix memory leak in ceph_direct_read_write() The bvecs array which is allocated in iter_get_bvecs_alloc() is leaked and pages remain pinned if ceph_alloc_sparse_ext_map() fails. There is…

  • Low 3.3

    dccp: Fix memory leak in dccp_feat_change_recv

    In the Linux kernel, the following vulnerability has been resolved: dccp: Fix memory leak in dccp_feat_change_recv If dccp_feat_push_confirm() fails after new value for SP feature was accepted without reconciliation ('entry == NULL' branch), memory allocated …

  • Low 3.3

    media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal()

    In the Linux kernel, the following vulnerability has been resolved: media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal() The buffer in the loop should be released under the exception path, otherwise there may be a memory leak …

  • Low 3.3

    binder: fix memleak of proc->delivered_freeze

    In the Linux kernel, the following vulnerability has been resolved: binder: fix memleak of proc->delivered_freeze If a freeze notification is cleared with BC_CLEAR_FREEZE_NOTIFICATION before calling binder_freeze_notification_done(), then it is detached from …

  • Low 3.3

    Liteos_a has an Memory Leak vulnerability

    in OpenHarmony v4.1.0 and prior versions allow a local attacker cause DOS by memory leak.

  • Low 3.7

    CometBFT PeerState JSON serialization deadlock

    CometBFT is a Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine and replicates it on many machines. An internal modification made in versions 0.34.28 and 0.37.1 to the way struct `PeerState` is serialized to JSON introduced a dea…

  • Low 3.3

    yasm v1.3.0 was discovered to contain a memory leak via the function yasm_intnum_copy at /libyasm/intnum.c. Note: Multi…

  • Low 3.3
    CVE-2023-26083 Exploited Public exploit

    Memory leak vulnerability in Mali GPU Kernel Driver in Midgard GPU Kernel Driver all versions from r6p0 - r32p0, Bifros…

    KEV Apr 7, 2023