Critical Information Leak in Linux Kernel - CVE-2025-40035

linux Updated 04 Nov 2025

Summary

28/10/2025
N/A
No i
Unrated
Not published

DEBIAN-CVE-2025-40035: In the Linux kernel, the following vulnerability has been resolved: Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak Struct ff_effect_compat is embedded twice inside uinput_ff_upload_compat, con... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. It is widely used across various platforms, including servers, desktops, and embedded systems. The kernel's functionality includes process management, memory management, device drivers, and system calls. This vulnerability specifically affects the uinput subsystem, which allows user-space applications to create and handle input devices.

Vulnerability Detail

In the Linux kernel, a vulnerability identified as CVE-2025-40035 has been discovered in the uinput subsystem. This issue arises from the struct ff_effect_compat being embedded twice within uinput_ff_upload_compat, leading to internal padding and alignment issues. Specifically, there exists a hole after struct ff_replay, which, if not properly initialized, can result in the copy_to_user() function leaking sensitive stack data to user-space applications. This could potentially expose sensitive information and compromise system security.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can manually initialize the ff_up_compat structure to zero before filling in valid fields. This can be done by adding the following code snippet in the relevant section of the kernel code:

memset(&ff_up_compat, 0, sizeof(ff_up_compat));

This will help mitigate the risk of information leakage until the system can be updated.

Conclusion

CVE-2025-40035 represents a significant security risk within the Linux kernel, specifically affecting the uinput subsystem. It is crucial for users to update their systems promptly to mitigate the risk of information leakage. Implementing the provided workaround can serve as a temporary measure until the system is fully patched.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-40035 is a vulnerability in the Linux kernel that can lead to information leakage due to improper initialization of a data structure in the uinput subsystem.

If exploited, this vulnerability could allow malicious user-space applications to access sensitive stack data, potentially compromising system security.

The vulnerability affects multiple versions of the Linux package across Debian ecosystems, including Debian 11, 12, 13, and 14.

You can use Vulert, a tool that monitors open-source vulnerabilities, to check if your application is affected by CVE-2025-40035. Visit Vulert Scanner to use the Vulert playground without any signup.

If an immediate update is not possible, consider implementing the provided workaround to mitigate the risk of information leakage until you can apply the necessary updates.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback