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-40124

published high CVSS 3.1 · 7.8

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

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

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxee841d0aff649164080e445e84885015958d8ff4 to < fdd43fe6d286f27b826572457a89c926f97e2d3a · ee841d0aff649164080e445e84885015958d8ff4 to < 1198077606aeffb102587c6ea079ce99641c99d4 · ee841d0aff649164080e445e84885015958d8ff4 to < 1857cdca12c4aff58bf26a7005a4d02850c29927 · ee841d0aff649164080e445e84885015958d8ff4 to < 91eda032eb16e5d2be27c95584665bc555bb5a90 · ee841d0aff649164080e445e84885015958d8ff4 to < dc766c4830a7e1e1ee9d7f77d4ab344f2eb23c8e · ee841d0aff649164080e445e84885015958d8ff4 to < 5ef9c94d7110e90260c06868cf1dcf899b9f25ee · ee841d0aff649164080e445e84885015958d8ff4 to < e50377c6b3f278c9f3ef017ffce17f5fcc9dace4 · ee841d0aff649164080e445e84885015958d8ff4 to < 47b49c06eb62504075f0f2e2227aee2e2c2a58b3 · 1c7e17b1c4d60cc5aa575460f7efb73686dd3b39 · ac663c54f40b2830b1ca32d1ae9d683fe248b14c · 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 UltraSPARC III Anthony Yznaga tracked down that a BUG_ON in ext4 code with large folios enabled resulted from copy_from_user() returning impossibly large values greater than the size to be copied. This lead to __copy_from_iter() returning impossible values instead of the actual number of bytes it was able to copy. The BUG_ON has been reported in https://lore.kernel.org/r/b14f55642207e63e907965e209f6323a0df6dcee.camel@physik.fu-berlin.de 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. The exception handlers expect that %o2 has already been masked during the bulk copy loop, but the masking was performed after that loop. This will fix the return value 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 inside a `copy_{from,to}_user()` on a buffer in the attacker's own address space, which requires local `mmap`/`munmap`/`mprotect` control plus a local syscall entry (write(2), ioctl(2), etc.). No remote peer can cause a user-copy fault at a chosen offset. AC:L - Every precondition is deterministic and attacker-chosen: length ≥ 192 selects the VIS block-copy path, dst/src alignment is controllable, and the fault offset is placed exactly by unmapping or PROT_NONE-ing a page of the source buffer. There is no race and no dependence on unpredictable memory layout. PR:L - Any unprivileged local user can trigger this with ordinary `write(2)`/`read(2)`/`ioctl(2)` plus `mmap`/`munmap`; no capability, namespace trick, or privileged device access is required. UI:N - The attacking process performs the entire sequence itself — mapping the partially-valid buffer and issuing the syscall. No victim action is involved. S:U - The corruption is confined to kernel memory managed by the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The over-reported count underflows `iterate_iovec()`/`iterate_ubuf()` accounting, causing the iterator to walk past the end of the kernel iovec array and treat arbitrary kernel memory as iovec descriptors, and the resulting heap corruption primitive can be leveraged for kernel memory disclosure. I:H - `_inline_copy_from_user()`'s tail `memset(to + (n - res), 0, res)` with `res > n` wraps the pointer and zeroes up to ~n bytes of kernel heap memory *before* the destination buffer — an attacker-sized out-of-bounds write (4 KB underflow for a 4 KB copy) into adjacent slab objects, a well-known privilege-escalation primitive. A:H - The bug was reported as a hard `BUG_ON` panic in ext4's large-folio write path, and the `size_t` underflow of `iter->count`/`len` also drives runaway iteration loops — both are full kernel denial of service.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ee841d0aff649164080e445e84885015958d8ff4 to < fdd43fe6d286f27b826572457a89c926f97e2d3a (affected · git)ee841d0aff649164080e445e84885015958d8ff4 to < 1198077606aeffb102587c6ea079ce99641c99d4 (affected · git)ee841d0aff649164080e445e84885015958d8ff4 to < 1857cdca12c4aff58bf26a7005a4d02850c29927 (affected · git)ee841d0aff649164080e445e84885015958d8ff4 to < 91eda032eb16e5d2be27c95584665bc555bb5a90 (affected · git)ee841d0aff649164080e445e84885015958d8ff4 to < dc766c4830a7e1e1ee9d7f77d4ab344f2eb23c8e (affected · git)ee841d0aff649164080e445e84885015958d8ff4 to < 5ef9c94d7110e90260c06868cf1dcf899b9f25ee (affected · git)ee841d0aff649164080e445e84885015958d8ff4 to < e50377c6b3f278c9f3ef017ffce17f5fcc9dace4 (affected · git)ee841d0aff649164080e445e84885015958d8ff4 to < 47b49c06eb62504075f0f2e2227aee2e2c2a58b3 (affected · git)1c7e17b1c4d60cc5aa575460f7efb73686dd3b39 (affected · git)ac663c54f40b2830b1ca32d1ae9d683fe248b14c (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 UltraSPARC III

Provenance

Schema
5.2
Searchable
yes
Content hash
80444a03dd490cf3abc1820508671b31ac36037e7515d1323a9705816d70729b
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