Skip to main content
← All vulnerabilities
CVE-2025-40112

sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.5, 4.9
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara 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 and a broken epilogue in the exception handlers. This will prevent crashes and ensure correct return values of copy_from_user and copy_to_user in the faulting case. The behaviour of memcpy stays unchanged.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 4.4.34 · fixed in 4.5; From 4.8.10 · fixed in 4.9

  • Linux Linux

    4.9

References 8

git.kernel.org