{"id":"CVE-2026-68435","aliases":["CVE-2026-68435"],"related":[],"kind":"vulnerability","state":"published","title":"LoongArch: Fix address space mismatch in kexec command line lookup","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Fix address space mismatch in kexec command line lookup\n\nWhen searching the loaded segments for the \"kexec\" command line marker,\nthe kexec_load(2) path (file_mode == 0) passes the user-space segment\nbuffer straight to strncmp() through a bogus (char __user *) cast. This\ndereferences a user pointer in kernel context, which is wrong and is\nflagged by sparse:\n\n  arch/loongarch/kernel/machine_kexec.c:84:51: sparse: incorrect type in\n  argument 2 (different address spaces) @@ expected char const * @@ got\n  char [noderef] __user *\n\nHere copy the marker-sized prefix of each segment into a small on-stack\nbuffer with copy_from_user() before comparing, and skip segments that\nfault. The subsequent copy_from_user() that stages the full command line\ninto the safe area is left unchanged.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Fix address space mismatch in kexec command line lookup\n\nWhen searching the loaded segments for the \"kexec\" command line marker,\nthe kexec_load(2) path (file_mode == 0) passes the user-space segment\nbuffer straight to strncmp() through a bogus (char __user *) cast. This\ndereferences a user pointer in kernel context, which is wrong and is\nflagged by sparse:\n\n  arch/loongarch/kernel/machine_kexec.c:84:51: sparse: incorrect type in\n  argument 2 (different address spaces) @@ expected char const * @@ got\n  char [noderef] __user *\n\nHere copy the marker-sized prefix of each segment into a small on-stack\nbuffer with copy_from_user() before comparing, and skip segments that\nfault. The subsequent copy_from_user() that stages the full command line\ninto the safe area is left unchanged.","source":"cvelist"}],"published":"2026-08-12T00:07:23.359Z","modified":"2026-10-30T13:19:45.440Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4a03b2ac06a5bcae29371866d9d11f5bfd4c9188","fixed":"742f2c0a64a7557495e831c3c112d92e308bd4ae","status":"affected"},{"type":"git","introduced":"4a03b2ac06a5bcae29371866d9d11f5bfd4c9188","fixed":"3b71f51fa3a247921408879eab2ddee82da8a980","status":"affected"},{"type":"git","introduced":"4a03b2ac06a5bcae29371866d9d11f5bfd4c9188","fixed":"eaa908d8d523b0ab75dab5ebd6662e70af5e5d7e","status":"affected"},{"type":"git","introduced":"4a03b2ac06a5bcae29371866d9d11f5bfd4c9188","fixed":"a94d6726ec8680a2b0c453fc782a543f68a1ea06","status":"affected"},{"type":"git","introduced":"4a03b2ac06a5bcae29371866d9d11f5bfd4c9188","fixed":"7a54e0cbaad4a5a09e7cc7a4f05d181048e98ca7","status":"affected"},{"type":"git","introduced":"4a03b2ac06a5bcae29371866d9d11f5bfd4c9188","fixed":"485ed44db5694d8d2e5027f63ad608e705286f30","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/742f2c0a64a7557495e831c3c112d92e308bd4ae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b71f51fa3a247921408879eab2ddee82da8a980","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eaa908d8d523b0ab75dab5ebd6662e70af5e5d7e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a94d6726ec8680a2b0c453fc782a543f68a1ea06","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7a54e0cbaad4a5a09e7cc7a4f05d181048e98ca7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/485ed44db5694d8d2e5027f63ad608e705286f30","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68435","url":"https://www.cve.org/CVERecord?id=CVE-2026-68435","licence":"CVE Terms of Use","modified":"2026-10-30T12:28:36.302Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68435","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68435","licence":"Public domain","modified":"2026-10-30T13:19:45.440Z"}],"updatedAt":"2026-11-25T22:59:32.529Z","epss":{"score":0.00197,"percentile":0.09885,"date":"2026-12-01T12:00:22.000Z"}}