Use-after-free in Linux kernel SMB/CIFS client cifs_oplock_break()
CVE-2025-38527 is a race-induced use-after-free vulnerability in the Linux kernel SMB/CIFS client function cifs_oplock_break(). During filesystem unmount, _cifsFileInfo_put() can invoke cifs_sb_deactive() after unmount has already released its superblock reference. Releasing the final reference initiates superblock teardown and inode reclamation through RCU callbacks. The oplock-break handler nevertheless continues accessing the cinode structure, which may already have been freed by cifs_free_inode(). Affected accesses include releasing cinode->open_file_lock and calling cifs_done_oplock_break(cinode). This can cause kernel memory corruption and system crashes, with potential privilege-escalation consequences.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful triggering can corrupt kernel memory and cause a kernel crash or system-wide denial of service. Potential local privilege escalation and compromise of confidentiality and integrity are also identified, but a demonstrated exploitation mechanism establishing those outcomes is not available. Exploitability beyond a crash depends on race timing, attacker influence over kernel state, and applicable kernel hardening.
If you can’t patch tonight, do this now.
No confirmed vulnerability-specific workaround is available. Until patching, reduce exposure by avoiding unnecessary SMB/CIFS client mounts, restricting who can mount or unmount shares, and limiting untrusted local access. Where operationally feasible, avoid concurrent unmounting and oplock-break activity and reduce automated mount churn. Avoiding attacker-controlled SMB shares may further reduce exposure. These measures do not replace the kernel fix.
Patch, then assume compromise.
Install a distribution-supported kernel update containing the CVE-2025-38527 fix and reboot into the updated kernel. The fix holds an additional superblock reference throughout the oplock-break operation, preventing superblock and inode destruction until processing finishes. Identified fixed releases include RHEL 8 kernel 4.18.0-553.78.1.el8_10, RHEL 8 real-time kernel 4.18.0-553.78.1.rt7.419.el8_10, RHEL 9.2 kernel 5.14.0-284.140.1.el9_2, and RHEL 9.4 kernel 5.14.0-427.92.1.el9_4. Use the corresponding vendor update for other distributions, support channels, and kernel variants; these version thresholds are not interchangeable across branches. Custom kernel maintainers should backport the superblock-reference lifetime fix.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.