CVE-2022-4744
Linux Kernel vulnerability analysis and mitigation

Overview

A double-free flaw (CVE-2022-4744) was discovered in the Linux kernel's TUN/TAP device driver functionality, specifically in how a user registers the device when the registernetdevice function fails (NETDEVREGISTER notifier). The vulnerability was discovered in late 2022 and publicly disclosed on March 30, 2023. This vulnerability affects Linux kernel versions prior to 5.16-rc7 (NVD, NetApp Advisory).

Technical details

The vulnerability occurs due to a double-free condition in the tunfreenetdev function within the TUN/TAP device driver. The issue arises specifically when the register_netdevice function fails during device registration. The CVSS v3.1 base score for this vulnerability is 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements but high potential impact (NetApp Advisory).

Impact

The vulnerability allows a local user to potentially crash the system or escalate their privileges. Successful exploitation could lead to denial of service (system crash), memory corruption, or potential privilege escalation on the affected system (CVE Mitre).

Mitigation and workarounds

The issue has been fixed in Linux kernel version 5.16-rc7 and later. The fix involves moving the dev->tstats and tun->security allocations to a new ndoinit routine (tunnetinit()) that is called by registernetdevice(). This ensures proper pairing with the destructor (tunfreenetdev()) and prevents the double-free condition (Kernel 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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
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