{"id":"CVE-2025-40126","aliases":["CVE-2025-40126"],"related":[],"kind":"vulnerability","state":"published","title":"sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC\n\nThe referenced commit introduced exception handlers on user-space memory\nreferences in copy_from_user and copy_to_user. These handlers return from\nthe respective function and calculate the remaining bytes left to copy\nusing the current register contents. This commit fixes a couple of bad\ncalculations. This will fix the return value of copy_from_user and\ncopy_to_user in the faulting case. The behaviour of memcpy stays unchanged.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC\n\nThe referenced commit introduced exception handlers on user-space memory\nreferences in copy_from_user and copy_to_user. These handlers return from\nthe respective function and calculate the remaining bytes left to copy\nusing the current register contents. This commit fixes a couple of bad\ncalculations. This will fix the return value of copy_from_user and\ncopy_to_user in the faulting case. The behaviour of memcpy stays unchanged.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsparc: corrige la notificación precisa de excepciones en copy_{from_to}_user para UltraSPARC\n\nEl commit referenciado introdujo manejadores de excepciones en referencias de memoria de espacio de usuario en copy_from_user y copy_to_user. Estos manejadores regresan de la función respectiva y calculan los bytes restantes por copiar utilizando el contenido actual del registro. Este commit corrige un par de cálculos erróneos. Esto corregirá el valor de retorno de copy_from_user y copy_to_user en el caso de fallo. El comportamiento de memcpy permanece sin cambios.","source":"nvd"}],"published":"2025-11-12T10:23:20.460Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"0bf3dc3a2156f1c5ddaba4b85d09767874634114","status":"affected"},{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"41c18baee66134e6ef786eb075c1b6adb22432b0","status":"affected"},{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"59424dc0d0e044b2eb007686a4724ddd91d57db5","status":"affected"},{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"9b137f277cc3297044aabd950f589e505d30104c","status":"affected"},{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"674ff598148a28bae0b5372339de56f2abf0b1d1","status":"affected"},{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"7de3a75bbc8465d816336c74d50109e73501efab","status":"affected"},{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"57c278500fce3cd4e1c540700c0b05426a958393","status":"affected"},{"type":"git","introduced":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","fixed":"4fba1713001195e59cfc001ff1f2837dab877efb","status":"affected"},{"type":"git","version":"1731d90d8a558ecb20cdee0c2c001ae8e15c251d","status":"affected"},{"type":"git","version":"b0580eadc19ff3a617a7d07cfaf2a985153c114e","status":"affected"},{"type":"semver","introduced":"4.4.34","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.8.10","fixed":"4.9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"5.4.301","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.246","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.195","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.156","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.112","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.53","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","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/0bf3dc3a2156f1c5ddaba4b85d09767874634114","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41c18baee66134e6ef786eb075c1b6adb22432b0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59424dc0d0e044b2eb007686a4724ddd91d57db5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b137f277cc3297044aabd950f589e505d30104c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/674ff598148a28bae0b5372339de56f2abf0b1d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7de3a75bbc8465d816336c74d50109e73501efab","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57c278500fce3cd4e1c540700c0b05426a958393","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fba1713001195e59cfc001ff1f2837dab877efb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40126","url":"https://www.cve.org/CVERecord?id=CVE-2025-40126","licence":"CVE Terms of Use","modified":"2026-05-23T16:01:29.763Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40126","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40126","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.545Z","epss":{"score":0.0023,"percentile":0.14754,"date":"2026-12-01T12:00:22.000Z"}}