CVE-2025-40126
sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC
Mitigation
- No fix listed yet: follow the vendor advisory.
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
Vulnerability facts
- Affected
- Linux >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 0bf3dc3a2156f1c5ddaba4b85d09767874634114; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 41c18baee66134e6ef786eb075c1b6adb22432b0; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 59424dc0d0e044b2eb007686a4724ddd91d57db5; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 9b137f277cc3297044aabd950f589e505d30104c; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 674ff598148a28bae0b5372339de56f2abf0b1d1; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 7de3a75bbc8465d816336c74d50109e73501efab; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 57c278500fce3cd4e1c540700c0b05426a958393; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 4fba1713001195e59cfc001ff1f2837dab877efb; 1731d90d8a558ecb20cdee0c2c001ae8e15c251d; b0580eadc19ff3a617a7d07cfaf2a985153c114e; …; Linux 4.9
- Fixed in
- Linux 0bf3dc3a2156f1c5ddaba4b85d09767874634114, Linux 41c18baee66134e6ef786eb075c1b6adb22432b0, Linux 59424dc0d0e044b2eb007686a4724ddd91d57db5, Linux 9b137f277cc3297044aabd950f589e505d30104c, Linux 674ff598148a28bae0b5372339de56f2abf0b1d1, Linux 7de3a75bbc8465d816336c74d50109e73501efab, Linux 57c278500fce3cd4e1c540700c0b05426a958393, Linux 4fba1713001195e59cfc001ff1f2837dab877efb
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 0bf3dc3a2156f1c5ddaba4b85d09767874634114; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 41c18baee66134e6ef786eb075c1b6adb22432b0; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 59424dc0d0e044b2eb007686a4724ddd91d57db5; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 9b137f277cc3297044aabd950f589e505d30104c; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 674ff598148a28bae0b5372339de56f2abf0b1d1; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 7de3a75bbc8465d816336c74d50109e73501efab; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 57c278500fce3cd4e1c540700c0b05426a958393; >= cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, < 4fba1713001195e59cfc001ff1f2837dab877efb; 1731d90d8a558ecb20cdee0c2c001ae8e15c251d; b0580eadc19ff3a617a7d07cfaf2a985153c114e; … | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Other
- https://git.kernel.org/stable/c/0bf3dc3a2156f1c5ddaba4b85d09767874634114
- https://git.kernel.org/stable/c/41c18baee66134e6ef786eb075c1b6adb22432b0
- https://git.kernel.org/stable/c/59424dc0d0e044b2eb007686a4724ddd91d57db5
- https://git.kernel.org/stable/c/9b137f277cc3297044aabd950f589e505d30104c
- https://git.kernel.org/stable/c/674ff598148a28bae0b5372339de56f2abf0b1d1
- https://git.kernel.org/stable/c/7de3a75bbc8465d816336c74d50109e73501efab
- https://git.kernel.org/stable/c/57c278500fce3cd4e1c540700c0b05426a958393
- https://git.kernel.org/stable/c/4fba1713001195e59cfc001ff1f2837dab877efb
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.