CWE-666: Operation on Resource in Wrong Phase of Lifetime
The product performs an operation on a resource at the wrong phase of the resource's lifecycle, which can lead to unexpected behaviors.
Last updated
Overview
CWE-666 (Operation on Resource in Wrong Phase of Lifetime) is a class-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
8 recorded CVEs are caused by CWE-666 (Operation on Resource in Wrong Phase of Lifetime). The highest-severity and most recent are shown first. 5 new CWE-666 CVEs have been recorded so far in 2026.
- CVE-2026-64162
idpf: fix read_dev_clk_lock spinlock init in idpf_ptp_init()
Critical · CVSS 9.8 · EPSS 46th2026-07-19 - CVE-2024-46754
bpf: Remove tst_run from lwt_seg6local_prog_ops.
High · CVSS 7.8 · EPSS 18th2024-09-18 - CVE-2024-40949
mm: shmem: fix getting incorrect lruvec when replacing a shmem folio
High · CVSS 7.8 · EPSS 14th