sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e · < a90ce516a73dbe087f9bf3dbf311301a58d125c6| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s SPARC Niagara copy_from_user and copy_to_user exception handlers can miscalculate bytes left to copy and have a broken epilogue. When a user-space memory reference faults, this can cause crashes or incorrect return values. The input does not specify whether exploitation requires authentication or user interaction.
Engineers running the Linux kernel on SPARC Niagara systems should check their kernel versions; affected versions are not specified.