Skip to main content

Linux Kernel CVE-2025-40112

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
    Local access on SPARC Niagara host
  2. Delivery
    Invoke syscall with faulting user buffer
  3. Exploit
    Trigger fault in copy_from/to_user
  4. Execution
    Buggy exception epilogue miscalculates residual
  5. Impact
    Kernel crash or wrong return value

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the target to be running the Linux kernel on SPARC Niagara / UltraSPARC T-series hardware (or emulation of it) - the buggy code is in the SPARC-specific copy_{from,to}_user assembly and does not exist on x86/ARM/other architectures. The attacker needs local access as a low-privileged user (CVSS PR:L) able to invoke syscalls with user buffers, and must cause a page fault mid-copy to reach the faulty exception handler. Limiting factors: no remote vector (AV:L), no network exposure, and the extreme rarity of SPARC deployments sharply constrains realistic exploitation; there is no default-configuration remote path.

Impact

The Linux CNA-assigned CVSS is 7.8 (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H), but the signals conflict with the described behavior: the description centers on preventing crashes and ensuring correct return values in the faulting case, which reads as a denial-of-service / correctness bug (matching the 'Denial Of Service' tag) rather than a clean high-confidentiality/integrity/availability compromise. EPSS is very low (0.07%, 21st percentile), it is not on CISA KEV, and no POC is known - consistent with a low real-world exploitation likelihood. Most importantly, the code is SPARC Niagara specific, so despite 'Linux kernel' being ubiquitous, the actual attack surface is confined to a rare hardware/architecture population. Net assessment: patch as part of routine kernel hygiene, but this is a low real-priority issue for the overwhelming majority of environments (which do not run SPARC), and the headline 7.8 overstates practical risk here.

Exploit ScenarioDerived

A local, low-privileged user on a SPARC Niagara Linux host issues syscalls that pass user-space buffers spanning an unmapped or protected page, forcing a fault inside copy_from_user/copy_to_user. The buggy exception epilogue then miscomputes the residual byte count or corrupts the unwind, crashing the kernel (denial of service) and potentially yielding an incorrect success indication for a partially completed copy. No public exploit is known, and triggering requires the specific SPARC code path.

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

Incorrect fault-handling in the SPARC (Niagara) implementation of copy_from_user and copy_to_user in the Linux kernel causes wrong remaining-byte calculations and a broken epilogue when a user-space memory reference faults, leading to kernel crashes and incorrect return values from these core copy routines. The flaw is SPARC-architecture specific (Niagara/UltraSPARC T-series) and is fixed upstream; it is tagged as a denial-of-service issue. No public exploit identified at time of analysis, and EPSS is very low (0.07%, 21st percentile).

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

Incorrect kernel-to-user copy fault handling in the Linux kernel on SPARC (Niagara/UltraSPARC T-series) processors causes copy_from_user() and copy_to_user() to compute wrong remaining-byte counts and execute a broken epilogue when a user-space memory access faults. On affected SPARC builds an unprivileged local process can trigger these miscalculations to crash the kernel or cause the wrong number of bytes to be reported as copied, which can leave kernel or user buffers in an inconsistent state. The issue is tracked with a 7.8 CVSS (local, low-privilege) and is tagged as Denial of Service; EPSS is low (0.07%, 21st percentile) and there is no public exploit identified at time of analysis.

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 Niagara The referenced commit introduced exception handlers on.

RemediationAI

Apply the vendor-released kernel update: on Ubuntu, upgrade to the fixed kernel packages per USN-8126-1 and USN-8125-1 and reboot; on other distributions, pull the stable release containing the referenced git.kernel.org fix commits (e.g. 7823fc4d8ab5 / a90ce516a73d and siblings). Because the fix is architecture-specific assembly with no runtime toggle, there is no clean feature-level workaround; the only meaningful compensating control is to limit local untrusted users on affected SPARC systems and restrict who can run code that stresses user-copy fault paths, accepting that this does not remove the defect and is only relevant on SPARC hardware. Systems on non-SPARC architectures require no action for this specific issue.

Affected ProductsAI

The Linux kernel on SPARC (Niagara / UltraSPARC T-series) architecture, in versions containing the referenced exception-handler commit up to the fixing commits. Fixed builds are distributed across the stable branches referenced at git.kernel.org (commits 05440320ea3e, 088c5098ec6d, 0b67c8fc10b1, 37547d8e6eba, 7823fc4d8ab5, 8cdeb5e482d3, a365ee556e45, a90ce516a73d). Distribution-level fixed packages are published by Ubuntu in USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1); additional tracking is at https://vuldb.com/vuln/332131. Non-SPARC architectures are not affected by this code path.

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 bug lives in the SPARC-specific assembly for the kernel's uaccess primitives copy_from_user/copy_to_user on Niagara-class CPUs. A prior commit added exception handlers so that a fault on a user-space address returns from the copy routine and computes the number of bytes not copied from live register state; this patch corrects several arithmetic errors and a broken handler epilogue in that unwinding path. The affected class is essentially improper error/return-value handling in a kernel/user memory-boundary primitive (no CWE assigned by NVD). Because copy_{from,to}_user must return the exact count of bytes that could not be copied, a miscalculation can leave the kernel believing a copy succeeded when it partially faulted, or it can corrupt control flow enough to crash. The NVD references are the eight git.kernel.org stable-branch commits carrying the fix across kernel versions; distro coverage is provided by Ubuntu USN-8126-1 and USN-8125-1.

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 5.3 MEDIUM

Local low-priv user on rare SPARC hardware must force a mid-copy fault (AC:H); primary impact is kernel crash (A:H) with possible minor info leak from wrong byte count (C:L).

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:N/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:18 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:17 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 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.

Executive ViewAI

Why It Matters

CVE-2025-40112 is a kernel fault-handling defect in Linux systems running SPARC architecture (Niagara/UltraSPARC T-series processors) that can cause kernel crashes and memory copy failures. While scored HIGH severity, the vulnerability affects only SPARC-based systems with no public exploit identified and an extremely low exploitation probability (0.1% EPSS); organizations with SPARC infrastructure should patch promptly.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Prevalence
Rare
SPARC Niagara-specific kernel code; negligible modern production footprint
Data Quality
5 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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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