Red Hat Security Advisory: Security and bug fixes for NetworkManager
🔗 CVE IDs covered (1)
📋 Description
CVE-2024-3661 — DHCP: DHCP routing options can manipulate interface-based VPN traffic
🎯 Affected products200
- Red Hat CodeReady Linux Builder (v. 9)
- Red Hat Enterprise Linux AppStream (v. 9)
- Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-1:1.48.10-5.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-1:1.48.10-5.el9_5.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-1:1.48.10-5.el9_5.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-1:1.48.10-5.el9_5.src as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-1:1.48.10-5.el9_5.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-1:1.48.10-5.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-1:1.48.10-5.el9_5.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-1:1.48.10-5.el9_5.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-1:1.48.10-5.el9_5.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.aarch64 as a component of Red Hat CodeReady Linux Builder (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.i686 as a component of Red Hat CodeReady Linux Builder (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.ppc64le as a component of Red Hat CodeReady Linux Builder (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.s390x as a component of Red Hat CodeReady Linux Builder (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.x86_64 as a component of Red Hat CodeReady Linux Builder (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- NetworkManager-adsl-debuginfo-1:1.48.10-5.el9_5.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-bluetooth-1:1.48.10-5.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-bluetooth-1:1.48.10-5.el9_5.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-bluetooth-1:1.48.10-5.el9_5.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- NetworkManager-bluetooth-1:1.48.10-5.el9_5.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- +170 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: The mitigation steps also ensure that the applications using the VPN cannot access local resources outside the VPN in full-tunnel mode. If access to local resources outside the VPN is needed, additional routing configuration is necessary. The following steps demonstrate how to configure VPN profiles with NetworkManager to prioritize VPN routes over DHCP routes. This uses routing rules with a higher priority than the rule to lookup the main routing table. This means that the VPN routing table is consulted prior to the main routing table. Please note that a higher priority is configured by setting a lower priority value in the routing configuration. 1. There were two bugs in NetworkManager that prevented these steps from working with profiles using VPN plugins, such as libreswan. Therefore first update NetworkManager: - On RHEL 8.10, use NetworkManager-1.40.16-18.el8_10 or later. - On RHEL 9.5 and later, use NetworkManager-1.48.10-5.el9_5 or later. 2. In the next steps, you will assign the VPN routes to a dedicated routing table. By default, RHEL does not use the routing tables 1-252, and you can use one of them. If you configured the system to use some of these tables, identify a free routing table number. The following example uses the routing table 75. 3. Optional: Configure a name for the routing table by adding a line, such as the following, to the /etc/iproute2/rt_tables file: 75 vpn This makes the output of ip commands easier to understand. Note that NetworkManager only supports using a table ID and not the table name. 4. Configure the VPN connection profile to place the VPN routes in a dedicated routing table: # nmcli connection modify <VPN_connection_profile> ipv4.route-table <routing_table_number> For example: # nmcli connection modify "Company VPN" ipv4.route-table 75 5. Set a low priority value for the table you used in the previous command: # nmcli connection modify <VPN_connection_profile> ipv4.routing-rules "priority <low_priority_value> from all table <routing_table_number>" The priority value can be any value between 1 and 32766 but, the lower the value, the higher the priority! For example: # nmcli connection modify "Company VPN" ipv4.routing-rules "priority 32345 from all table 75" 6. Reconnect the VPN: # nmcli connection down <VPN_connection_profile> # nmcli connection up <VPN_connection_profile> This only prevents the TunnelVision techniques and possibly related issues regarding IPv4. For IPv6 it might be necessary to repeat the steps for IPv6. If other software than NetworkManager is used to configure a VPN, it might need similar configuration changes to mitigate against TunnelVision.