{"id":"CVE-2026-80848","aliases":["CVE-2026-80848"],"related":[],"kind":"vulnerability","state":"published","title":"xfrm: espintcp: fix UAF during close","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: espintcp: fix UAF during close\n\nZDI reported and analyzed a race condition during close for espintcp\nsockets:\n\n    espintcp_close() frees emsg->skb via kfree_skb() without holding\n    any socket lock. Concurrently, the xfrm_trans_reinject work queue\n    invokes esp_output_tcp_finish() -> espintcp_push_skb() ->\n    espintcp_push_msgs() -> skb_send_sock_locked(), which reads the\n    same skb as a data source.\n\nFix this by adding a synchronize_rcu() call after resetting sk_prot,\nsince esp_output_tcp_finish() runs under RCU and won't use a socket\nwith sk_prot == &tcp_prot.  Simply taking the socket lock in\nespintcp_close() could lead to leaks, if esp_output_tcp_finish()\nre-adds an skb in the slot we just freed. After this, the existing\nbarrier() is no longer needed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: espintcp: fix UAF during close\n\nZDI reported and analyzed a race condition during close for espintcp\nsockets:\n\n    espintcp_close() frees emsg->skb via kfree_skb() without holding\n    any socket lock. Concurrently, the xfrm_trans_reinject work queue\n    invokes esp_output_tcp_finish() -> espintcp_push_skb() ->\n    espintcp_push_msgs() -> skb_send_sock_locked(), which reads the\n    same skb as a data source.\n\nFix this by adding a synchronize_rcu() call after resetting sk_prot,\nsince esp_output_tcp_finish() runs under RCU and won't use a socket\nwith sk_prot == &tcp_prot.  Simply taking the socket lock in\nespintcp_close() could lead to leaks, if esp_output_tcp_finish()\nre-adds an skb in the slot we just freed. After this, the existing\nbarrier() is no longer needed.","source":"cvelist"}],"published":"2026-09-04T15:54:58.427Z","modified":"2026-10-19T09:17:20.307Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"29121c5e6591da527e8e36ddac7120dc527f574d","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"ed5d9102190c45fc70121c036b0626b740040b75","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"4bc0dfa28dca6fc0084203732695968049c44072","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"ff8dd7a932f34409a56e1b91a1219340f17457e9","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"4b31a875693c480c611519faca46216514e3e052","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"24efebecf415ba264adba0f0491cec436463a14f","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"eb3bbf29c723fe75c0eb92be14f0ec92971fe272","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"54b41ad14da9a981131ab6e4d3f79321a503ea5d","status":"affected"},{"type":"git","introduced":"e27cca96cd68fa2c6814c90f9a1cfd36bb68c593","fixed":"deb232e884877bf10b4ce2580909eedec986c284","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.6","status":"unaffected"},{"type":"semver","introduced":"5.10.269","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.220","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.187","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.156","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.108","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.49","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.13","lastAffected":"7.1.*","status":"unaffected"},{"type":"semver","introduced":"7.2.3","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/29121c5e6591da527e8e36ddac7120dc527f574d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed5d9102190c45fc70121c036b0626b740040b75","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4bc0dfa28dca6fc0084203732695968049c44072","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff8dd7a932f34409a56e1b91a1219340f17457e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b31a875693c480c611519faca46216514e3e052","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24efebecf415ba264adba0f0491cec436463a14f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb3bbf29c723fe75c0eb92be14f0ec92971fe272","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54b41ad14da9a981131ab6e4d3f79321a503ea5d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/deb232e884877bf10b4ce2580909eedec986c284","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80848","url":"https://www.cve.org/CVERecord?id=CVE-2026-80848","licence":"CVE Terms of Use","modified":"2026-10-19T08:44:42.445Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80848","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80848","licence":"Public domain","modified":"2026-10-19T09:17:20.307Z"}],"updatedAt":"2026-11-25T22:59:36.349Z","epss":{"score":0.00195,"percentile":0.09683,"date":"2026-12-01T12:00:22.000Z"}}