CVEBrief

Home / Linux / Linux / CVE-2025-40256

CVE-2025-40256: is it exploited, and which versions of Linux are affected and fixed?

CVE-2025-40256 is a vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: Linux from 6.16 until the fixed versions (CVE record by Linux). Fixed in 6.17.10 and 6.18 (CVE record by Linux).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 28, 2026, 17:37 UTC and NVD November 19, 2026, 07:15 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:08 UTC
Affected
Linux from 6.16 until the fixed versions
CVE record by Linux
Fixed in
6.17.10 and 6.18
CVE record by Linux
Exploit odds (EPSS)
0.22% in 30 days
higher than 14% of CVEs; FIRST, December 2, 2026

What is CVE-2025-40256?

In the Linux kernel, the following vulnerability has been resolved: xfrm: also call xfrm_state_delete_tunnel at destroy time for states that were never added In commit b441cf3f8c4b ("xfrm: delete x->tunnel as we delete x"), I missed the case where state creation fails between full initialization (->init_state has been called) and being inserted on the lists. In this situation, ->init_state has been called, so for IPcomp tunnels, the fallback tunnel has been created and added onto the lists, but the user state never gets added, because we fail before that. The user state doesn't go through __xfrm_state_delete, so we don't call xfrm_state_delete_tunnel for those states, and we end up leaking the FB tunnel. There are several codepaths affected by this: the add/update paths, in both net/key and xfrm, and the migrate code (xfrm_migrate, xfrm_state_migrate). A "proper" rollback of the init_state work would probably be doable in the add/update code, but for migrate it gets more complicated as multiple states may be involved. At some point, the new (not-inserted) state will be destroyed, so call xfrm_state_delete_tunnel during xfrm_state_gc_destroy. Most states will have their fallback tunnel cleaned up during __xfrm_state_delete, which solves the issue that b441cf3f8c4b (and other patches before it) aimed at. All states (including FB tunnels) will be removed from the lists once xfrm_state_fini has called flush_work(&xfrm_state_gc_work).

From the CVE record by Linux, last updated May 11, 2026, 21:45 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 6.16 until the fixed versions6.17.10, 6.18

As the CVE record by Linux states it, last updated May 11, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Is CVE-2025-40256 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.22% probability of exploitation activity in the next 30 days, percentile 13.6 (FIRST EPSS, scores of December 2, 2026)

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
April 16, 2025
Published
December 4, 2025, 16:08 UTC
CVE record updated
May 11, 2026, 21:45 UTC by Linux
NVD
Deferred, last modified October 19, 2026, 19:10 UTC
Last checked
CVE list November 28, 2026, 17:37 UTC; NVD November 19, 2026, 07:15 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2025-40256

Is CVE-2025-40256 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.22% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Linux are affected by CVE-2025-40256?

Linux from 6.16 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.

Which version fixes CVE-2025-40256?

6.17.10 and 6.18, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

Where is the official record of CVE-2025-40256?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.