CVE-2026-31663: xfrm: hold dev ref until after transport_finish NF_HOOK
Vulnerability summary
CVE-2026-31663 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 13% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 31 · Related 19Timeline
- 24-04-2026PublishedVulnerability first disclosed.
- 30-10-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: xfrm: hold dev ref until after transport_finish NF_HOOK After async crypto completes, xfrm_input_resume() calls dev_put() immediately on re-entry before the skb reaches transport_finish. The skb->dev pointer is then used inside NF_HOOK and its okfn, which can race with device teardown. Remove the dev_put from the async resumption entry and instead drop the reference after the NF_HOOK call in transport_finish, using a saved device pointer since NF_HOOK may consume the skb. This covers NF_DROP, NF_QUEUE and NF_STOLEN paths that skip the okfn. For non-transport exits (decaps, gro, drop) and secondary async return points, release the reference inline when async is set.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
Increase +0.09 pp
From 0.13% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-826Premature Release of Resource During Expected LifetimeThe product releases a resource that is still intended to be used by itself or another actor.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu157 products
- linuxAll versions (No fix recorded) | < 6.8.0-146.146
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1066.69
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Chainguard5 products
- linux-aws-6.12All versions (No fix recorded)
- linux-azure-6.12All versions (No fix recorded)
- linux-gcp-6.12All versions (No fix recorded)
- linux-qemu-6.12All versions (No fix recorded)
- linux-vmware-6.12All versions (No fix recorded)
Linux2 products
- linux≥ acf568ee859f098279eadf551612f103afdacb4e, < 4d06caedea587c59cc2cc893ceecc57c75c64312 | ≥ acf568ee859f098279eadf551612f103afdacb4e, < 94439cbe478b53f92223da9aae95fffb28623c3f | ≥ acf568ee859f098279eadf551612f103afdacb4e, < 4236c30b437b80f673b9e08c8fae38b8d471ac9e | ≥ acf568ee859f098279eadf551612f103afdacb4e, < 0f451b43c88bf2b9c038b414be580efee42e031b | ≥ acf568ee859f098279eadf551612f103afdacb4e, < 5002beda5cac69d522dc54da0d5d463ed9c963d2 | ≥ acf568ee859f098279eadf551612f103afdacb4e, < 1c428b03840094410c5fb6a5db30640486bbbfcb | 69895c5ea0ca2e8d7de1e6d36965d0ab9730787f | 833760100588acfb267dac4d6a02ab9931237739 | e095ecaec6d94aa2156cceb98a85d409b51190f3 | ≥ 3.2.100, < 3.3 | ≥ 3.16.55, < 3.17 | ≥ 4.14.24, < 4.15 | 4.15
- linux_kernel≥ 3.2.100, < 3.3 | ≥ 3.16.55, < 3.17 | ≥ 4.14.24, < 4.15 | ≥ 4.15.1, < 6.18.23 | ≥ 6.19, < 6.19.13 | 4.15 | 7.0:rc1 | 7.0:rc2 | 7.0:rc3 | 7.0:rc4 | 7.0:rc5 | 7.0:rc6 | 7.0:rc7
Debian1 product
- linuxAll versions (No fix recorded) | < 6.12.94-1 | < 6.19.13-1
4 vendors · 165 products