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 56DF23DE42F for ; Fri, 24 Apr 2026 14:44:49 +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=1777041889; cv=none; b=YqxMQGwiU3YE9Qn2kfN9ptLPyaZkuGWY7MX07lTH7ynIs4dMvyUnNzoaANDpihlV2jOD5AbO+g7ZQRZ2fWaozN1ivZvLXKwiSrK6TON57Pa7+Ps7Dk2V58B7iPWuupquGBtVas3JUK2bG7jNXgwEpM7mXB4VbrehN+adf2XvoNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041889; c=relaxed/simple; bh=LBTT2IUmCHtjbwDah2pbwczAXum5xENidETaTPkTyGQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fVJVlQi0kuHHJ9bw3yiFoJDtByutDH6zw3g9+ggMPlnrHK3mr4B7ay8+WXM8JF+XFHbqsW9q7268P6D2NyVSye0qEQ8kKbE9+Yz+mMeWrkogV1KCsDMmSSAieDrYcoqaZ4JFW7Z5FJYY3RStdfOMs5CtDl3XvoCM+AceO9PdUUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zUcBXjq3; 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="zUcBXjq3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1C61C19425; Fri, 24 Apr 2026 14:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041889; bh=LBTT2IUmCHtjbwDah2pbwczAXum5xENidETaTPkTyGQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=zUcBXjq3SactDuqsRLpKkaWtGYTXB0fBuG5REX+dwdFVhsH/Z29y1g9H8wYEC8CbB sbM95d6zU0LpvDKLKeiXzE3v3sbOawcgH8quRQSqIdWNDe0rqfxQcMCv29CLZH6vUS +hxc56LbCcIvJ6jaPVrumPRTfDZrfBYiHqk80+lw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31612: ksmbd: validate EaNameLength in smb2_get_ea() Date: Fri, 24 Apr 2026 16:43:48 +0200 Message-ID: <2026042422-CVE-2026-31612-24a7@gregkh> X-Mailer: git-send-email 2.53.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=2479; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NqTCnSHOLUgEco1hzBUVTnExu00RsOZWJVHJny0yJzM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG7uOTs61qTppMmGWwp733AoVLk/XC+414/JXlSrir Vn3RLSsI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby6zzDghWS5Q849bQvyC0u deoqT5kad2fmRYb5xX7lRbOuFP4Ia5iiFb1x1vGKkLxGAA== 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: validate EaNameLength in smb2_get_ea() smb2_get_ea() reads ea_req->EaNameLength from the client request and passes it directly to strncmp() as the comparison length without verifying that the length of the name really is the size of the input buffer received. Fix this up by properly checking the size of the name based on the value received and the overall size of the request, to prevent a later strncmp() call to use the length as a "trusted" size of the buffer. Without this check, uninitialized heap values might be slowly leaked to the client. The Linux kernel CVE team has assigned CVE-2026-31612 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit 551dfb15b182abad4600eaf7b37e6eb7000d5b1b Fixed in 6.18.24 with commit 3363a770b193f555f29d76ddf4ced3305c0ccf6d Fixed in 6.19.14 with commit 243b206bcb5a7137e8bddd57b2eec81e1ebd3859 Fixed in 7.0.1 with commit dfc6878d14acafffbe670bf2576620757a10a3d8 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-31612 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/551dfb15b182abad4600eaf7b37e6eb7000d5b1b https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8 https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02