CVE Database›CVE-2024-53095

CVE-2024-53095

kernel: smb: client: Fix use-after-free of network namespace.

Loading…

Severity

Moderate

Red Hat Product Security

6.7

CVSS 3.1

Review impact separately from score.

Published · November 21, 2024

Updated · October 31, 2026

Description

A flaw was found in the Linux kernel's Server Message Block (SMB) client. Improper reference counting allows kernel sockets to persist after their associated network namespace has been released. A local attacker with permission to create and destroy network namespaces—such as in containerized environments—can trigger this use-after-free condition during unmounting or reconnection attempts. This flaw primarily results in a system crash leading to a Denial of Service (DoS), with a potential risk of arbitrary memory corruption.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Disable the CIFS kernel module if SMB/CIFS filesystem mounts are not required:

  1. Add a configuration file to prevent the module from loading:

echo "install cifs /bin/true" > /etc/modprobe.d/disable-cifs.conf

  1. If the module is currently loaded, unload it:

modprobe -r cifs

Caveats: Applying this configuration will prevent the host and any containers from mounting SMB/CIFS network shares. If the module is already in use by active mounts, unloading it will fail, and a system restart will be required for the change to take effect.

CVSS / CWE

CVSS 3.1 · 6.7
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CWE-416 · Use After Free