{"id":"CVE-2025-40126","published":"2025-11-12T10:23:20Z","modified":"2026-05-23T16:01:29Z","title":"sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0023,"percentile":0.13653,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0bf3dc3a2156f1c5ddaba4b85d09767874634114","tags":[]},{"url":"https://git.kernel.org/stable/c/41c18baee66134e6ef786eb075c1b6adb22432b0","tags":[]},{"url":"https://git.kernel.org/stable/c/59424dc0d0e044b2eb007686a4724ddd91d57db5","tags":[]},{"url":"https://git.kernel.org/stable/c/9b137f277cc3297044aabd950f589e505d30104c","tags":[]},{"url":"https://git.kernel.org/stable/c/674ff598148a28bae0b5372339de56f2abf0b1d1","tags":[]},{"url":"https://git.kernel.org/stable/c/7de3a75bbc8465d816336c74d50109e73501efab","tags":[]},{"url":"https://git.kernel.org/stable/c/57c278500fce3cd4e1c540700c0b05426a958393","tags":[]},{"url":"https://git.kernel.org/stable/c/4fba1713001195e59cfc001ff1f2837dab877efb","tags":[]}],"priority":{"score":2.7,"factors":[{"name":"EPSS percentile","points":2.73}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 0bf3dc3a2156f1c5ddaba4b85d09767874634114",">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 41c18baee66134e6ef786eb075c1b6adb22432b0",">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 59424dc0d0e044b2eb007686a4724ddd91d57db5",">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 9b137f277cc3297044aabd950f589e505d30104c",">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 674ff598148a28bae0b5372339de56f2abf0b1d1",">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 7de3a75bbc8465d816336c74d50109e73501efab",">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 57c278500fce3cd4e1c540700c0b05426a958393",">= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 4fba1713001195e59cfc001ff1f2837dab877efb","1731d90d8a558ecb20cdee0c2c001ae8e15c251d","b0580eadc19ff3a617a7d07cfaf2a985153c114e"]},{"vendor":"Linux","product":"Linux","versions":["4.9"]}],"euvd":{"id":"EUVD-2025-124957","exploited":false,"provenance":"source"}}