CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

CVE-2022-49014

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.

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:
bash
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.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.77.87.8
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredHighLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityHighHighHigh
Integrity ImpactHighHighHigh
Availability ImpactHighHighHigh

Vector

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

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

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

Want to get errata notifications? Sign up here.