Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8AC9632860E for ; Fri, 23 Jan 2026 14:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769178431; cv=none; b=IfupHR+z/dSWVU4Vaw+v59cOGjXYCF35g8Vyugp3HCHb/pA2SazM8D+CvaZLymX45F6O2k+0hTTqHj1HpYNN0/pLmsh5VGWuxRikPxCUGalYjVh+QcMILyemYnrJQ6daOsW21isoTyPE/hQlCVW8AHxGWttru7Ku916YRjoIf58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769178431; c=relaxed/simple; bh=OZuJMk3Pm3KixPiQUkbpR3+/7gLZuWLZD+YU2OWAMN4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Fw0gj9RY3io33I4/wfc/t3MWs8aJAxpMahinjjTCkKsGgycTVyolFhJjb8hcuxd6+BsfDbJpmTld/G1BCjm/aZC0l/EfMPkvZZqdIItYdPQk/ggzkD/OA64ZiWVfJlR9hxKssbIix/qVKRmajoo/H7mBu1+EQJoahNyLoCfeCg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WBVSN+WZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WBVSN+WZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B57EC4CEF1; Fri, 23 Jan 2026 14:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769178431; bh=OZuJMk3Pm3KixPiQUkbpR3+/7gLZuWLZD+YU2OWAMN4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WBVSN+WZhShIhNTiQQnJJEEliOPZKbFbIzm6yoNrHl8R4sRZdwkM55KaTRj1HwCzX reqS3NhQxVx7rmMtBJX77ZLIHcyvpU9+62yI7geFZi7eWDsUpFdznh0l4f9frDSDoR vtCBGaATnVH4IZdAC5EOrZc9r1ZfdsbWgPfrRSjc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71153: ksmbd: Fix memory leak in get_file_all_info() Date: Fri, 23 Jan 2026 15:27:04 +0100 Message-ID: <2026012305-CVE-2025-71153-246e@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2597; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ufaudojI+ZXQfxuiPFPD+HiYlXG4rj92zDXpcqKPGsk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnFrZalGqzZ+nvz/B79+bl9E9Pfp4Jbs0suf7WZbnvPr eDMCubAjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI2XaGBauErPlP8asx+kzx rfAUmTz/9xdeCYb56SsP8k1YJv+mVu/Ptfd/Z7L82X/rIQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix memory leak in get_file_all_info() In get_file_all_info(), if vfs_getattr() fails, the function returns immediately without freeing the allocated filename, leading to a memory leak. Fix this by freeing the filename before returning in this error case. The Linux kernel CVE team has assigned CVE-2025-71153 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.24 with commit c8f7ad2df083c510e640c0bf76166593cc116ff2 and fixed in 6.6.120 with commit 5012b4c812230ae066902a00442708c999111183 Issue introduced in 6.9 with commit 5614c8c487f6af627614dd2efca038e4afe0c6d7 and fixed in 6.12.64 with commit 676907004256e0226c7ed3691db9f431404ca258 Issue introduced in 6.9 with commit 5614c8c487f6af627614dd2efca038e4afe0c6d7 and fixed in 6.18.4 with commit d026f47db68638521df8543535ef863814fb01b1 Issue introduced in 6.9 with commit 5614c8c487f6af627614dd2efca038e4afe0c6d7 and fixed in 6.19-rc4 with commit 0c56693b06a68476ba113db6347e7897475f9e4c Issue introduced in 6.7.12 with commit f9278ba4967027ad2bf001694f0e489c7bbae6d5 Issue introduced in 6.8.3 with commit 88779f09295d82b86601fe42595748488bf5e20c Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-71153 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/smb/server/smb2pdu.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/5012b4c812230ae066902a00442708c999111183 https://git.kernel.org/stable/c/676907004256e0226c7ed3691db9f431404ca258 https://git.kernel.org/stable/c/d026f47db68638521df8543535ef863814fb01b1 https://git.kernel.org/stable/c/0c56693b06a68476ba113db6347e7897475f9e4c