sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada · < 7de3a75bbc8465d816336c74d50109e73501efab| 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 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.
From the CVE record · Linux
On UltraSPARC, the Linux kernel's copy_from_user and copy_to_user routines can report the wrong number of bytes remaining when a user-space memory reference faults. The input does not establish whether an attacker can trigger or exploit this behavior, or specify authentication or user-interaction requirements.
Engineers running the Linux kernel on UltraSPARC should check their installations; affected versions are not specified.