Hardcoded UID in Linux Kernel's tun/tap sockets can bypass network filters

Hardcoded UID in Linux Kernel's tun/tap sockets can bypass network filters

CVE-2023-1076 · MEDIUM Severity

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

A flaw was found in the Linux Kernel. The tun/tap sockets have their socket UID hardcoded to 0 due to a type confusion in their initialization function. While it will be often correct, as tuntap devices require CAP_NET_ADMIN, it may not always be the case, e.g., a non-root user only having that capability. This would make tun/tap sockets being incorrectly treated in filtering/routing decisions, possibly bypassing network filters.

Learn more about our Cis Benchmark Audit For Distribution Independent Linux.