Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40112

published high CVSS 3.1 · 7.8

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

Published
12 Nov 2025, 10:23:16 UTC
Updated
05 Aug 2026, 12:07:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 05440320ea3e249d5f984918f2bf51210c1a7c03 · 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 7823fc4d8ab5e57f8db7806ff2530c03c166c4bb · 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 37547d8e6eba87507279ee3dfddfd9dc46335454 · 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < a365ee556e45f780ee322b349a06efdad0c1458f · 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 8cdeb5e482d3fdce7e825444b6ca3865e24c0228 · 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < a90ce516a73dbe087f9bf3dbf311301a58d125c6 · 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 088c5098ec6d6b0396edfbf3dad3e81de8469c1c · 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 0b67c8fc10b13a9090340c5f8a37d308f4e1571c · bfc8be6593097cb074d3912ba2f27565cfbb7d6e · a15859f9d8396cce7c55ccdb7e75f70f14cbc349 · 4.4.34 to < 4.5 · 4.8.10 to < 4.9 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.9 (affected) · 0 to < 4.9 (unaffected · semver) · 5.4.301 through 5.4.* (unaffected · semver) · 5.10.246 through 5.10.* (unaffected · semver) · 5.15.195 through 5.15.* (unaffected · semver) · 6.1.156 through 6.1.* (unaffected · semver) · 6.6.112 through 6.6.* (unaffected · semver) · 6.12.53 through 6.12.* (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bullseye linux-6.1 Advisory build 6.1.158-1~deb11u1 DLA-4379-1
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1100 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-aws-5.15-headers-5.15.0-1100 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu focal linux-aws-5.15-tools-5.15.0-1100 Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1110 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-azure-5.15-headers-5.15.0-1110 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-azure-5.15-tools-5.15.0-1110 Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-buildinfo-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-buildinfo-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-buildinfo-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-buildinfo-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-buildinfo-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-buildinfo-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-buildinfo-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-buildinfo-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-buildinfo-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-cloud-tools-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-cloud-tools-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-cloud-tools-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-cloud-tools-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-cloud-tools-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-gcp-5.15 Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-gcp-5.15-headers-5.15.0-1100 Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-gcp-5.15-tools-5.15.0-1100 Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-headers-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-headers-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-headers-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-headers-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-headers-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-headers-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-headers-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-headers-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-headers-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-headers-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-hwe-5.15 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-hwe-5.15-cloud-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-hwe-5.15-headers-5.15.0-170 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-hwe-5.15-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-ibm-5.15 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-ibm-5.15-headers-5.15.0-1094 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-ibm-5.15-source-5.15.0 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-ibm-5.15-tools-5.15.0-1094 Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-image-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-image-unsigned-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-image-unsigned-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-image-unsigned-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-image-unsigned-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-image-unsigned-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-image-unsigned-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-image-unsigned-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-image-unsigned-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-intel-iotg-5.15 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-5.15.0-1095 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-common Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-headers-5.15.0-1095 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-tools-5.15.0-1095 Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-tools-common Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-intel-iotg-5.15-tools-host Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-lowlatency-hwe-5.15 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-lowlatency-hwe-5.15-headers-5.15.0-170 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-lowlatency-hwe-5.15-tools-5.15.0-170 Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-modules-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-modules-5.15.0-1052-nvidia-tegra-rt Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-modules-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-modules-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-modules-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-modules-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-modules-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-modules-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-modules-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-generic-64k Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-generic-lpae Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-lowlatency Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-modules-5.15.0-170-lowlatency-64k Advisory build 5.15.0-170.180~20.04.1 USN-8033-1
Ubuntu focal linux-modules-extra-5.15.0-1052-nvidia-tegra Advisory build 5.15.0-1052.52~20.04.2 USN-8034-1
Ubuntu focal linux-modules-extra-5.15.0-1094-ibm Advisory build 5.15.0-1094.97~20.04.1 USN-8033-1
Ubuntu focal linux-modules-extra-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-modules-extra-5.15.0-1097-oracle Advisory build 5.15.0-1097.103~20.04.1 USN-8033-5
Ubuntu focal linux-modules-extra-5.15.0-1100-aws Advisory build 5.15.0-1100.107~20.04.2 USN-8033-4
Ubuntu focal linux-modules-extra-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5
Ubuntu focal linux-modules-extra-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-modules-extra-5.15.0-170-generic Advisory build 5.15.0-170.180~20.04.3 USN-8033-1
Ubuntu focal linux-modules-involflt-5.15.0-1110-azure Advisory build 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu focal linux-modules-iwlwifi-5.15.0-1095-intel-iotg Advisory build 5.15.0-1095.101~20.04.1 USN-8033-7
Ubuntu focal linux-modules-iwlwifi-5.15.0-1100-gcp Advisory build 5.15.0-1100.109~20.04.1 USN-8033-5

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

36

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The fault must occur on the calling process's own user-space buffer during a syscall, so the attacker needs local execution to issue syscalls with a deliberately unmapped/PROT_NONE user address. No remote or adjacent-network path can drive copy_from_user/copy_to_user faults on behalf of another task. AC:L - The attacker fully controls every precondition — mmap a buffer, punch a PROT_NONE/unmapped page, and pick the length and alignment that steer the copy into the buggy 16-byte or unaligned loop; the broken __restore_asi epilogue is hit on every fault regardless. No race, no memory-layout luck, and the Niagara copy routines are auto-selected by CPU type with no special kernel config. PR:L - Any unprivileged local user can pass a partially-invalid user pointer to ordinary syscalls such as read(), write(), sendmsg() or ioctl(); no capability, namespace or filesystem privilege is involved. UI:N - The attacking process triggers the faulting copy entirely on its own via a syscall; no action by another user or administrator is needed. S:U - The corruption is confined to the kernel of the running system — no hypervisor, IOMMU or sandbox boundary is crossed. C:H - The under-reported remainder leaves 8–16 bytes of the kernel destination buffer unzeroed by _inline_copy_from_user()'s memset and treated as valid user data, repeatedly leaking stale kernel heap/stack contents into buffers that syscalls process or write back; the missing register-window restore additionally exposes kernel pointers as the copy's return value. I:H - The dead `restore` makes raw_copy_from_user return a destination pointer instead of a byte count, so memset(to + (n - res), 0, res) becomes an unbounded out-of-bounds kernel write, and the unpopped register window leaves the caller with a corrupted %sp/%fp and a wrong saved return address — memory corruption with attacker-influenced pointers and hijackable control flow. A:H - Returning without restoring the register window desynchronizes the entire SPARC window stack and the caller's stack frame, and the giant memset length guarantees a wild write; the result is an immediate kernel oops/panic on every triggered fault, trivially repeatable by an unprivileged user.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 05440320ea3e249d5f984918f2bf51210c1a7c03 (affected · git)7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 7823fc4d8ab5e57f8db7806ff2530c03c166c4bb (affected · git)7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 37547d8e6eba87507279ee3dfddfd9dc46335454 (affected · git)7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < a365ee556e45f780ee322b349a06efdad0c1458f (affected · git)7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 8cdeb5e482d3fdce7e825444b6ca3865e24c0228 (affected · git)7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < a90ce516a73dbe087f9bf3dbf311301a58d125c6 (affected · git)7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 088c5098ec6d6b0396edfbf3dad3e81de8469c1c (affected · git)7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e to < 0b67c8fc10b13a9090340c5f8a37d308f4e1571c (affected · git)bfc8be6593097cb074d3912ba2f27565cfbb7d6e (affected · git)a15859f9d8396cce7c55ccdb7e75f70f14cbc349 (affected · git)4.4.34 to < 4.5 (affected · semver)4.8.10 to < 4.9 (affected · semver)Default: unaffected Linux · cna
Linux Linux 4.9 (affected)0 to < 4.9 (unaffected · semver)5.4.301 through 5.4.* (unaffected · semver)5.10.246 through 5.10.* (unaffected · semver)5.15.195 through 5.15.* (unaffected · semver)6.1.156 through 6.1.* (unaffected · semver)6.6.112 through 6.6.* (unaffected · semver)6.12.53 through 6.12.* (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
fb60dcbf24e1e185b8ef702791dc5455ac0d0fea406911fbc56c248df9a5c98a
Ingested
23 Sep 2026, 08:48:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected