CWE-131: Incorrect Calculation of Buffer Size

The product does not correctly calculate the size to be used when allocating a buffer.

201 published CVE records name this weakness. Abstraction: Base. Status: Draft. CWE-131 at MITRE

CVETitleCVSSEPSSPublished
CVE-2026-42170 Gimp: gimp dds plug-in heap-based buffer overflow via bpp mismatch in load_layer() (ddsread.c) 7.8 high 0.16% 8 Aug 2026
CVE-2026-42169 Gimp: gimp apng loader heap-buffer-overflow when fctl width exceeds ihdr width (file-png.c) 7.3 high 0.16% 4 Aug 2026
CVE-2026-45812 Apache NimBLE: OOB Read via sizeof(pointer) in Legacy Advertising Report Handler 6.5 medium 0.42% 24 Jul 2026
CVE-2026-65706 FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing 8.5 high 0.12% 23 Jul 2026
CVE-2026-65705 FFmpeg 3.4 - 8.1.2 vf_floodfill Out-of-Bounds Write via filter_frame() 7.3 high 0.12% 23 Jul 2026
CVE-2026-45784 rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers 5.1 medium 0.13% 17 Jul 2026
CVE-2026-53366 ipv4: account for fraggap on the paged allocation path 7.8 high 0.17% 16 Jul 2026
CVE-2026-55827 FreeRDP: Heap out-of-bounds write in RemoteFX (RFX) Cache Bitmap V3 decode 7.5 high 0.34% 10 Jul 2026
CVE-2026-0280 PAN-OS: IPv6 Firewall Policy Bypass 1.7 low 0.20% 9 Jul 2026
CVE-2026-54696 Ruby JSON: JSON generator heap buffer overflow when streaming to an IO 3.7 low 0.41% 30 Jun 2026
CVE-2026-53143 drm/amdkfd: Fix buffer overflow in SDMA queue checkpoint/restore on GFX11 7.0 high 0.15% 25 Jun 2026
CVE-2026-2050 GIMP HDR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability 7.8 high 0.61% 24 Jun 2026
CVE-2026-53091 net: pull headers in qdisc_pkt_len_segs_init() 8.4 high 0.14% 24 Jun 2026
CVE-2026-52955 libceph: Fix potential out-of-bounds access in crush_decode() 9.8 critical 0.38% 24 Jun 2026
CVE-2026-42055 NGINX ngx_http_proxy_v2_module and ngx_http_grpc_module vulnerability 9.2 critical 5.45% 17 Jun 2026
CVE-2026-8357 Heap buffer overflow in Calc formula compilation 5.4 medium 0.22% 15 Jun 2026
CVE-2026-46521 ImageMagick: Heap Buffer Over-Write in MIFF encoder when using LZMA compression 5.5 medium 0.12% 10 Jun 2026
CVE-2026-2049 GIMP HDR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability 7.8 high 0.61% 10 Jun 2026
CVE-2026-11604 OpenVPN ovpn-dco-win: Incorrect Calculation of Buffer Size 5.6 medium 0.34% 10 Jun 2026
CVE-2026-42915 Microsoft Windows VMSwitch Denial of Service Vulnerability 5.5 medium 0.45% 9 Jun 2026
CVE-2026-49841 FreeSWITCH: Pre-authentication heap buffer overflow in `mod_verto` HTTP POST body read 9.8 critical 0.39% 9 Jun 2026
CVE-2026-10701 Incorrect boundary conditions in the Graphics: Text component 7.5 high 0.30% 2 Jun 2026
CVE-2026-44420 FreeRDP cliprdr server heap-buffer-overflow via undersized capabilitySetLength in CB_CLIP_CAPS 8.8 high 5.12% 29 May 2026
CVE-2026-43501 ipv6: rpl: reserve mac_len headroom when recompressed SRH grows 9.8 critical 0.83% 21 May 2026
CVE-2026-42944 Heap overflow with multiple NSID, COOKIE, PADDING EDNS options 8.7 high 0.84% 20 May 2026
CVE-2026-42945 NGINX ngx_http_rewrite_module vulnerability 9.2 critical 69.3% 13 May 2026
CVE-2026-40618 BIG-IP SSL/TLS vulnerability 8.7 high 0.32% 13 May 2026
CVE-2026-44223 vLLM: extract_hidden_states speculative decoding crashes server on any request with penalty parameters 6.5 medium 0.37% 12 May 2026
CVE-2025-71286 ASoC: SOF: ipc4-topology: Correct the allocation size for bytes controls 7.8 high 0.14% 6 May 2026
CVE-2026-29004 BusyBox DHCPv6 Client Heap Buffer Overflow via DNS_SERVERS 7.2 high 0.40% 4 May 2026
CVE-2026-41676 rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1 7.2 high 0.30% 24 Apr 2026
CVE-2026-1949 Incorrect calculation of buffer size on the stack in AS320T 9.8 critical 0.63% 24 Apr 2026
CVE-2026-41197 Brillig: Heap corruption in foreign call results with nested tuple arrays 9.3 critical 0.41% 23 Apr 2026
CVE-2026-31478 ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len() 9.8 critical 0.52% 22 Apr 2026
CVE-2026-6752 Incorrect boundary conditions in the WebRTC component 7.3 high 0.32% 21 Apr 2026
CVE-2026-29645 NEMU (OpenXiangShan/NEMU) before v2025.12.r2 contains an improper instruction-validation flaw in its RISC-V Vector (RVV) decoder 7.5 high 0.56% 20 Apr 2026
CVE-2026-27820 zlib: Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption 1.7 low 0.58% 16 Apr 2026
CVE-2026-40918 Gimp: gimp: denial of service via crafted pvr image file 5.5 medium 0.26% 15 Apr 2026
CVE-2026-4152 GIMP JP2 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability 7.8 high 0.52% 11 Apr 2026
CVE-2026-39892 cryptography has a buffer overflow if non-contiguous buffers were passed to APIs 6.9 medium 0.69% 8 Apr 2026
CVE-2026-20911 LibRaw: Incorrect Calculation of Buffer Size 9.8 critical 0.59% 7 Apr 2026
CVE-2026-34986 Go JOSE affect by a panic in JWE decryption 7.5 high 0.70% 6 Apr 2026
CVE-2026-33987 FreeRDP: Persistent Cache bmpSize Desync - Heap OOB Write 7.1 high 0.12% 30 Mar 2026
CVE-2026-33986 FreeRDP: H.264 YUV Buffer Dimension Desync - Heap OOB Write 7.5 high 0.31% 30 Mar 2026
CVE-2026-33985 FreeRDP: ClearCodec Glyph Cache Count Desync - Heap OOB Read 5.9 medium 0.25% 30 Mar 2026
CVE-2026-33984 FreeRDP: ClearCodec resize_vbar_entry() Heap OOB Write 7.5 high 0.47% 30 Mar 2026
CVE-2025-33216 NVIDIA SNAP-4 Container: Incorrect Calculation of Buffer Size 6.8 medium 0.27% 24 Mar 2026
CVE-2026-4695 Incorrect boundary conditions in the Audio/Video: Web Codecs component 7.5 high 0.78% 24 Mar 2026
CVE-2019-25555 TwistedBrush Pro Studio 24.06 Script Recorder Denial of Service 6.9 medium 0.56% 21 Mar 2026
CVE-2026-31970 HTSlib BGZF index file reader has a heap buffer overflow 7.1 high 0.52% 18 Mar 2026