CWE-395Base

Use of NullPointerException Catch to Detect NULL Pointer Dereference

Draft in the CWE catalog · 11 CVEs mapped

11
CVEs mapped
5.7
Median CVSS
What it is

Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.

Recent examples
7.5cvss
CVE-2025-15514

CVE-2025-15514 - HIGH Severity Vulnerability

⚡ A null pointer dereference is lurking in Ollama's image processing! When it tries to handle invalid image data, it can crash spectacularly — think of it as an overzealous chef tossing out a dish without checking if the ingredients were even good! 🍽️ Imagine a restaurant where the chef skips the quality check on ingredients. If a customer orders a dish with spoiled produce, the whole kitchen might crash with chaos! That's what happens here when Ollama processes a malformed image; it leads to a denial of service, making the whole service unavailable until it's rebooted. An attacker can exploit this by sending corrupt base64 image data to the /api/chat endpoint. This will lead to a segmentation fault, crashing the application and rendering it unavailable for all users. The downtime could severely impact service availability, causing frustration and potential loss of users.

HIGH
1%
epss
5.8cvss
CVE-2024-36275

NULL pointer dereference in some Intel(R) Optane(TM) PMem Management software versions before CR_MGMT_02.00.00.4040, CR_MGMT_03.00.00.0499 may allow a…

NULL pointer dereference in some Intel(R) Optane(TM) PMem Management software versions before CR_MGMT_02.00.00.4040, CR_MGMT_03.00.00.0499 may allow a authenticated user to potentially enable denial of service via local access.

MEDIUMno explanation yet
0%
epss
1.0cvss
CVE-2024-28030

NULL pointer dereference in some Intel(R) VPL software before version 24.1.4 may allow an authenticated user to potentially enable denial of service via local…

NULL pointer dereference in some Intel(R) VPL software before version 24.1.4 may allow an authenticated user to potentially enable denial of service via local access.

LOWno explanation yet
0%
epss
The record
Technical detail
CWE ID
CWE-395
Abstraction
Base
Structure
Simple
Status
Draft
References (2)