[PATCH 0/4] smb: Backport UAF fixes for v5.4.y

From: Chanho Min
Date: Mon Aug 11 2025 - 06:17:04 EST


This patch series backports four fixes from v5.10.y and later to the v5.4.y,
addressing potential UAF issues in the SMB client implementation.
The patches have been adapted to account for the directory rename from fs/smb/client/*
to fs/cifs/* in v5.4.y, ensuring compatibility with the target kernel.

Paulo Alcantara (4):
smb: client: fix potential UAF in cifs_debug_files_proc_show()
smb: client: fix potential UAF in is_valid_oplock_break()
smb: client: fix potential UAF in smb2_is_valid_lease_break()
smb: client: fix potential UAF in cifs_stats_proc_write()

fs/cifs/cifs_debug.c | 4 ++++
fs/cifs/cifsglob.h | 8 ++++++++
fs/cifs/misc.c | 2 ++
fs/cifs/smb2misc.c | 3 ++-
4 files changed, 16 insertions(+), 1 deletion(-)