cve.bz

CWE-467: Use of sizeof() on a Pointer Type, published in 2024

Filter

The code calls sizeof() on a pointer type, when the programmer intended to determine the size of the data that is being pointed to.

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

Ask an AI about CWE-467

Show the promptExplain CWE-467: Use of sizeof() on a Pointer Type and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/467.html and https://cve.bz/cve/cwe/467?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. 8.4CVE-2021-47456linux kernelEPSS 0.3%

    In the Linux kernel, the following vulnerability has been resolved: can: peak_pci: peak_pci_remove(): fix UAF When remove the module peek_pci, referencing 'chan' again after releasing 'dev' will cause UAF. Fix this by releasing 'dev' la…