CVE-2022-25375
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-25375 was discovered in the Linux kernel's RNDIS USB gadget implementation. The vulnerability was reported on February 20, 2022, affecting the Linux kernel versions before 5.16.10. The issue exists in the drivers/usb/gadget/function/rndis.c file where the RNDIS USB gadget lacks validation of the size of the RNDISMSGSET command (NVD, MITRE).

Technical details

The vulnerability stems from the RNDISMSGSET handler (rndissetresponse) which calls genndissetresp passing a buffer pointer offset by BufOffset + 8. The BufOffset variable is retrieved from the RNDIS message but not validated to respect buffer boundaries. By manipulating the four-byte InformationBufferOffset member of rndissetmsgtype, an attacker can offset the actual buffer by up to 0xffffffff bytes (OSS-Security).

Impact

The vulnerability allows attackers to obtain sensitive information from kernel memory. When exploited, attackers can extract up to 0xffffffff bytes of kernel space memory by two bytes at a time. While the process is relatively slow, it remains effective in extracting sensitive kernel data (GitHub-POC).

Mitigation and workarounds

The vulnerability was patched in Linux kernel version 5.16.10 by adding size validation checks for the RNDISMSGSET command. The fix includes checking if BufLength exceeds RNDISMAXTOTALSIZE or if BufOffset + 8 is greater than or equal to RNDISMAXTOTALSIZE (Linux-Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management