{"id":"CVE-2025-38696","aliases":["CVE-2025-38696"],"related":[],"kind":"vulnerability","state":"published","title":"MIPS: Don't crash in stack_top() for tasks without ABI or vDSO","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: Don't crash in stack_top() for tasks without ABI or vDSO\n\nNot all tasks have an ABI associated or vDSO mapped,\nfor example kthreads never do.\nIf such a task ever ends up calling stack_top(), it will derefence the\nNULL ABI pointer and crash.\n\nThis can for example happen when using kunit:\n\n    mips_stack_top+0x28/0xc0\n    arch_pick_mmap_layout+0x190/0x220\n    kunit_vm_mmap_init+0xf8/0x138\n    __kunit_add_resource+0x40/0xa8\n    kunit_vm_mmap+0x88/0xd8\n    usercopy_test_init+0xb8/0x240\n    kunit_try_run_case+0x5c/0x1a8\n    kunit_generic_run_threadfn_adapter+0x28/0x50\n    kthread+0x118/0x240\n    ret_from_kernel_thread+0x14/0x1c\n\nOnly dereference the ABI point if it is set.\n\nThe GIC page is also included as it is specific to the vDSO.\nAlso move the randomization adjustment into the same conditional.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: Don't crash in stack_top() for tasks without ABI or vDSO\n\nNot all tasks have an ABI associated or vDSO mapped,\nfor example kthreads never do.\nIf such a task ever ends up calling stack_top(), it will derefence the\nNULL ABI pointer and crash.\n\nThis can for example happen when using kunit:\n\n    mips_stack_top+0x28/0xc0\n    arch_pick_mmap_layout+0x190/0x220\n    kunit_vm_mmap_init+0xf8/0x138\n    __kunit_add_resource+0x40/0xa8\n    kunit_vm_mmap+0x88/0xd8\n    usercopy_test_init+0xb8/0x240\n    kunit_try_run_case+0x5c/0x1a8\n    kunit_generic_run_threadfn_adapter+0x28/0x50\n    kthread+0x118/0x240\n    ret_from_kernel_thread+0x14/0x1c\n\nOnly dereference the ABI point if it is set.\n\nThe GIC page is also included as it is specific to the vDSO.\nAlso move the randomization adjustment into the same conditional.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nMIPS: No fallar en stack_top() para tareas sin ABI o vDSO\n\nNo todas las tareas tienen un ABI asociado o vDSO mapeado,\npor ejemplo, los kthreads nunca lo hacen.\nSi una tarea de este tipo alguna vez termina llamando a stack_top(), desreferenciará el puntero ABI NULL y fallará.\n\nEsto puede ocurrir, por ejemplo, al usar kunit:\n\n    mips_stack_top+0x28/0xc0\n    arch_pick_mmap_layout+0x190/0x220\n    kunit_vm_mmap_init+0xf8/0x138\n    __kunit_add_resource+0x40/0xa8\n    kunit_vm_mmap+0x88/0xd8\n    usercopy_test_init+0xb8/0x240\n    kunit_try_run_case+0x5c/0x1a8\n    kunit_generic_run_threadfn_adapter+0x28/0x50\n    kthread+0x118/0x240\n    ret_from_kernel_thread+0x14/0x1c\n\nSolo desreferenciar el puntero ABI si está establecido.\n\nLa página GIC también se incluye ya que es específica del vDSO.\nTambién mover el ajuste de aleatorización a la misma condicional.","source":"nvd"}],"published":"2025-09-04T15:32:48.973Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"ab18e48a503230d675e824a0d68a108bdff42503","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"e78033e59444d257d095b73ce5d20625294f6ec2","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"bd90dbd196831f5c2620736dc221db2634cf1e8e","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"5b6839b572b503609b9b58bc6c04a816eefa0794","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"f22de2027b206ddfb8a075800bb5d0dacf2da4b8","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"82d140f6aab5e89a9d3972697a0dbe1498752d9b","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"24d098b6f69b0aa806ffcb3e18259bee31650b28","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"cddf47d20b0325dc8a4e57b833fe96e8f36c42a4","status":"affected"},{"type":"git","introduced":"ea7e0480a4b695d0aa6b3fa99bd658a003122113","fixed":"e9f4a6b3421e936c3ee9d74710243897d74dbaa2","status":"affected"},{"type":"git","version":"86717a97f9218de798c6d33e0014ab9325e18f56","status":"affected"},{"type":"git","version":"e4882348eaa9f5f052cb21d2a5aa99a063e4308b","status":"affected"},{"type":"semver","introduced":"4.14.77","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.18.15","fixed":"4.19","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.14.77","fixed":"4.15"},{"status":"affected","introduced":"4.18.15","fixed":"4.19"},{"status":"affected","introduced":"4.19.1","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"},{"status":"affected","version":"4.19"},{"status":"affected","version":"4.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ab18e48a503230d675e824a0d68a108bdff42503","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e78033e59444d257d095b73ce5d20625294f6ec2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd90dbd196831f5c2620736dc221db2634cf1e8e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b6839b572b503609b9b58bc6c04a816eefa0794","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f22de2027b206ddfb8a075800bb5d0dacf2da4b8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82d140f6aab5e89a9d3972697a0dbe1498752d9b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24d098b6f69b0aa806ffcb3e18259bee31650b28","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cddf47d20b0325dc8a4e57b833fe96e8f36c42a4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9f4a6b3421e936c3ee9d74710243897d74dbaa2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38696","url":"https://www.cve.org/CVERecord?id=CVE-2025-38696","licence":"CVE Terms of Use","modified":"2026-05-23T16:00:23.673Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38696","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38696","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.143Z","epss":{"score":0.00208,"percentile":0.11597,"date":"2026-12-01T12:00:22.000Z"}}