CVE-2025-39826
📋 TL;DR
This CVE describes a use-after-free vulnerability in the Linux kernel's ROSE networking protocol implementation. The vulnerability occurs due to non-atomic reference counting in the rose_neigh structure, which can lead to race conditions where memory is freed while still being used. This affects Linux systems using the ROSE protocol, though ROSE is a legacy protocol primarily used in amateur radio networks.
💻 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 →⚠️ Risk & Real-World Impact
Worst Case
Kernel panic, system crash, or potential privilege escalation leading to full system compromise if an attacker can trigger the use-after-free and execute arbitrary code.
Likely Case
System instability, kernel crashes, or denial of service affecting network functionality on systems using the ROSE protocol.
If Mitigated
Minimal impact if ROSE protocol is disabled or not in use, as the vulnerable code path requires ROSE functionality.
🎯 Exploit Status
Exploitation requires local access or network access to ROSE protocol, race condition timing, and kernel memory manipulation knowledge.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Linux kernel versions containing commits 0085b250fcc79f900c82a69980ec2f3e1871823b or later
Vendor Advisory: https://git.kernel.org/stable/c/0085b250fcc79f900c82a69980ec2f3e1871823b
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from your distribution's repositories. 2. For custom kernels, apply the referenced git commits. 3. Reboot system to load new kernel.
🔧 Temporary Workarounds
Disable ROSE protocol module
linuxPrevent loading of the vulnerable ROSE kernel module
echo 'install rose /bin/false' >> /etc/modprobe.d/rose-blacklist.conf
rmmod rose 2>/dev/null || true
Disable ROSE at kernel compile
linuxExclude ROSE protocol support from kernel build
Make sure CONFIG_ROSE=n in kernel configuration
🧯 If You Can't Patch
- Disable ROSE protocol functionality if not needed by removing or blacklisting the rose kernel module.
- Restrict access to systems using ROSE protocol to trusted networks only.
🔍 How to Verify
Check if Vulnerable:
Check if ROSE module is loaded: lsmod | grep rose. Check kernel version against patched versions from your distribution.
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is updated to patched version and ROSE module is either not loaded or from patched kernel.
📡 Detection & Monitoring
Log Indicators:
- Kernel oops messages
- System crashes or panics
- ROSE protocol error messages in dmesg
Network Indicators:
- Unusual ROSE protocol traffic patterns
- ROSE connection attempts from unexpected sources
SIEM Query:
Search for kernel panic events or ROSE protocol errors in system logs
🔗 References
- https://git.kernel.org/stable/c/0085b250fcc79f900c82a69980ec2f3e1871823b
- https://git.kernel.org/stable/c/203e4f42596ede31498744018716a3db6dbb7f51
- https://git.kernel.org/stable/c/d860d1faa6b2ce3becfdb8b0c2b048ad31800061
- https://git.kernel.org/stable/c/f8c29fc437d03a98fb075c31c5be761cc8326284
- https://git.kernel.org/stable/c/fb07156cc0742ba4e93dfcc84280c011d05b301f
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html