MITRE D3FENDdefensive technique
D3-RN Reference Nullification
- Tactic
- Harden
Definition
Invalidating all pointers that reference a specific memory block, ensuring that the block cannot be accessed or modified after deallocation.
How it works
How it Works
Nullifying references to memory blocks makes those blocks no longer accessible. This is critical to prevent use-after-free errors.
Considerations
• If a memory block is freed, all other references to that block should be nullified.
• This is particularly relevant when manually managing memory.
• Note: This resource should not be considered a definitive or exhaustive coding guideline.
Related
Child of · MITRE D3FEND (1)
- D3-SCH Source Code Hardening defensive technique
References
- https://cwe.mitre.org/documents/sources/TheCLASPApplicationSecurityProcess.pdf The CLASP Application Security Process