{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40126","id":"CVE-2025-40126","title":"sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC","description":"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 content","descriptionLong":"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.","published":"2025-11-12T10:23:20.460Z","updated":"2026-11-17T07:03:30.383357205Z","reserved":"2025-04-16T07:20:57.169Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"0bf3dc3a2156f1c5ddaba4b85d09767874634114","status":"affected","versionType":"git"},{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"41c18baee66134e6ef786eb075c1b6adb22432b0","status":"affected","versionType":"git"},{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"59424dc0d0e044b2eb007686a4724ddd91d57db5","status":"affected","versionType":"git"},{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"9b137f277cc3297044aabd950f589e505d30104c","status":"affected","versionType":"git"},{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"674ff598148a28bae0b5372339de56f2abf0b1d1","status":"affected","versionType":"git"},{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"7de3a75bbc8465d816336c74d50109e73501efab","status":"affected","versionType":"git"},{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"57c278500fce3cd4e1c540700c0b05426a958393","status":"affected","versionType":"git"},{"version":"cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada","lessThan":"4fba1713001195e59cfc001ff1f2837dab877efb","status":"affected","versionType":"git"},{"version":"1731d90d8a558ecb20cdee0c2c001ae8e15c251d","status":"affected","versionType":"git"},{"version":"b0580eadc19ff3a617a7d07cfaf2a985153c114e","status":"affected","versionType":"git"},{"version":"4.4.34","lessThan":"4.5","status":"affected","versionType":"semver"},{"version":"4.8.10","lessThan":"4.9","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","lessThan":"4.9","status":"unaffected","versionType":"semver"},{"version":"5.4.301","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.246","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.195","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.156","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.112","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.53","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.3","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/0bf3dc3a2156f1c5ddaba4b85d09767874634114","tags":["web"]},{"url":"https://git.kernel.org/stable/c/41c18baee66134e6ef786eb075c1b6adb22432b0","tags":["web"]},{"url":"https://git.kernel.org/stable/c/59424dc0d0e044b2eb007686a4724ddd91d57db5","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9b137f277cc3297044aabd950f589e505d30104c","tags":["web"]},{"url":"https://git.kernel.org/stable/c/674ff598148a28bae0b5372339de56f2abf0b1d1","tags":["web"]},{"url":"https://git.kernel.org/stable/c/7de3a75bbc8465d816336c74d50109e73501efab","tags":["web"]},{"url":"https://git.kernel.org/stable/c/57c278500fce3cd4e1c540700c0b05426a958393","tags":["web"]},{"url":"https://git.kernel.org/stable/c/4fba1713001195e59cfc001ff1f2837dab877efb","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40126.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40126","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0023,"epssPercentile":0.13942,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40126","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40126","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40126","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-40126","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}