cve.bz

CWE-395: Use of NullPointerException Catch to Detect NULL Pointer Dereference, published in 2025

Filter

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

What the weakness is: CWE-395 at MITRE. All weaknesses

Ask an AI about CWE-395

Show the promptExplain CWE-395: Use of NullPointerException Catch to Detect NULL Pointer Dereference and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/395.html and https://cve.bz/cve/cwe/395?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 9.8CVE-2025-58142xenEPSS 0.9%

    [This CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] There are multiple issues related to the handling and accessing of guest memory pages in the viridian code: …

  2. 9.8CVE-2025-27466xenEPSS 0.9%

    [This CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] There are multiple issues related to the handling and accessing of guest memory pages in the viridian code: …