CVE-2024-0193

Summary

A use-after-free flaw was found in the netfilter subsystem of the Linux kernel. If the catchall element is garbage-collected when the pipapo set is removed, the element can be deactivated twice. This can cause a use-after-free issue on an NFT_CHAIN object or NFT_OBJECT object, allowing a local unprivileged user with CAP_NET_ADMIN capability to escalate their privileges on the system.

Affected Software

VendorProductVersion RangeStatus
Red HatRed Hat Enterprise Linux 90:5.14.0-362.24.1.el9_3 < *unaffected
Red HatRed Hat Enterprise Linux 90:5.14.0-362.24.1.el9_3 < *unaffected
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:5.14.0-70.105.1.el9_0 < *unaffected
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:5.14.0-70.105.1.rt21.177.el9_0 < *unaffected
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support0:5.14.0-284.55.1.el9_2 < *unaffected
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support0:5.14.0-284.55.1.rt14.340.el9_2 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-22 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-11 < *unaffected
Red HatRHOL-5.8-RHEL-9v6.8.1-407 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-19 < *unaffected
Red HatRHOL-5.8-RHEL-9v1.0.0-479 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-7 < *unaffected
Red HatRHOL-5.8-RHEL-9v0.4.0-247 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-5 < *unaffected
Red HatRHOL-5.8-RHEL-9v1.1.0-227 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.1-470 < *unaffected
Red HatRHOL-5.8-RHEL-9v2.9.6-14 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-2 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-24 < *unaffected
Red HatRHOL-5.8-RHEL-9v5.8.6-10 < *unaffected
Red HatRHOL-5.8-RHEL-9v0.1.0-525 < *unaffected
Red HatRHOL-5.8-RHEL-9v0.1.0-224 < *unaffected
Red HatRHOL-5.8-RHEL-9v0.28.1-56 < *unaffected

Weaknesses

  • CWE-416: Use After Free

Workarounds

In order to trigger the issue, it requires the ability to create user/net namespaces.

On non-containerized deployments of Red Hat Enterprise Linux 8, you can disable user namespaces by setting user.max_user_namespaces to 0:

echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf

sysctl -p /etc/sysctl.d/userns.conf

On containerized deployments, such as Red Hat OpenShift Container Platform, do not use this mitigation as the functionality is needed to be enabled.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: poc
    • Automatable: no
    • Technical Impact: total

CVE Program Container

Additional References

References