A vulnerability was found in Linux Kernel up to 6.9.6. It has been classified as critical. Affected is the function get_net_ns in the library lib/refcount.c. The manipulation leads to use after free.

This vulnerability is traded as CVE-2024-40958. The attack can only be done within the local network. There is no exploit available.

It is recommended to upgrade the affected component.