CVE-2026-68458

Source
https://cve.org/CVERecord?id=CVE-2026-68458
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68458.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68458
Downstream
Published
2026-08-15T05:51:18.975Z
Modified
2026-08-16T03:48:26.162040542Z
Summary
binder: cache secctx size before release zeroes it
Details

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

binder: cache secctx size before release zeroes it

bindertransaction() bounds the scatter-gather buffer area with sgbufendoffset 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) */

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

Each BINDERTYPEPTR object then derives bufleft = sgbufendoffset - sgbufoffset 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 lsmctxalignedsize at function scope when it is first computed and subtracting lsmctxalignedsize instead of re-reading lsmctx.len after release. Reuse the same value for the earlier buf_offset computation.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68458.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6fba89813ccf333d2bc4d5caea04cd5f3c39eb50
Fixed
1228926e1e4d605cc74d9e675558982a6f2cf446
Fixed
4257f45ee1fddd0558e77b62af8bb63fd87b2162
Fixed
b34826e55aad3520ec813f1f367c11b24b29dc9f

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68458.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68458.json"