Skip to contentSkip to conversation

CVE-2026-90175: smb: server: fix leak of ksmbd_ipc_login_request_ext() returned buffer

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: server: fix leak of ksmbd_ipc_login_request_ext() returned buffer

Free it unconditionally after ksmbd_alloc_user() calls.

kmemleak splat:
unreferenced object 0xffff888103b83540 (size 192):

    comm "pool-0", pid 16970, jiffies 4377290937
    hex dump (first 32 bytes):
      00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00  ................
      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    backtrace (crc 408ccc66):
      __kvmalloc_node_noprof+0x730/0x920
      handle_generic_event+0xec/0x1a0 [ksmbd]
      genl_family_rcv_msg_doit+0xe0/0x130
      genl_rcv_msg+0x181/0x290
      netlink_rcv_skb+0x4f/0x100
      genl_rcv+0x28/0x40
      netlink_unicast+0x1e6/0x2c0
      netlink_sendmsg+0x20a/0x450
      ____sys_sendmsg+0x2e8/0x310
      ___sys_sendmsg+0x78/0xc0
      __sys_sendmsg+0x63/0xc0
      do_syscall_64+0xa1/0x670
      entry_SYSCALL_64_after_hwframe+0x76/0x7e

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

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

	Issue introduced in 6.6.141 with commit 8a3cd890fd2a7d016a821a1c9dfd8a84d45ad320 and fixed in 6.6.157 with commit 4d6fe49fa3e7fbd779c761518e6572e340233c9b
	Issue introduced in 6.12 with commit a77e0e02af1c2db5fc040511aa78a58a52e116ab and fixed in 6.12.110 with commit c9f2872e91b9fe99c1d0ba768906f7aeb48c8517
	Issue introduced in 6.12 with commit a77e0e02af1c2db5fc040511aa78a58a52e116ab and fixed in 6.18.52 with commit 7a98c3b903b10c4d6176948254012b5ca24b071b
	Issue introduced in 6.12 with commit a77e0e02af1c2db5fc040511aa78a58a52e116ab and fixed in 7.2.6 with commit abb5146b2d8197d695ea9eaa0847c73e34f00985
	Issue introduced in 6.12 with commit a77e0e02af1c2db5fc040511aa78a58a52e116ab and fixed in 7.3-rc1 with commit 1c3ebf832d010c08afe1359215d4121cb1ed2de5

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-90175

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/auth.c
fs/smb/server/mgmt/user_config.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/4d6fe49fa3e7fbd779c761518e6572e340233c9b
	https://git.kernel.org/stable/c/c9f2872e91b9fe99c1d0ba768906f7aeb48c8517
	https://git.kernel.org/stable/c/7a98c3b903b10c4d6176948254012b5ca24b071b
	https://git.kernel.org/stable/c/abb5146b2d8197d695ea9eaa0847c73e34f00985
	https://git.kernel.org/stable/c/1c3ebf832d010c08afe1359215d4121cb1ed2de5