From mboxrd@z Thu Jan 1 00:00:00 1970 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 11273535D5 for ; Mon, 8 Apr 2024 10:02:28 +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=1712570549; cv=none; b=LZOFlwZNjg0xZ4EYDpDn0GQXj6oZNXfHua2uTg1SRmr5/36+cKPTVgpqETPuLoLChXajhcWHGJTPJMLZnaTwi78EoSsWMfx3xCtpI+FrGjbgA7k7cqggGqhSeK6A1xqu7OP8xC02M63s9tHmqbw+02QV4BKb2vyBv8mbOIUZ6yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712570549; c=relaxed/simple; bh=kcFzNQJ9BibkR/h3H4D+gvp1kndx7apoxbMTgLAtuP0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P0SBpYTK2NNLEErg9RjZ3gbVHYxIgB6q8lildUBISRRaXm72SOkM4zwNtoMCD6rogu0OADizjInDFvnRkE/J0Y/wYhIDJI5vviW+NBjPTxCIFOi6wj7xCTnPQ3KVteBSbYO55xV71hry2u1YDS1tJZq7WVXVUVKODSKlqphxjss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T4zxMc5B; 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="T4zxMc5B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A60B2C433F1; Mon, 8 Apr 2024 10:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712570548; bh=kcFzNQJ9BibkR/h3H4D+gvp1kndx7apoxbMTgLAtuP0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T4zxMc5BHjtD1N8tmGopABnyTo7V7EqiSBeNE+HL3bUvrxy+rtjp7qHPUzo859O2B 5IGcBIcbE43Snq9n5yez0xHaVp8nafL/ROBXIRNxLHXtbG18i/GLzPIWxiR+32lQRy 1k6/ilfCRZR5wIJCWd+2FTLw7jgYDQi6f6VS80GI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26811: ksmbd: validate payload size in ipc response Date: Mon, 8 Apr 2024 12:02:23 +0200 Message-ID: <2024040822-CVE-2024-26811-f7f5@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1767; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kcFzNQJ9BibkR/h3H4D+gvp1kndx7apoxbMTgLAtuP0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnCB9aZTout7bX7803Vx/hgbcrb17OKpHuVnxVsiNjkZ fCM91B/RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkPwPDgsYuOeZA+QUW+l8n LFvjJ27wo2sKE8OCFQdFGfWy7WrtGHp1Pa16Nrzb0CYLAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate payload size in ipc response If installing malicious ksmbd-tools, ksmbd.mountd can return invalid ipc response to ksmbd kernel server. ksmbd should validate payload size of ipc response from ksmbd.mountd to avoid memory overrun or slab-out-of-bounds. This patch validate 3 ipc response that has payload. The Linux kernel CVE team has assigned CVE-2024-26811 to this issue. Affected and fixed versions =========================== Fixed in 6.9-rc3 with commit a677ebd8ca2f 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-2024-26811 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/ksmbd_netlink.h fs/smb/server/mgmt/share_config.c fs/smb/server/transport_ipc.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/a677ebd8ca2f2632ccdecbad7b87641274e15aac