CVE Database›CVE-2022-49014

CVE-2022-49014

kernel: net: tun: Fix use-after-free in tun_detach()

Loading…

Severity

Moderate

Red Hat Product Security

6.7

CVSS 3.1

Review impact separately from score.

Published · October 21, 2024

Updated · October 29, 2026

Description

A flaw was found in the Linux kernel's net: tun module. A use-after-free vulnerability exists in the tun_detach() function. An attacker with administrative (root) privileges could exploit this by causing a network structure to be prematurely released and then accessed, leading to a system crash (denial of service). This vulnerability could potentially be leveraged for arbitrary code execution.

Statement

This issue is considered to be a moderate impact flaw, as the exploitation for this will need an ADMIN (or ROOT) privilege (PR:H) in drivers/net/tun.c.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, prevent the tun kernel module from loading. This can be achieved by creating a modprobe configuration file.

  1. Create or edit /etc/modprobe.d/blacklist-tun.conf and add the following line:
    blacklist tun
    
  2. Rebuild the initial ramdisk:
    dracut -f -v
    
  3. Reboot the system for the changes to take effect.

Disabling the tun module may impact functionality that relies on virtual network interfaces, such as VPN clients or container networking solutions. A system reboot is required for the changes to take effect.

CVSS / CWE

CVSS 3.1 · 6.7
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CWE-416 · Use After Free