{"id":"CVE-2026-31663","aliases":["CVE-2026-31663"],"related":[],"kind":"vulnerability","state":"published","title":"xfrm: hold dev ref until after transport_finish NF_HOOK","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nxfrm: mantener la referencia del dispositivo hasta después de transport_finish NF_HOOK\n\nDespués de que la criptografía asíncrona se completa, xfrm_input_resume() llama a dev_put() inmediatamente al reingresar antes de que el skb alcance transport_finish. El puntero skb  ->  dev se utiliza entonces dentro de NF_HOOK y su okfn, lo que puede generar una condición de carrera con el desmantelamiento del dispositivo.\n\nEliminar el dev_put de la entrada de reanudación asíncrona y en su lugar liberar la referencia después de la llamada a NF_HOOK en transport_finish, utilizando un puntero de dispositivo guardado ya que NF_HOOK puede consumir el skb. Esto cubre las rutas NF_DROP, NF_QUEUE y NF_STOLEN que omiten el okfn.\n\nPara salidas no de transporte (decaps, gro, drop) y puntos de retorno asíncronos secundarios, liberar la referencia en línea cuando async está configurado.","source":"nvd"}],"published":"2026-04-24T14:45:13.239Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-416","CWE-826"],"affected":[{"ranges":[{"type":"git","introduced":"acf568ee859f098279eadf551612f103afdacb4e","fixed":"4d06caedea587c59cc2cc893ceecc57c75c64312","status":"affected"},{"type":"git","introduced":"acf568ee859f098279eadf551612f103afdacb4e","fixed":"94439cbe478b53f92223da9aae95fffb28623c3f","status":"affected"},{"type":"git","introduced":"acf568ee859f098279eadf551612f103afdacb4e","fixed":"4236c30b437b80f673b9e08c8fae38b8d471ac9e","status":"affected"},{"type":"git","introduced":"acf568ee859f098279eadf551612f103afdacb4e","fixed":"0f451b43c88bf2b9c038b414be580efee42e031b","status":"affected"},{"type":"git","introduced":"acf568ee859f098279eadf551612f103afdacb4e","fixed":"5002beda5cac69d522dc54da0d5d463ed9c963d2","status":"affected"},{"type":"git","introduced":"acf568ee859f098279eadf551612f103afdacb4e","fixed":"1c428b03840094410c5fb6a5db30640486bbbfcb","status":"affected"},{"type":"git","version":"69895c5ea0ca2e8d7de1e6d36965d0ab9730787f","status":"affected"},{"type":"git","version":"833760100588acfb267dac4d6a02ab9931237739","status":"affected"},{"type":"git","version":"e095ecaec6d94aa2156cceb98a85d409b51190f3","status":"affected"},{"type":"semver","introduced":"3.2.100","fixed":"3.3","status":"affected"},{"type":"semver","introduced":"3.16.55","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"4.14.24","fixed":"4.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.94","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.23","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.13","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:6.12.0-211.55.1.el10_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:10.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-553.164.1.rt7.505.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kernel-rt","cpe":"cpe:/a:redhat:enterprise_linux:8::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-553.164.1.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-687.49.1.el9_8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel","cpe":"cpe:/a:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"kernel","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"kernel-rt","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel-rt","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.2.100","fixed":"3.3"},{"status":"affected","introduced":"3.16.55","fixed":"3.17"},{"status":"affected","introduced":"4.14.24","fixed":"4.15"},{"status":"affected","introduced":"4.15.1","fixed":"6.18.23"},{"status":"affected","introduced":"6.19","fixed":"6.19.13"},{"status":"affected","version":"4.15"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4d06caedea587c59cc2cc893ceecc57c75c64312","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94439cbe478b53f92223da9aae95fffb28623c3f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4236c30b437b80f673b9e08c8fae38b8d471ac9e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f451b43c88bf2b9c038b414be580efee42e031b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5002beda5cac69d522dc54da0d5d463ed9c963d2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c428b03840094410c5fb6a5db30640486bbbfcb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-31663","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461462","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31663.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:67471","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:68570","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:68531","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:68532","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:11:47.294Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31663","url":"https://www.cve.org/CVERecord?id=CVE-2026-31663","licence":"CVE Terms of Use","modified":"2026-10-30T12:24:29.867Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31663","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31663","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.540Z","epss":{"score":0.00232,"percentile":0.1502,"date":"2026-12-01T12:00:22.000Z"}}