5.5Medium

CVE-2023-4194Kernel: tap: tap_open(): correctly initialize socket uid next fix of i_uid to current_fsuid

Red Hat Red Hat Enterprise Linux 9; Red Hat Red Hat Enterprise Linux 6; Red Hat Red Hat Enterprise Linux 7; Red Hat Red Hat Enterprise Linux 8 Published: (3 years ago)

Description

A flaw was found in the Linux kernel's TUN/TAP functionality. This issue could allow a local user to bypass network filters and gain unauthorized access to some resources. The original patches fixing CVE-2023-1076 are incorrect or incomplete. The problem is that the following upstream commits - a096ccca6e50 ("tun: tun_chr_open(): correctly initialize socket uid"), - 66b2c338adce ("tap: tap_open(): correctly initialize socket uid"), pass "inode->i_uid" to sock_init_data_uid() as the last parameter and that turns out to not be accurate.

Weakness (CWE): CWE-843CWE-863

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
debian debian linux 10.0
enterprise linux 9 —
fedoraproject fedora 37
linux linux kernel ≤ 6.4
redhat enterprise linux 8.0
Red Hat Red Hat Enterprise Linux 6 —
Red Hat Red Hat Enterprise Linux 7 —
Red Hat Red Hat Enterprise Linux 8 all versions
Red Hat Red Hat Enterprise Linux 9 all versions
Red Hat Red Hat Virtualization 4 —

References and patches

CPE matches (NVD) (12)

  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* ≤ 6.4
  • cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.5:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.5:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.5:rc4:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:12.0:*:*:*:*:*:*:*