# CVE-2026-31663: xfrm: hold dev ref until after transport\_finish NF\_HOOK

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.62% (percentile 44, 2026-11-26)
- **CWE:** CWE-416, CWE-826
- **Published:** 2026-04-24T14:45:13.239Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= acf568ee859f098279eadf551612f103afdacb4e, \< 4d06caedea587c59cc2cc893ceecc57c75c64312; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 94439cbe478b53f92223da9aae95fffb28623c3f; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 4236c30b437b80f673b9e08c8fae38b8d471ac9e; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 0f451b43c88bf2b9c038b414be580efee42e031b; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 5002beda5cac69d522dc54da0d5d463ed9c963d2; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 1c428b03840094410c5fb6a5db30640486bbbfcb; 69895c5ea0ca2e8d7de1e6d36965d0ab9730787f; 833760100588acfb267dac4d6a02ab9931237739; e095ecaec6d94aa2156cceb98a85d409b51190f3; \>= 3.2.100, \< 3.3; …
- Anyone running Linux 4.15

## 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.

## Affected and fixed versions

- Linux: \>= acf568ee859f098279eadf551612f103afdacb4e, \< 4d06caedea587c59cc2cc893ceecc57c75c64312; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 94439cbe478b53f92223da9aae95fffb28623c3f; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 4236c30b437b80f673b9e08c8fae38b8d471ac9e; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 0f451b43c88bf2b9c038b414be580efee42e031b; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 5002beda5cac69d522dc54da0d5d463ed9c963d2; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 1c428b03840094410c5fb6a5db30640486bbbfcb; 69895c5ea0ca2e8d7de1e6d36965d0ab9730787f; 833760100588acfb267dac4d6a02ab9931237739; e095ecaec6d94aa2156cceb98a85d409b51190f3; \>= 3.2.100, \< 3.3; … (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31663. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31663.md
Affected: Linux >= acf568ee859f098279eadf551612f103afdacb4e, < 4d06caedea587c59cc2cc893ceecc57c75c64312; >= acf568ee859f098279eadf551612f103afdacb4e, < 94439cbe478b53f92223da9aae95fffb28623c3f; >= acf568ee859f098279eadf551612f103afdacb4e, < 4236c30b437b80f673b9e08c8fae38b8d471ac9e; >= acf568ee859f098279eadf5…
Fixed in: Linux 4d06caedea587c59cc2cc893ceecc57c75c64312, Linux 94439cbe478b53f92223da9aae95fffb28623c3f, Linux 4236c30b437b80f673b9e08c8fae38b8d471ac9e, Linux 0f451b43c88bf2b9c038b414be580efee42e031b, Linux 5002beda5cac69d522dc54da0d5d463ed9c963d2, Linux 1c428b03840094410c5fb6a5db30640486bbbfcb, Linux 3.3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31663 being exploited?

There is no confirmed exploitation: CVE-2026-31663 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.62% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31663?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31663?

Linux \>= acf568ee859f098279eadf551612f103afdacb4e, \< 4d06caedea587c59cc2cc893ceecc57c75c64312; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 94439cbe478b53f92223da9aae95fffb28623c3f; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 4236c30b437b80f673b9e08c8fae38b8d471ac9e; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 0f451b43c88bf2b9c038b414be580efee42e031b; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 5002beda5cac69d522dc54da0d5d463ed9c963d2; \>= acf568ee859f098279eadf551612f103afdacb4e, \< 1c428b03840094410c5fb6a5db30640486bbbfcb; 69895c5ea0ca2e8d7de1e6d36965d0ab9730787f; 833760100588acfb267dac4d6a02ab9931237739; e095ecaec6d94aa2156cceb98a85d409b51190f3; \>= 3.2.100, \< 3.3; …; Linux 4.15.

### Is there a fix for CVE-2026-31663?

Yes. Fixed in Linux 4d06caedea587c59cc2cc893ceecc57c75c64312, Linux 94439cbe478b53f92223da9aae95fffb28623c3f, Linux 4236c30b437b80f673b9e08c8fae38b8d471ac9e, Linux 0f451b43c88bf2b9c038b414be580efee42e031b, Linux 5002beda5cac69d522dc54da0d5d463ed9c963d2, Linux 1c428b03840094410c5fb6a5db30640486bbbfcb, Linux 3.3. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31663?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2026:67471>
- vendor: <https://access.redhat.com/errata/RHSA-2026:68570>
- vendor: <https://access.redhat.com/errata/RHSA-2026:68531>
- vendor: <https://access.redhat.com/errata/RHSA-2026:68532>
- patch: <https://git.kernel.org/stable/c/0f451b43c88bf2b9c038b414be580efee42e031b>
- patch: <https://git.kernel.org/stable/c/5002beda5cac69d522dc54da0d5d463ed9c963d2>
- patch: <https://git.kernel.org/stable/c/1c428b03840094410c5fb6a5db30640486bbbfcb>
- other: <https://git.kernel.org/stable/c/4d06caedea587c59cc2cc893ceecc57c75c64312>
- other: <https://git.kernel.org/stable/c/94439cbe478b53f92223da9aae95fffb28623c3f>
- other: <https://git.kernel.org/stable/c/4236c30b437b80f673b9e08c8fae38b8d471ac9e>
- other: <https://access.redhat.com/security/cve/CVE-2026-31663>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2461462>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31663.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31663>

HTML: <https://flawdb.com/CVE-2026-31663> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31663>
