PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

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 register_netdevice function fails (NETDEV_REGISTER 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 tun_free_netdev 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).

Exploitability

The vulnerability requires local access to the system and can be triggered through the TUN/TAP device driver functionality. The syzkaller tool was credited with finding this vulnerability, suggesting it was discovered through automated testing rather than active exploitation (Red Hat Advisory).

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 ndo_init routine (tun_net_init()) that is called by register_netdevice(). This ensures proper pairing with the destructor (tun_free_netdev()) and prevents the double-free condition (Kernel Commit).

Additional resources


Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-7356HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules
NoYesOct 21, 2026
CVE-2026-98862MEDIUM6
  • Linux Kernel logoLinux Kernel
  • python3-perf
NoYesOct 18, 2026
CVE-2026-98859MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k
NoYesOct 18, 2026
CVE-2026-98861MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules-internal
NoYesOct 18, 2026
CVE-2026-98863NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-devel-matched
NoYesOct 18, 2026

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