CWE-395: Use of NullPointerException Catch to Detect NULL Pointer Dereference

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

17 published CVE records name this weakness. Abstraction: Variant. Status: Draft. CWE-395 at MITRE

CVETitleCVSSEPSSPublished
CVE-2025-15514 Ollama Multi-Modal Model Image Processing NULL Pointer Dereference 8.7 high 1.10% 12 Jan 2026
CVE-2025-58142 Mutiple vulnerabilities in the Viridian interface 9.8 critical 0.90% 11 Sep 2025
CVE-2025-27466 Mutiple vulnerabilities in the Viridian interface 9.8 critical 0.90% 11 Sep 2025
CVE-2024-36275 n/a Intel(R) Optane(TM) PMem Management software versions: Use of NullPointerException Catch to Detect NULL Pointer Dereference 5.8 medium 0.26% 13 Nov 2024
CVE-2024-28030 n/a Intel(R) VPL software: Use of NullPointerException Catch to Detect NULL Pointer Dereference 1.0 low 0.22% 13 Nov 2024
CVE-2023-23904 n/a UEFI firmware for some Intel(R) Processors: Use of NullPointerException Catch to Detect NULL Pointer Dereference 6.9 medium 0.22% 16 Sep 2024
CVE-2023-48727 n/a Intel(R) oneVPL software: Use of NullPointerException Catch to Detect NULL Pointer Dereference 3.3 low 0.27% 16 May 2024
CVE-2023-41082 n/a Intel(R) CST software: Use of NullPointerException Catch to Detect NULL Pointer Dereference 4.4 medium 0.24% 16 May 2024
CVE-2024-27662 D-Link DIR-823G A1V1.0.2B05 was discovered to contain a Null-pointer dereferences in sub_4110f4() 6.5 medium 0.51% 29 Feb 2024
CVE-2024-27661 D-Link DIR-823G A1V1.0.2B05 was discovered to contain Null-pointer dereferences in sub_4484A8() 6.5 medium 0.51% 29 Feb 2024
CVE-2024-27659 D-Link DIR-823G A1V1.0.2B05 was discovered to contain Null-pointer dereferences in sub_42AF30() 6.5 medium 0.60% 29 Feb 2024
CVE-2024-27658 D-Link DIR-823G A1V1.0.2B05 was discovered to contain Null-pointer dereferences in sub_4484A8() 6.5 medium 0.60% 29 Feb 2024
CVE-2023-25071 n/a Intel(R) Arc(TM) & Iris(R) Xe Graphics - WHQL - Windows Drviers: Use of NullPointerException Catch to Detect NULL Pointer Dereference 5.6 medium 0.21% 14 Nov 2023
CVE-2022-42879 n/a Intel(R) Arc(TM) Control software: Use of NullPointerException Catch to Detect NULL Pointer Dereference 6.1 medium 0.24% 14 Nov 2023
CVE-2022-29508 n/a Intel(R) VROC software: Use of NullPointerException Catch to Detect NULL Pointer Dereference 6.3 medium 0.23% 10 May 2023
CVE-2022-42878 n/a Intel(R) Trace Analyzer and Collector software: Use of NullPointerException Catch to Detect NULL Pointer Dereference 2.8 low 0.24% 10 May 2023
CVE-2022-2832 n/a Blender: Use of NullPointerException Catch to Detect NULL Pointer Dereference – 1.52% 16 Aug 2022