{"id":"CVE-2024-26603","aliases":["CVE-2024-26603"],"related":[],"kind":"vulnerability","state":"published","title":"x86/fpu: Stop relying on userspace for info to fault in xsave buffer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/fpu: Stop relying on userspace for info to fault in xsave buffer\n\nBefore this change, the expected size of the user space buffer was\ntaken from fx_sw->xstate_size. fx_sw->xstate_size can be changed\nfrom user-space, so it is possible construct a sigreturn frame where:\n\n * fx_sw->xstate_size is smaller than the size required by valid bits in\n   fx_sw->xfeatures.\n * user-space unmaps parts of the sigrame fpu buffer so that not all of\n   the buffer required by xrstor is accessible.\n\nIn this case, xrstor tries to restore and accesses the unmapped area\nwhich results in a fault. But fault_in_readable succeeds because buf +\nfx_sw->xstate_size is within the still mapped area, so it goes back and\ntries xrstor again. It will spin in this loop forever.\n\nInstead, fault in the maximum size which can be touched by XRSTOR (taken\nfrom fpstate->user_size).\n\n[ dhansen: tweak subject / changelog ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/fpu: Stop relying on userspace for info to fault in xsave buffer\n\nBefore this change, the expected size of the user space buffer was\ntaken from fx_sw->xstate_size. fx_sw->xstate_size can be changed\nfrom user-space, so it is possible construct a sigreturn frame where:\n\n * fx_sw->xstate_size is smaller than the size required by valid bits in\n   fx_sw->xfeatures.\n * user-space unmaps parts of the sigrame fpu buffer so that not all of\n   the buffer required by xrstor is accessible.\n\nIn this case, xrstor tries to restore and accesses the unmapped area\nwhich results in a fault. But fault_in_readable succeeds because buf +\nfx_sw->xstate_size is within the still mapped area, so it goes back and\ntries xrstor again. It will spin in this loop forever.\n\nInstead, fault in the maximum size which can be touched by XRSTOR (taken\nfrom fpstate->user_size).\n\n[ dhansen: tweak subject / changelog ]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: x86/fpu: dejar de depender del espacio de usuario para que la información falle en el búfer xsave Antes de este cambio, el tamaño esperado del búfer de espacio de usuario se tomaba de fx_sw-&gt;xstate_size. fx_sw-&gt;xstate_size se puede cambiar desde el espacio de usuario, por lo que es posible construir un marco sigreturn donde: * fx_sw-&gt;xstate_size es más pequeño que el tamaño requerido por los bits válidos en fx_sw-&gt;xfeatures. * el espacio de usuario desasigna partes del búfer fpu de sigrame para que no se pueda acceder a todo el búfer requerido por xrstor. En este caso, xrstor intenta restaurar y accede al área no asignada, lo que genera una falla. Pero falla_in_readable tiene éxito porque buf + fx_sw-&gt;xstate_size está dentro del área aún mapeada, por lo que regresa e intenta xrstor nuevamente. Girará en este bucle para siempre. En cambio, falla en el tamaño máximo que XRSTOR puede tocar (tomado de fpstate-&gt;user_size). [dhansen: modificar asunto/registro de cambios]","source":"nvd"}],"published":"2024-02-24T14:56:57.628Z","modified":"2026-06-17T07:17:52.407Z","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-835"],"affected":[{"ranges":[{"type":"git","introduced":"fcb3635f5018e53024c6be3c3213737f469f74ff","fixed":"8bd3eee7720c14b59a206bd05b98d7586bccf99a","status":"affected"},{"type":"git","introduced":"fcb3635f5018e53024c6be3c3213737f469f74ff","fixed":"627339cccdc9166792ecf96bc3c9f711a60ce996","status":"affected"},{"type":"git","introduced":"fcb3635f5018e53024c6be3c3213737f469f74ff","fixed":"b2479ab426cef7ab79a13005650eff956223ced2","status":"affected"},{"type":"git","introduced":"fcb3635f5018e53024c6be3c3213737f469f74ff","fixed":"627e28cbb65564e55008315d9e02fbb90478beda","status":"affected"},{"type":"git","introduced":"fcb3635f5018e53024c6be3c3213737f469f74ff","fixed":"d877550eaf2dc9090d782864c96939397a3c6835","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.150","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.79","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.18","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.6","lastAffected":"6.7.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.8","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":"5.14.0","fixed":"5.15.150"},{"status":"affected","introduced":"5.16.0","fixed":"6.1.79"},{"status":"affected","introduced":"6.2.0","fixed":"6.6.18"},{"status":"affected","introduced":"6.7.0","fixed":"6.7.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8bd3eee7720c14b59a206bd05b98d7586bccf99a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/627339cccdc9166792ecf96bc3c9f711a60ce996","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2479ab426cef7ab79a13005650eff956223ced2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/627e28cbb65564e55008315d9e02fbb90478beda","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d877550eaf2dc9090d782864c96939397a3c6835","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EZOU3745CWCDZ7EMKMXB2OEEIB5Q3IWM/","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-05T22:13:53.146Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26603","url":"https://www.cve.org/CVERecord?id=CVE-2024-26603","licence":"CVE Terms of Use","modified":"2026-05-11T20:00:37.295Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26603","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26603","licence":"Public domain","modified":"2026-06-17T07:17:52.407Z"}],"updatedAt":"2026-11-25T22:58:37.059Z","epss":{"score":0.00278,"percentile":0.21722,"date":"2026-12-01T12:00:22.000Z"}}