{"id":"CVE-2026-31663","published":"2026-04-24T14:45:13Z","modified":"2026-10-30T12:24:29Z","title":"xfrm: hold dev ref until after transport_finish NF_HOOK","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: hold dev ref until after transport_finish NF_HOOK\n\nAfter async crypto completes, xfrm_input_resume() calls dev_put()\nimmediately on re-entry before the skb reaches transport_finish.\nThe skb->dev pointer is then used inside NF_HOOK and its okfn,\nwhich can race with device teardown.\n\nRemove the dev_put from the async resumption entry and instead\ndrop the reference after the NF_HOOK call in transport_finish,\nusing a saved device pointer since NF_HOOK may consume the skb.\nThis covers NF_DROP, NF_QUEUE and NF_STOLEN paths that skip\nthe okfn.\n\nFor non-transport exits (decaps, gro, drop) and secondary\nasync return points, release the reference inline when\nasync is set.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00618,"percentile":0.43897,"provenance":"source"},"cwes":[{"id":"CWE-826","name":"Premature Release of Resource During Expected Lifetime"},{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/4d06caedea587c59cc2cc893ceecc57c75c64312","tags":[]},{"url":"https://git.kernel.org/stable/c/94439cbe478b53f92223da9aae95fffb28623c3f","tags":[]},{"url":"https://git.kernel.org/stable/c/4236c30b437b80f673b9e08c8fae38b8d471ac9e","tags":[]},{"url":"https://git.kernel.org/stable/c/0f451b43c88bf2b9c038b414be580efee42e031b","tags":[]},{"url":"https://git.kernel.org/stable/c/5002beda5cac69d522dc54da0d5d463ed9c963d2","tags":[]},{"url":"https://git.kernel.org/stable/c/1c428b03840094410c5fb6a5db30640486bbbfcb","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-31663","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461462","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31663.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:67471","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:68570","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:68531","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:68532","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.78},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= acf568ee859f098279eadf551612f103afdacb4e, < 4d06caedea587c59cc2cc893ceecc57c75c64312",">= acf568ee859f098279eadf551612f103afdacb4e, < 94439cbe478b53f92223da9aae95fffb28623c3f",">= acf568ee859f098279eadf551612f103afdacb4e, < 4236c30b437b80f673b9e08c8fae38b8d471ac9e",">= acf568ee859f098279eadf551612f103afdacb4e, < 0f451b43c88bf2b9c038b414be580efee42e031b",">= acf568ee859f098279eadf551612f103afdacb4e, < 5002beda5cac69d522dc54da0d5d463ed9c963d2",">= acf568ee859f098279eadf551612f103afdacb4e, < 1c428b03840094410c5fb6a5db30640486bbbfcb","69895c5ea0ca2e8d7de1e6d36965d0ab9730787f","833760100588acfb267dac4d6a02ab9931237739","e095ecaec6d94aa2156cceb98a85d409b51190f3",">= 3.2.100, < 3.3"]},{"vendor":"Linux","product":"Linux","versions":["4.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:11:47.294620Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-25556","exploited":false,"provenance":"source"}}