Description
In the Linux kernel, the following vulnerability has been resolved:

binder: cache secctx size before release zeroes it

binder_transaction() bounds the scatter-gather buffer area with
sg_buf_end_offset and subtracts the aligned LSM context size because
the secctx is written at the tail of that area. The subtraction reads
lsmctx.len, but that field has already been cleared by the time the
line runs:

security_secid_to_secctx(secid, &lsmctx) /* lsmctx.len set */
lsmctx_aligned_size = ALIGN(lsmctx.len, sizeof(u64))
extra_buffers_size += lsmctx_aligned_size
...
security_release_secctx(&lsmctx) /* memset zeroes len */
...
sg_buf_end_offset = sg_buf_offset + extra_buffers_size
- ALIGN(lsmctx.len, sizeof(u64)) /* ALIGN(0,8) */

security_release_secctx() does memset(cp, 0, sizeof(*cp)), so lsmctx.len
reads back as 0 and the subtraction contributes nothing, leaving
sg_buf_end_offset too large by the aligned secctx size on every
transaction to a txn_security_ctx node.

Each BINDER_TYPE_PTR object then derives buf_left = sg_buf_end_offset -
sg_buf_offset as the sole upper bound on its copy, so the inflated end
offset lets the copy run into the bytes that already hold the secctx.

The aligned size must therefore be cached before release rather than
re-read from the now-cleared field. Fix by caching it in
lsmctx_aligned_size at function scope when it is first computed and
subtracting lsmctx_aligned_size instead of re-reading lsmctx.len after
release. Reuse the same value for the earlier buf_offset computation.
Published: 2026-08-15
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel bug causes the binder subsystem to miscalculate the buffer limit for transactions involving security contexts. Because the code clears the context size before the buffer size is finalized, the end of the buffer is inflated by the aligned size of the cleared context. This inflated boundary permits copying data past the allocated memory area, leading to memory corruption. An attacker who can trigger hijacked binder transactions (for example, by sending crafted IPC messages) could potentially overwrite protected kernel memory, crash the system, or gain elevated privileges on the host.

Affected Systems

All Linux kernels that include the binder driver and have not yet applied the authoritative commit that restores the correctly cached context size. The issue applies to the common Linux:Linux kernel release; no specific version string is provided in the advisory, so any kernel before the fix is potentially vulnerable.

Risk and Exploitability

The vulnerability is a buffer bound error, making exploitation straightforward for a local attacker who can manipulate binder transactions. The advisory does not list an EPSS score or KEV status; therefore its public exploitation risk is uncertain, but the nature of the bug suggests that if exploited, control over kernel memory is possible. The primary attack vector is local, requiring the ability to send specially crafted binder IPC messages to a target process that uses the txn_security_ctx node. As the kernel memory layout may vary, this attack would likely require trial and error to achieve specific outcomes such as privilege escalation or denial of service.

Generated by OpenCVE AI on August 15, 2026 at 07:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the fix for the binder context size miscalculation.
  • If an immediate kernel upgrade is not feasible, configure the system to restrict or disable the binder subsystem for untrusted processes by adjusting kernel security settings or using device namespace isolation.
  • Apply any vendor-supplied patch or backport that restores the correct handling of lsmctx_aligned_size during binder transactions.
  • Monitor system logs for anomalous binder activity and perform kernel memory integrity checks to detect potential exploitation attempts.

Generated by OpenCVE AI on August 15, 2026 at 07:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 07:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: binder: cache secctx size before release zeroes it binder_transaction() bounds the scatter-gather buffer area with sg_buf_end_offset and subtracts the aligned LSM context size because the secctx is written at the tail of that area. The subtraction reads lsmctx.len, but that field has already been cleared by the time the line runs: security_secid_to_secctx(secid, &lsmctx) /* lsmctx.len set */ lsmctx_aligned_size = ALIGN(lsmctx.len, sizeof(u64)) extra_buffers_size += lsmctx_aligned_size ... security_release_secctx(&lsmctx) /* memset zeroes len */ ... sg_buf_end_offset = sg_buf_offset + extra_buffers_size - ALIGN(lsmctx.len, sizeof(u64)) /* ALIGN(0,8) */ security_release_secctx() does memset(cp, 0, sizeof(*cp)), so lsmctx.len reads back as 0 and the subtraction contributes nothing, leaving sg_buf_end_offset too large by the aligned secctx size on every transaction to a txn_security_ctx node. Each BINDER_TYPE_PTR object then derives buf_left = sg_buf_end_offset - sg_buf_offset as the sole upper bound on its copy, so the inflated end offset lets the copy run into the bytes that already hold the secctx. The aligned size must therefore be cached before release rather than re-read from the now-cleared field. Fix by caching it in lsmctx_aligned_size at function scope when it is first computed and subtracting lsmctx_aligned_size instead of re-reading lsmctx.len after release. Reuse the same value for the earlier buf_offset computation.
Title binder: cache secctx size before release zeroes it
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-15T05:51:18.975Z

Reserved: 2026-07-30T09:28:09.395Z

Link: CVE-2026-68458

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:18:15.350

Modified: 2026-08-15T06:18:15.350

Link: CVE-2026-68458

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T07:45:04Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')