Skip to main content

Linux Kernel CVE-2025-40124

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local unprivileged shell on UltraSPARC III host
  2. Delivery
    Invoke syscall using copy_from_user (e.g. ext4 write)
  3. Exploit
    Fault user buffer mid-copy loop
  4. Execution
    Handler returns oversized un-copied count
  5. Persist
    Kernel mis-accounts copy, hits BUG_ON
  6. Impact
    Panic/DoS or leak of uninitialized kernel memory

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local code execution as an unprivileged user (CVSS PR:L, AV:L, no user interaction) on a Linux system running a SPARC64 UltraSPARC III (Cheetah-family) processor - this hardware requirement is the key limiting factor and excludes all x86, ARM, and other architectures. The attacker must trigger a fault on a user-space memory reference during an in-flight copy_from_user/copy_to_user operation (e.g., by supplying a buffer that becomes unmapped mid-copy), which the description ties to the exception-handler path where %o2 is read before masking. The BUG_ON was specifically observed on ext4 with large folios enabled, indicating that certain filesystem/large-folio configurations make the impact readily reachable, though the underlying uaccess flaw is not filesystem-specific.

Impact

Signals are consistent and point to genuine-but-narrow risk. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H, 7.8 High) reflects that any local unprivileged process can invoke syscalls exercising copy_from_user and trigger the faulting path; the H/H/H impacts correspond to observed BUG_ON crashes (DoS) plus potential mis-accounted copies enabling corruption or uninitialized-memory disclosure (matching the 'Information Disclosure' tag). EPSS is very low (0.09%, 26th percentile) and the CVE is not in CISA KEV, so there is no evidence of active or automated exploitation. The dominant limiting factor is hardware scope: the bug only manifests on UltraSPARC III SPARC64 CPUs, which are largely obsolete, so the CVSS's platform-agnostic 7.8 overstates practical exposure for the overwhelming majority of x86/ARM Linux fleets. No SSVC decision data was supplied. Bottom line: legitimate correctness/security fix, but low real-world priority outside the small population of production SPARC systems.

Exploit ScenarioDerived

A local unprivileged user on an UltraSPARC III Linux server issues a syscall (for example a filesystem write on ext4 with large folios) whose copy_from_user is arranged to fault partway through the copy, causing the routine to return an oversized un-copied count. The kernel then mis-accounts the transfer, tripping a BUG_ON and panicking the host (denial of service) or acting on miscounted/uninitialized buffer contents, potentially disclosing kernel memory. No public proof-of-concept is identified at time of analysis, and the attack only works on the affected SPARC hardware.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jul 30, 2026

Local memory-safety mishandling in the Linux kernel's SPARC (UltraSPARC III) copy_from_user/copy_to_user routines causes these functions to return impossibly large "bytes not copied" values when a user-space access faults, because the %o2 register masking was performed after the bulk copy loop instead of before the exception handlers ran. Downstream consumers such as __copy_from_iter propagate the bogus count, which was observed triggering a BUG_ON in ext4 with large folios enabled, and can lead to kernel state corruption, information disclosure of uninitialized memory, or denial of service. No public exploit is identified at time of analysis (EPSS 0.09%, not in CISA KEV); the flaw is limited to legacy SPARC hardware.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 09:10 cvss changed CVSS 7.8

Inaccurate fault reporting in the Linux kernel's SPARC copy_from_user/copy_to_user routines on UltraSPARC III processors causes these functions to return impossibly large "uncopied" byte counts when a user-space memory reference faults, which in turn made __copy_from_iter() return bogus values and triggered a BUG_ON in ext4 with large folios enabled. The flaw stems from the exception handlers assuming the %o2 register was already masked during the bulk copy loop when masking actually happened afterward; it is architecture-specific to UltraSPARC III SPARC systems. There is no public exploit identified at time of analysis, and the EPSS score is very low (0.09%), consistent with a correctness/robustness fix rather than a widely weaponizable flaw.

v1 Mar 28, 2026 - 19:21

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.

RemediationAI

Patch available per vendor: apply the upstream stable kernel fix that moves the %o2 masking before the bulk-copy loop so the exception handlers report accurate remaining-byte counts. Ubuntu users should update to the fixed kernel packages in USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1); upstream/self-built kernels should incorporate the corresponding stable commits at https://git.kernel.org/stable/c/91eda032eb16e5d2be27c95584665bc555bb5a90 (and the sibling stable backports) and reboot into the patched image. No exact upstream tagged release number is provided in the input, so confirm the fixed version against your distribution's changelog before deployment. Because exploitation requires SPARC UltraSPARC III hardware, a practical compensating measure where patching is delayed is to prioritize or retire the affected legacy SPARC hosts and restrict untrusted local user access on them; there is no configuration toggle to disable the vulnerable copy path since it is core uaccess code, so patching is the only real fix.

Affected ProductsAI

The Linux kernel on SPARC64 / UltraSPARC III (Cheetah-class) processors is affected; the defect is in the architecture-specific copy_from_user/copy_to_user uaccess routines. Exact vulnerable version ranges are not enumerated in the provided NVD data (CPE strings were not supplied), but fixes were backported across multiple stable trees as shown by the eight git.kernel.org stable commits (e.g. https://git.kernel.org/stable/c/91eda032eb16e5d2be27c95584665bc555bb5a90 and https://git.kernel.org/stable/c/1198077606aeffb102587c6ea079ce99641c99d4). Distribution coverage is confirmed for Ubuntu via advisories USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1). Non-SPARC architectures are not affected.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The issue lives in the SPARC64 assembly implementations of copy_from_user and copy_to_user for the UltraSPARC III (Cheetah) family. A prior commit added exception (fixup) handlers on the user-space load/store instructions so that a fault during the copy returns the number of un-copied bytes computed from live register contents. Those handlers assume the length register %o2 has already been masked down during the aligned bulk-copy loop, but the masking actually happened only after the loop completed. When a fault interrupts the copy mid-loop, the handler reads an unmasked %o2 and returns a value larger than the requested size. Because the CWE is unpopulated by NVD, the root cause is best classified as an incorrect return-value/calculation error (CWE-682/CWE-393 family) in exception handling rather than a classic buffer overflow. The affected code is architecture-specific SPARC uaccess primitives - memcpy behavior is unchanged.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local unprivileged trigger (AV:L/PR:L) but requires legacy SPARC hardware and precise mid-copy fault timing (AC:H); high impact reflects observed kernel panic plus possible memory-corruption/leak.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Jul 30, 2026 - 09:11 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:10 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:31 nvd
Patch available
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A memory-safety vulnerability in the Linux kernel SPARC subsystem (CVE-2025-40124, CVSS 7.8) can cause kernel crashes or memory corruption on affected UltraSPARC III systems, with no public exploit currently identified. This vulnerability affects only legacy SPARC hardware, which is rare in modern infrastructure; most organizations should assess whether any such systems remain in use before determining priority.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 74% exploitable
Prevalence
Rare
bug only affects obsolete UltraSPARC III SPARC64 hardware, negligible modern footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy