CVE-2025-39865
📋 TL;DR
A NULL pointer dereference vulnerability in the Linux kernel's TEE (Trusted Execution Environment) subsystem allows local attackers to cause a kernel panic and system crash. This affects systems using the TEE subsystem, particularly those with OP-TEE implementations. The vulnerability requires local access to trigger.
💻 Affected Systems
- Linux kernel
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Local denial of service causing kernel panic and system crash, potentially leading to data loss or service disruption.
Likely Case
Local denial of service through kernel panic triggered by a malicious user or process with access to TEE functionality.
If Mitigated
Minimal impact if proper access controls restrict local user privileges and TEE subsystem usage.
🎯 Exploit Status
Requires local access and ability to trigger TEE operations. The crash occurs during system shutdown sequence.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Multiple stable kernel versions with commits: 25e315bc8ad363bd1194e49062f183ad4011957e, 4377eac565c297fdfccd2f8e9bf94ee84ff6172f, 5e07a4235bb85d9ef664411e4ff4ac34783c18ff, 963fca19fe34c496e04f7dd133b807b76a5434ca, add1ecc8f3ad8df22e3599c5c88d7907cc2a3079
Vendor Advisory: https://git.kernel.org/stable/c/25e315bc8ad363bd1194e49062f183ad4011957e
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from your distribution. 2. Check if TEE subsystem is enabled in your kernel configuration. 3. Reboot system after kernel update.
🔧 Temporary Workarounds
Disable TEE subsystem
LinuxDisable the TEE subsystem if not required for your use case
Check if TEE is enabled: grep CONFIG_TEE /boot/config-$(uname -r)
To disable: Recompile kernel without CONFIG_TEE=y
🧯 If You Can't Patch
- Restrict local user access to systems using TEE functionality
- Implement strict access controls and monitoring for TEE-related operations
🔍 How to Verify
Check if Vulnerable:
Check kernel version and if TEE subsystem is enabled: uname -r && grep CONFIG_TEE /boot/config-$(uname -r)
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is updated to patched version and check commit history includes the fix commits
📡 Detection & Monitoring
Log Indicators:
- Kernel panic logs mentioning tee_shm_put
- System crash during shutdown with TEE-related stack traces
- OOM or system instability around TEE operations
Network Indicators:
- No network indicators - local vulnerability only
SIEM Query:
Search for kernel panic events with 'tee_shm_put' or 'TEE' in stack traces
🔗 References
- https://git.kernel.org/stable/c/25e315bc8ad363bd1194e49062f183ad4011957e
- https://git.kernel.org/stable/c/4377eac565c297fdfccd2f8e9bf94ee84ff6172f
- https://git.kernel.org/stable/c/5e07a4235bb85d9ef664411e4ff4ac34783c18ff
- https://git.kernel.org/stable/c/963fca19fe34c496e04f7dd133b807b76a5434ca
- https://git.kernel.org/stable/c/add1ecc8f3ad8df22e3599c5c88d7907cc2a3079
- https://git.kernel.org/stable/c/e4a718a3a47e89805c3be9d46a84de1949a98d5d
- https://git.kernel.org/stable/c/f266188603c34e6e234fb0dfc3185f0ba98d71b7
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html