xfrm: hold dev ref until after transport_finish NF_HOOK (Linux Linux)

CVE-2026-31663
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-826 — Premature Release of Resource During Expected Lifetime
  • CWE-416 — Use After Free

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat-SADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected acf568ee859f098279eadf551612f103afdacb4e < 4d06caedea587c59cc2cc893ceecc57c75c64312 ; affected acf568ee859f098279eadf551612f103afdacb4e < 94439cbe478b53f92223da9aae95fffb28623c3f ; affected acf568ee859f098279eadf551612f103afdacb4e < 4236c30b437b80f673b9e08c8fae38b8d471ac9e ; affected acf568ee859f098279eadf551612f103afdacb4e < 0f451b43c88bf2b9c038b414be580efee42e031b ; affected acf568ee859f098279eadf551612f103afdacb4e < 5002beda5cac69d522dc54da0d5d463ed9c963d2 ; affected acf568ee859f098279eadf551612f103afdacb4e < 1c428b03840094410c5fb6a5db30640486bbbfcb
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.94 ≤ 6.12.* ; unaffected 6.18.23 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD