Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-50047 Overview
CVE-2024-50047 is a use-after-free (UAF) vulnerability in the Linux kernel's SMB client (cifs) module. The flaw occurs in the async decryption path when handling large encrypted SMB reads. A single Authenticated Encryption with Associated Data (AEAD) Transform (TFM) object is shared across parallel decryption workers, triggering a slab use-after-free deep in the kernel crypto API. The condition is reproducible by mounting an SMB share with the seal option and reading a large file. The vulnerability is tracked as CWE-416: Use After Free.
Critical Impact
Local triggering of a kernel slab use-after-free in the smb3decryptd workqueue can corrupt kernel memory, cause denial of service, and potentially enable local privilege escalation on hosts mounting encrypted SMB shares.
Affected Products
- Linux kernel SMB/CIFS client (fs/smb/client) prior to the fix commits
- Debian LTS Linux kernel packages addressed in March and May 2025 LTS advisories
- Distributions shipping affected stable kernel branches (6.1.x, 6.6.x, 6.11.x) before backports
Discovery Timeline
- 2024-10-21 - CVE-2024-50047 published to NVD
- 2026-08-04 - Last updated in NVD database
Technical Details for CVE-2024-50047
Vulnerability Analysis
The Linux kernel SMB client supports SMB3 encryption via the seal mount option. When reading large files, the client offloads decryption work to the smb3decryptd workqueue in parallel per response. Each worker calls decrypt_raw_data(), which invokes crypt_message() and ultimately drives the GCM/GHASH primitives through the kernel crypto API.
The client reuses a single AEAD TFM instance stored on the server structure for every decryption operation. When multiple decrypt workers run concurrently, they share and mutate the same TFM state, producing the slab use-after-free observed by KASAN inside gf128mul_4k_lle() during ghash_update(). The upstream fix allocates a dedicated AEAD TFM for each async decryption and retains the existing TFM for the synchronous read path, mirroring the pattern used by smb3_calc_signature(). The fix also removes the now-redundant aead_request_set_callback() and crypto_wait_req() calls because decryption always completes synchronously relative to the worker.
Root Cause
The root cause is unsafe concurrent use of a shared cryptographic transform object. The crypto API expects each in-flight request to own exclusive access to the TFM's internal state. Parallel workers mutating that state while other workers free or reuse associated memory produces the use-after-free in gf128mul_4k_lle.
Attack Vector
The vulnerability is reachable locally. An attacker needs the ability to trigger large reads from an encrypted SMB mount, which can be achieved by any local user who can read a file on an SMB share mounted with seal. A malicious or compromised SMB server returning large encrypted responses can also drive the condition. Successful exploitation causes kernel memory corruption that may lead to denial of service or local privilege escalation.
No verified public exploit code is available. The reproducer documented in the upstream commit uses mount.cifs with seal,esize=1 followed by dd from a large file on the share.
Detection Methods for CVE-2024-50047
Indicators of Compromise
- KASAN reports referencing slab-use-after-free in gf128mul_4k_lle with call stacks through ghash_update, crypt_message, decrypt_raw_data, and smb2_decrypt_offload
- Kernel panics or oopses originating from the smb3decryptd workqueue on hosts mounting SMB shares
- Unexpected cifs module warnings or general protection fault events coinciding with large reads from sealed SMB mounts
Detection Strategies
- Inventory Linux hosts with the cifs module loaded and enumerate active mounts using the seal option via /proc/mounts and mount output
- Compare the running kernel version against the fixed stable commits (0809fb86, 538c26d9, b0abcd65, 8f14a476, bce96653, ef51c0d5) and vendor backports
- Correlate SMB client crash telemetry with workloads performing large reads from encrypted shares
Monitoring Recommendations
- Forward dmesg, journald, and kdump artifacts to a centralized logging or SIEM pipeline and alert on KASAN or BUG: events referencing cifs or gf128mul
- Monitor process and workqueue crash rates on file servers and workstations that mount SMB shares with encryption
- Track kernel package versions across the fleet and alert on hosts that remain on vulnerable builds after patch deployment windows
How to Mitigate CVE-2024-50047
Immediate Actions Required
- Patch affected Linux kernels to a version that includes the upstream fix for the SMB client async decryption UAF
- Prioritize hosts that mount SMB shares with the seal option, including file servers, backup hosts, and user workstations
- Reboot patched hosts to activate the fixed kernel and verify the running version with uname -r
Patch Information
The fix is distributed across multiple stable branches. Reference commits include Kernel Commit 0809fb86, Kernel Commit 538c26d9, Kernel Commit b0abcd65, Kernel Commit 8f14a476, Kernel Commit bce96653, and Kernel Commit ef51c0d5. Debian LTS users should apply the updates described in the Debian LTS Announcement March 2025 and the Debian LTS Announcement May 2025.
Workarounds
- Remount affected SMB shares without the seal option where confidentiality is provided by another transport layer, accepting the loss of SMB3 encryption
- Avoid large reads from encrypted SMB mounts until patched kernels are deployed to reduce exposure to the async decryption path
- Restrict which users and services can mount or access SMB shares on vulnerable hosts to limit local trigger surface
# Verify running kernel version and check for the cifs module
uname -r
lsmod | grep -i cifs
# List active SMB mounts and flag those using encryption
grep -E 'cifs|smb3' /proc/mounts | grep -i seal
# Example: remount without seal as a temporary workaround (restores on next mount)
# umount /mnt/share && mount.cifs //srv/share /mnt/share -o username=user,vers=3.1.1
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

