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

Published Aug 6, 2023
·
Updated

A flaw 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 CAPNETADMIN, 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. The original fix for the CVE-2023-1076 was incorrect. The problem is that the following upstream commits (that were fix for the CVE-2023-1076) - a096ccca6e50 ("tun: tunchropen(): correctly initialize socket uid"), - 66b2c338adce ("tap: tapopen(): correctly initialize socket uid"), pass "inode->iuid" to sockinitdatauid() as the last parameter and that turns out to be entirely bogus.

References: https://lore.kernel.org/all/20230731164237.48365-1-lersek@redhat.com/ https://lore.kernel.org/all/20230731164237.48365-2-lersek@redhat.com/ https://lore.kernel.org/all/20230731164237.48365-3-lersek@redhat.com/

Other sources

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: tunchropen(): correctly initialize socket uid"), - 66b2c338adce ("tap: tapopen(): correctly initialize socket uid"), pass "inode->iuid" to sockinitdatauid() as the last parameter and that turns out to not be accurate.

— Launchpad

Affected Software

18 affected componentsFixes available
Linux Linux kernel<=6.4
Linux Linux kernel=6.5-rc1
Linux Linux kernel=6.5-rc2
Linux Linux kernel=6.5-rc3
Linux Linux kernel=6.5-rc4
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Debian Debian Linux=12.0
redhat/kernel<6.5
6.5
debian/linux<6.1.52-1
6.1.52-1
debian/linux<6.4.11-1
6.4.11-1
debian/linux<6.4.11-1
6.4.11-1
debian/linux
5.10.191-16.1.52-16.4.11-1
debian/linux-5.10
5.10.197-1~deb10u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.5
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.52-1
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.4.11-1
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.191-1Fixed in 6.1.52-1Fixed in 6.4.11-1
  5. Upgrade

    Upgrade debian/linux-5.10 to a version that resolves this vulnerability.

    Fixed in 5.10.197-1~deb10u1

Event History

Aug 6, 2023
Data Sourced
02:11 PM
DescriptionSeverityAffected Software
Aug 7, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·01:19 PM
Data Sourced
01:19 PM
Weakness
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Aug 14, 2023
Updated
06:36 PM
Severity
Nov 7, 2023
Updated
02:15 PM
WeaknessAffected Software
Updated
via NVD·02:15 PM
Affected Software
Nov 9, 2023
Data Sourced
via Red Hat·07:11 AM
DescriptionSeverityAffected Software
Jan 23, 2024
Data Sourced
via MITRE·01:35 AM
DescriptionSeverityWeakness
Feb 21, 2024
Data Sourced
via NVD·08:37 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·08:37 PM
WeaknessAffected Software
Feb 27, 2024
Updated
via MITRE·07:02 AM
Weakness
Updated
via NVD·07:15 AM
WeaknessAffected Software
Mar 26, 2024
Updated
via MITRE·03:28 PM
Weakness
Updated
via NVD·04:15 PM
WeaknessAffected Software
Updated
via NVD·04:15 PM
Affected Software
May 8, 2024
Updated
via MITRE·08:12 AM
Weakness
Updated
via NVD·09:15 AM
WeaknessAffected Software
Sep 6, 2024
Updated
via NVD·06:15 PM
Affected Software
Nov 21, 2024
Updated
via NVD·08:34 AM
RemedyAffected Software
Feb 18, 2026
Updated
via MITRE·05:16 PM
Weakness
Updated
via NVD·06:24 PM
WeaknessAffected Software
Mar 24, 2026
Updated
via MITRE·11:22 AM
Weakness
Updated
via NVD·12:16 PM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2023-4194?

CVE-2023-4194 has been classified as a medium severity vulnerability due to its potential impact on non-root users.

2

How do I fix CVE-2023-4194?

To fix CVE-2023-4194, you should upgrade your kernel to version 6.5 or later.

3

What versions of the Linux Kernel are affected by CVE-2023-4194?

CVE-2023-4194 affects Linux Kernel versions up to 6.4, including specific release candidates like 6.5-rc1 to 6.5-rc4.

4

Is CVE-2023-4194 present in Red Hat Enterprise Linux?

Yes, CVE-2023-4194 is present in Red Hat Enterprise Linux versions prior to the patched release.

5

Can I find CVE-2023-4194 on Debian Linux distributions?

Yes, CVE-2023-4194 impacts various Debian Linux distributions, including versions 10.0, 11.0, and 12.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203