Impact
The vulnerability occurs in the hns3 network driver of the Linux kernel. During ring parameter configuration, a temporary copy of the ring structure is created for rollback. The tx_spare pointer in the original ring remains pointing to the old backup memory after a failure during allocation. Later, when the error cleanup path attempts to free newly allocated rings, this stale pointer is mistakenly freed as a new buffer, causing a double‑free. This double‑free flaw, classified as CWE‑825, leads to memory corruption in the kernel.
Affected Systems
All Linux kernel releases that include the hns3 driver are potentially affected. The CPE entry indicates the Linux kernel, and no specific version ranges are provided, so any kernel containing the hns3 driver before the fix is at risk until patched.
Risk and Exploitability
The CVSS score is 5.5. The EPSS score is < 1%. The vulnerability is not listed in CISA's KEV catalog. This double‑free flaw can lead to memory corruption in the Linux kernel. Based on the fact that the flaw occurs at privileged kernel level, it is inferred that exploitation would require an attacker with local access to the system.
OpenCVE Enrichment