In the Linux kernel, the following vulnerability has been resolved: sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara The… (CVE-2025-40112)
A vulnerability in the Linux kernel related to the sparc architecture's copy_from_user and copy_to_user functions for Niagara has been resolved. The issue involved inaccurate exception reporting due to incorrect calculations and a broken epilogue in the exception handlers. This flaw could cause crashes and incorrect return values when user-space memory references fault during these copy operations. The vulnerability does not affect memcpy behavior. It has been fixed in the Linux kernel.
AI Analysis
Technical Summary
The vulnerability CVE-2025-40112 in the Linux kernel sparc architecture involved inaccurate exception handling in the copy_from_user and copy_to_user functions for Niagara processors. Exception handlers introduced to manage user-space memory faults returned from the functions and calculated remaining bytes to copy using register contents. However, bad calculations and a broken epilogue caused incorrect return values and potential crashes. The fix corrects these calculations and the epilogue, ensuring accurate exception reporting and stable behavior during faulting cases. The memcpy function remains unaffected.
Potential Impact
This vulnerability could lead to system crashes and incorrect return values from copy_from_user and copy_to_user functions when exceptions occur during user-space memory access on sparc Niagara systems. This may impact system stability and reliability, potentially allowing denial of service or other high-impact consequences as indicated by the high severity rating.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel. Users and administrators should apply the official kernel updates that include this patch to resolve the issue. Since this is a kernel-level fix, updating to the patched kernel version is the recommended remediation. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor or Linux kernel advisory for the exact fixed version and update instructions.
In the Linux kernel, the following vulnerability has been resolved: sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara The… (CVE-2025-40112)
Description
A vulnerability in the Linux kernel related to the sparc architecture's copy_from_user and copy_to_user functions for Niagara has been resolved. The issue involved inaccurate exception reporting due to incorrect calculations and a broken epilogue in the exception handlers. This flaw could cause crashes and incorrect return values when user-space memory references fault during these copy operations. The vulnerability does not affect memcpy behavior. It has been fixed in the Linux kernel.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2025-40112 in the Linux kernel sparc architecture involved inaccurate exception handling in the copy_from_user and copy_to_user functions for Niagara processors. Exception handlers introduced to manage user-space memory faults returned from the functions and calculated remaining bytes to copy using register contents. However, bad calculations and a broken epilogue caused incorrect return values and potential crashes. The fix corrects these calculations and the epilogue, ensuring accurate exception reporting and stable behavior during faulting cases. The memcpy function remains unaffected.
Potential Impact
This vulnerability could lead to system crashes and incorrect return values from copy_from_user and copy_to_user functions when exceptions occur during user-space memory access on sparc Niagara systems. This may impact system stability and reliability, potentially allowing denial of service or other high-impact consequences as indicated by the high severity rating.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel. Users and administrators should apply the official kernel updates that include this patch to resolve the issue. Since this is a kernel-level fix, updating to the patched kernel version is the recommended remediation. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor or Linux kernel advisory for the exact fixed version and update instructions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-92f2-89hh-wf7v
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40112"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d69c2644c7f847abf0
Added to database: 07/30/2026, 15:50:46 UTC
Last enriched: 07/30/2026, 16:38:55 UTC
Last updated: 09/10/2026, 19:38:50 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.