{"id":6712,"date":"2026-09-04T18:49:14","date_gmt":"2026-09-04T10:49:14","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-68458"},"modified":"2026-09-04T18:49:14","modified_gmt":"2026-09-04T10:49:14","slug":"cve-2026-68458","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-68458","title":{"rendered":"CVE-2026-68458 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nbinder: cache secctx"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>binder: cache secctx size before release zeroes it<\/p>\n<p>binder_transaction() bounds the scatter-gather buffer area with<br \/>\nsg_buf_end_offset and subtracts the aligned LSM context size because<br \/>\nthe secctx is written at the tail of that area.  The subtraction reads<br \/>\nlsmctx.len, but that field has already been cleared by the time the<br \/>\nline runs:<\/p>\n<p>    security_secid_to_secctx(secid, &amp;lsmctx)   \/* lsmctx.len set *\/<br \/>\n    lsmctx_aligned_size = ALIGN(lsmctx.len, sizeof(u64))<br \/>\n    extra_buffers_size += lsmctx_aligned_size<br \/>\n    &#8230;<br \/>\n    security_release_secctx(&amp;lsmctx)            \/* memset zeroes len *\/<br \/>\n    &#8230;<br \/>\n    sg_buf_end_offset = sg_buf_offset + extra_buffers_size<br \/>\n                        &#8211; ALIGN(lsmctx.len, sizeof(u64)) \/* ALIGN(0,8) *\/<\/p>\n<p>security_release_secctx() does memset(cp, 0, sizeof(*cp)), so lsmctx.len<br \/>\nreads back as 0 and the subtraction contributes nothing, leaving<br \/>\nsg_buf_end_offset too large by the aligned secctx size on every<br \/>\ntransaction to a txn_security_ctx node.<\/p>\n<p>Each BINDER_TYPE_PTR object then derives buf_left = sg_buf_end_offset &#8211;<br \/>\nsg_buf_offset as the sole upper bound on its copy, so the inflated end<br \/>\noffset lets the copy run into the bytes that already hold the secctx.<\/p>\n<p>The aligned size must therefore be cached before release rather than<br \/>\nre-read from the now-cleared field.  Fix by caching it in<br \/>\nlsmctx_aligned_size at function scope when it is first computed and<br \/>\nsubtracting lsmctx_aligned_size instead of re-reading lsmctx.len after<br \/>\nrelease.  Reuse the same value for the earlier buf_offset computation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>binder: cache secctx size before release zeroes it<\/p>\n<p>binder_transaction() bounds the scatter-gather buffer area with<br \/>\nsg_buf_end_offs<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-6712","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/6712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}