{"id":82251,"date":"2026-07-19T18:46:54","date_gmt":"2026-07-19T15:16:54","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-63872-esp-fix-page-frag-reference-leak-on-skb_to_sgvec-failure\/"},"modified":"2026-07-19T18:46:54","modified_gmt":"2026-07-19T15:16:54","slug":"cve-2026-63872-esp-fix-page-frag-reference-leak-on-skb_to_sgvec-failure","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-63872-esp-fix-page-frag-reference-leak-on-skb_to_sgvec-failure\/","title":{"rendered":"CVE-2026-63872 &#8211; esp: fix page frag reference leak on skb_to_sgvec failure"},"content":{"rendered":"<p>CVE ID :CVE-2026-63872<\/p>\n<p>  Published : July 19, 2026, 3:16 p.m. | 23\u00a0minutes ago<\/p>\n<p>  Description :In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>esp: fix page frag reference leak on skb_to_sgvec failure<\/p>\n<p>In esp_output_tail(), when esp-&gt;inplace is false, the old skb page frags<br \/>\nare replaced with a new page from the xfrm page_frag cache. The source<br \/>\nscatterlist (sg) is built from the old frags before the replacement, and<br \/>\nesp_ssg_unref() is responsible for releasing the old page references<br \/>\nafter the crypto operation completes.<\/p>\n<p>However, if the second skb_to_sgvec() call (which builds the destination<br \/>\nscatterlist from the new page) fails, the code jumps to error_free which<br \/>\nonly calls kfree(tmp). The old page frag references captured in the<br \/>\nsource scatterlist are never released:<\/p>\n<p>  1. sg[] is built from old frags via skb_to_sgvec() (no extra get_page)<br \/>\n  2. nr_frags is set to 1 and frag[0] is replaced with the new page<br \/>\n  3. Second skb_to_sgvec() fails -&gt; goto error_free<br \/>\n  4. kfree(tmp) frees the sg[] memory but old frags are not unref&#8217;d<br \/>\n  5. kfree_skb() only releases frag[0] (the new page), not the old ones<\/p>\n<p>Fix this by adding a bool parameter to esp_ssg_unref() that, when true,<br \/>\nunconditionally unrefs the source scatterlist frags without checking<br \/>\nreq-&gt;src and req-&gt;dst, since those fields are not yet initialized by<br \/>\naead_request_set_crypt() at the point of the error. Existing callers<br \/>\npass false to preserve the original behavior.<\/p>\n<p>The same issue exists in both esp4 and esp6 as the code is identical.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-63872 Published : July 19, 2026, 3:16 p.m. | 23\u00a0minutes ago Description :In the Linux kernel, the following vulnerability has been resolved: esp: fix page frag reference leak on skb_to_sgvec failure In esp_output_tail(), when esp-&gt;inplace is false, the old skb page frags are replaced with a new page from the xfrm page_frag cache. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82251","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82251"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82251\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}