{
  "id": "CVE-2026-68458",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-68458",
  "published_at": "2026-08-15T05:51:18.975Z",
  "title": "binder: cache secctx size before release zeroes it",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nbinder: cache secctx size before release zeroes it\n\nbinder_transaction() bounds the scatter-gather buffer area with\nsg_buf_end_offset and subtracts the aligned LSM context size because\nthe secctx is written at the tail of that area.  The subtraction reads\nlsmctx.len, but that field has already been cleared by the time the\nline runs:\n\n    security_secid_to_secctx(secid, \u0026lsmctx)   /* lsmctx.len set */\n    lsmctx_aligned_size = ALIGN(lsmctx.len, sizeof(u64))\n    extra_buffers_size += lsmctx_aligned_size\n    ...\n    security_release_secctx(\u0026lsmctx)            /* memset zeroes len */\n    ...\n    sg_buf_end_offset = sg_buf_offset + extra_buffers_size\n                        - ALIGN(lsmctx.len, sizeof(u64)) /* ALIGN(0,8) */\n\nsecurity_release_secctx() does memset(cp, 0, sizeof(*cp)), so lsmctx.len\nreads back as 0 and the subtraction contributes nothing, leaving\nsg_buf_end_offset too large by the aligned secctx size on every\ntransaction to a txn_security_ctx node.\n\nEach BINDER_TYPE_PTR object then derives buf_left = sg_buf_end_offset -\nsg_buf_offset as the sole upper bound on its copy, so the inflated end\noffset lets the copy run into the bytes that already hold the secctx.\n\nThe aligned size must therefore be cached before release rather than\nre-read from the now-cleared field.  Fix by caching it in\nlsmctx_aligned_size at function scope when it is first computed and\nsubtracting lsmctx_aligned_size instead of re-reading lsmctx.len after\nrelease.  Reuse the same value for the earlier buf_offset computation.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 6fba89813ccf333d2bc4d5caea04cd5f3c39eb50, \u003c 1228926e1e4d605cc74d9e675558982a6f2cf446",
          "\u003e= 6fba89813ccf333d2bc4d5caea04cd5f3c39eb50, \u003c 4257f45ee1fddd0558e77b62af8bb63fd87b2162",
          "\u003e= 6fba89813ccf333d2bc4d5caea04cd5f3c39eb50, \u003c b34826e55aad3520ec813f1f367c11b24b29dc9f"
        ],
        "fixed_in": [
          "1228926e1e4d605cc74d9e675558982a6f2cf446",
          "4257f45ee1fddd0558e77b62af8bb63fd87b2162",
          "b34826e55aad3520ec813f1f367c11b24b29dc9f"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.18.40",
          "7.1.5",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 1228926e1e4d605cc74d9e675558982a6f2cf446 or 4257f45ee1fddd0558e77b62af8bb63fd87b2162 or b34826e55aad3520ec813f1f367c11b24b29dc9f or later.",
      "Upgrade Linux to 0 or 6.18.40 or 7.1.5 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
