Skip to contentSkip to conversation

CVE-2026-23303: smb: client: Don't log plaintext credentials in cifs_set_cifscreds

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

smb: client: Don't log plaintext credentials in cifs_set_cifscreds

When debug logging is enabled, cifs_set_cifscreds() logs the key payload and exposes the plaintext username and password. Remove the debug log to avoid exposing credentials.

The Linux kernel CVE team has assigned CVE-2026-23303 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.3 with commit 8a8798a5ff90977d6459ce1d657cf8fe13a51e97 and fixed in 6.1.167 with commit ff0ece8ed04180c52167c003362284b23cf54e8d
	Issue introduced in 3.3 with commit 8a8798a5ff90977d6459ce1d657cf8fe13a51e97 and fixed in 6.6.130 with commit 3990f352bb0adc8688d0949a9c13e3110570eb61
	Issue introduced in 3.3 with commit 8a8798a5ff90977d6459ce1d657cf8fe13a51e97 and fixed in 6.12.77 with commit b746a357abfb8fdb0a171d51ec5091e786d34be1
	Issue introduced in 3.3 with commit 8a8798a5ff90977d6459ce1d657cf8fe13a51e97 and fixed in 6.18.17 with commit 2ef0fc3bf49db2b9df36d5f44508c9e384bfa2a1
	Issue introduced in 3.3 with commit 8a8798a5ff90977d6459ce1d657cf8fe13a51e97 and fixed in 6.19.7 with commit 3e182701db612ddd794ccd5ed822e6cc1db2b972
	Issue introduced in 3.3 with commit 8a8798a5ff90977d6459ce1d657cf8fe13a51e97 and fixed in 7.0-rc2 with commit 2f37dc436d4e61ff7ae0b0353cf91b8c10396e4d

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-2026-23303

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/client/connect.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/ff0ece8ed04180c52167c003362284b23cf54e8d
	https://git.kernel.org/stable/c/3990f352bb0adc8688d0949a9c13e3110570eb61
	https://git.kernel.org/stable/c/b746a357abfb8fdb0a171d51ec5091e786d34be1
	https://git.kernel.org/stable/c/2ef0fc3bf49db2b9df36d5f44508c9e384bfa2a1
	https://git.kernel.org/stable/c/3e182701db612ddd794ccd5ed822e6cc1db2b972
	https://git.kernel.org/stable/c/2f37dc436d4e61ff7ae0b0353cf91b8c10396e4d