Technical impact
The flaw lies in the Linux kernel’s IPsec Transformation Services (IPTFS) routine that clones security association state. When iptfs_clone_state() duplicates runtime data with kmemdup(), the clone may retain references to the original packet queue, timers, and locks. If the subsequent migration fails before these fields are reinitialized, the original state can be garbage‑collected, causing the cloned structures to be freed. This triggers use‑after‑free and double‑free errors when packets in the original IPTFS queue are processed, potentially resulting in kernel memory corruption and system crashes. Based on the description, it is inferred that an attacker would need to trigger a migration failure, which typically requires influencing IPsec traffic.
Affected Systems
Linux kernel 7.1 releases (rc1 through rc5) for any architecture are affected. The patch was committed to the mainline kernel; administrators should verify whether their running kernel includes the commit that resets runtime state before publishing the clone.
Risk and Exploitability
With a CVSS score of 7.8, this is a high‑severity vulnerability, but the EPSS score is below 1% and the issue is not in CISA’s KEV catalog, indicating limited current exploitation. An attacker would need to trigger the specific kernel state migration failure, generally requiring local kernel access or the ability to influence IPsec traffic. If successful, the flaw can crash the system.
Ubuntu USN