# CVE-2025-40126: sparc: fix accurate exception reporting in copy\_{from\_to}\_user for UltraSPARC

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-11-12T10:23:20.460Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 0bf3dc3a2156f1c5ddaba4b85d09767874634114; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 41c18baee66134e6ef786eb075c1b6adb22432b0; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 59424dc0d0e044b2eb007686a4724ddd91d57db5; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 9b137f277cc3297044aabd950f589e505d30104c; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 674ff598148a28bae0b5372339de56f2abf0b1d1; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 7de3a75bbc8465d816336c74d50109e73501efab; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 57c278500fce3cd4e1c540700c0b05426a958393; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 4fba1713001195e59cfc001ff1f2837dab877efb; 1731d90d8a558ecb20cdee0c2c001ae8e15c251d; b0580eadc19ff3a617a7d07cfaf2a985153c114e; …
- Anyone running Linux 4.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

sparc: fix accurate exception reporting in copy\_{from\_to}\_user for UltraSPARC

The referenced commit introduced exception handlers on user-space memory
references in copy\_from\_user and copy\_to\_user. These handlers return from
the respective function and calculate the remaining bytes left to copy
using the current register contents. This commit fixes a couple of bad
calculations. This will fix the return value of copy\_from\_user and
copy\_to\_user in the faulting case. The behaviour of memcpy stays unchanged.

## Affected and fixed versions

- Linux: \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 0bf3dc3a2156f1c5ddaba4b85d09767874634114; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 41c18baee66134e6ef786eb075c1b6adb22432b0; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 59424dc0d0e044b2eb007686a4724ddd91d57db5; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 9b137f277cc3297044aabd950f589e505d30104c; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 674ff598148a28bae0b5372339de56f2abf0b1d1; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 7de3a75bbc8465d816336c74d50109e73501efab; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 57c278500fce3cd4e1c540700c0b05426a958393; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 4fba1713001195e59cfc001ff1f2837dab877efb; 1731d90d8a558ecb20cdee0c2c001ae8e15c251d; b0580eadc19ff3a617a7d07cfaf2a985153c114e; … (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40126. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40126.md
Affected: Linux >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 0bf3dc3a2156f1c5ddaba4b85d09767874634114; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 41c18baee66134e6ef786eb075c1b6adb22432b0; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 59424dc0d0e044b2eb007686a4724ddd91d57db5; >= cb736fdbb208eb3420f1a2e…
Fixed in: Linux 0bf3dc3a2156f1c5ddaba4b85d09767874634114, Linux 41c18baee66134e6ef786eb075c1b6adb22432b0, Linux 59424dc0d0e044b2eb007686a4724ddd91d57db5, Linux 9b137f277cc3297044aabd950f589e505d30104c, Linux 674ff598148a28bae0b5372339de56f2abf0b1d1, Linux 7de3a75bbc8465d816336c74d50109e73501efab, Linux 57c27…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40126 being exploited?

There is no confirmed exploitation: CVE-2025-40126 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40126?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40126?

Linux \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 0bf3dc3a2156f1c5ddaba4b85d09767874634114; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 41c18baee66134e6ef786eb075c1b6adb22432b0; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 59424dc0d0e044b2eb007686a4724ddd91d57db5; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 9b137f277cc3297044aabd950f589e505d30104c; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 674ff598148a28bae0b5372339de56f2abf0b1d1; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 7de3a75bbc8465d816336c74d50109e73501efab; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 57c278500fce3cd4e1c540700c0b05426a958393; \>= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, \< 4fba1713001195e59cfc001ff1f2837dab877efb; 1731d90d8a558ecb20cdee0c2c001ae8e15c251d; b0580eadc19ff3a617a7d07cfaf2a985153c114e; …; Linux 4.9.

### Is there a fix for CVE-2025-40126?

Yes. Fixed in Linux 0bf3dc3a2156f1c5ddaba4b85d09767874634114, Linux 41c18baee66134e6ef786eb075c1b6adb22432b0, Linux 59424dc0d0e044b2eb007686a4724ddd91d57db5, Linux 9b137f277cc3297044aabd950f589e505d30104c, Linux 674ff598148a28bae0b5372339de56f2abf0b1d1, Linux 7de3a75bbc8465d816336c74d50109e73501efab, Linux 57c278500fce3cd4e1c540700c0b05426a958393, Linux 4fba1713001195e59cfc001ff1f2837dab877efb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40126?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0bf3dc3a2156f1c5ddaba4b85d09767874634114>
- other: <https://git.kernel.org/stable/c/41c18baee66134e6ef786eb075c1b6adb22432b0>
- other: <https://git.kernel.org/stable/c/59424dc0d0e044b2eb007686a4724ddd91d57db5>
- other: <https://git.kernel.org/stable/c/9b137f277cc3297044aabd950f589e505d30104c>
- other: <https://git.kernel.org/stable/c/674ff598148a28bae0b5372339de56f2abf0b1d1>
- other: <https://git.kernel.org/stable/c/7de3a75bbc8465d816336c74d50109e73501efab>
- other: <https://git.kernel.org/stable/c/57c278500fce3cd4e1c540700c0b05426a958393>
- other: <https://git.kernel.org/stable/c/4fba1713001195e59cfc001ff1f2837dab877efb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40126>

HTML: <https://flawdb.com/CVE-2025-40126> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40126>
