CVE-2025-40126
sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC
Check your servers for CVE-2025-40126
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40126 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 0bf3dc3a2156f1c5ddaba4b85d09767874634114 affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 41c18baee66134e6ef786eb075c1b6adb22432b0 affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 59424dc0d0e044b2eb007686a4724ddd91d57db5 affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 9b137f277cc3297044aabd950f589e505d30104c affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 674ff598148a28bae0b5372339de56f2abf0b1d1 affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 7de3a75bbc8465d816336c74d50109e73501efab affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 57c278500fce3cd4e1c540700c0b05426a958393 affected from cb736fdbb208eb3420f1a2eb2bfc024a6e9dcada, before 4fba1713001195e59cfc001ff1f2837dab877efb affected 1731d90d8a558ecb20cdee0c2c001ae8e15c251d affected b0580eadc19ff3a617a7d07cfaf2a985153c114e affected from 4.4.34, before 4.5 affected from 4.8.10, before 4.9
Other versions: unaffected
|
| Linux |
affected 4.9 unaffected before 4.9 unaffected from 5.4.301 up to and including 5.4.* unaffected from 5.10.246 up to and including 5.10.* unaffected from 5.15.195 up to and including 5.15.* unaffected from 6.1.156 up to and including 6.1.* unaffected from 6.6.112 up to and including 6.6.* unaffected from 6.12.53 up to and including 6.12.* unaffected from 6.17.3 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40126 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40126
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40126
trivy image --scanners vuln IMAGE | grep CVE-2025-40126
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/0bf3dc3a2156f1c5ddaba4b85d09767874634114 git.kernel.org
- https://git.kernel.org/stable/c/41c18baee66134e6ef786eb075c1b6adb22432b0 git.kernel.org
- https://git.kernel.org/stable/c/59424dc0d0e044b2eb007686a4724ddd91d57db5 git.kernel.org
- https://git.kernel.org/stable/c/9b137f277cc3297044aabd950f589e505d30104c git.kernel.org
- https://git.kernel.org/stable/c/674ff598148a28bae0b5372339de56f2abf0b1d1 git.kernel.org
- https://git.kernel.org/stable/c/7de3a75bbc8465d816336c74d50109e73501efab git.kernel.org
- https://git.kernel.org/stable/c/57c278500fce3cd4e1c540700c0b05426a958393 git.kernel.org
- https://git.kernel.org/stable/c/4fba1713001195e59cfc001ff1f2837dab877efb git.kernel.org
Source: the record CVE-2025-40126 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse