CVE Catalog

CVE-2025-40112

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.15%

5th percentile - higher than 5% of all known CVEs

Summary

In the Linux kernel for SPARC architecture on Niagara processors, a bug was found in copy_from_user and copy_to_user functions. Exception handling had incorrect calculations and a broken epilogue, potentially leading to wrong return values and crashes.

Risk Assessment

The bug can cause system crashes (kernel panic) or unpredictable behavior of applications using user-space copy operations on SPARC Niagara platforms.

Recommendation

Immediately update the Linux kernel to a version containing the fix for this CVE.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS