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 A7D593DE42C for ; Fri, 24 Apr 2026 14:44:54 +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=1777041894; cv=none; b=X2dWu54ncCDjHP3wjYhzXKycMEu/aC8V59TuoFtNnYeJFYLpn+i0jkiWu2Kdq7YU+bdhOvaTI9lFNa1iOBGuSg8Qu+vBD72tbMjUrYHu/Wze+w5FY8NHK/u2/aFkjgUPWlvMp1IM4GBa8NC6xNh7KN5RuIKZ5rJVAkBc555aKfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041894; c=relaxed/simple; bh=c+6dXPU7ZxTLrvBbfL1rGLAkIen90/LAV4fJOL+TBB8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jJmCQVHlWPDwIpAwE+25kZ1Wtyh6LZI7Z7NralWG73ZPLAztKcdT2g2k3UaJnOVEcaTH+Ry8u591ngodnHpKuKX/FZrQNZ7MVCDRBJySnzVp1v4Sl9sUWXLOuJJczRPSzHAjALuPLRhgThzGb0KGTLQscKYUksBzizbLmLoMomo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XDfWOfSx; 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="XDfWOfSx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 095F8C19425; Fri, 24 Apr 2026 14:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041894; bh=c+6dXPU7ZxTLrvBbfL1rGLAkIen90/LAV4fJOL+TBB8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=XDfWOfSxJXT+l3hajEyKy+/os1IRzvLPbrAAaCLwVGzXrU3QtRkMlRM7RQBFCDF5A 42QMAqbepJB1hJdm7xZvmHBtsojEvTrmIwG23oJTN4KFBG2fYVRZSu8SezaS7OoFKw 9cUxrHV9T9gWpJyi4lTRJFhSw1ILvU7aLOxzIPQQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31614: smb: client: fix off-by-8 bounds check in check_wsl_eas() Date: Fri, 24 Apr 2026 16:43:50 +0200 Message-ID: <2026042423-CVE-2026-31614-4bf1@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=2817; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zL2Fhu5XfXTnnNV8NKxNLQXXojBDFLuGjFuoL8twJ28=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG7tbyq/yVrsWchvscZrnx5Q99Yjtsle2wpUBRle4v 8hG/WrriGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlMFWCYycj24KN8d9CxIu2e p7M0avTirV4oMixo+HHK1abbWX/RUv1rPya/Npvx7R0bAA== 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: smb: client: fix off-by-8 bounds check in check_wsl_eas() The bounds check uses (u8 *)ea + nlen + 1 + vlen as the end of the EA name and value, but ea_data sits at offset sizeof(struct smb2_file_full_ea_info) = 8 from ea, not at offset 0. The strncmp() later reads ea->ea_data[0..nlen-1] and the value bytes follow at ea_data[nlen+1..nlen+vlen], so the actual end is ea->ea_data + nlen + 1 + vlen. Isn't pointer math fun? The earlier check (u8 *)ea > end - sizeof(*ea) only guarantees the 8-byte header is in bounds, but since the last EA is placed within 8 bytes of the end of the response, the name and value bytes are read past the end of iov. Fix this mess all up by using ea->ea_data as the base for the bounds check. An "untrusted" server can use this to leak up to 8 bytes of kernel heap into the EA name comparison and influence which WSL xattr the data is interpreted as. The Linux kernel CVE team has assigned CVE-2026-31614 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit 5cc0574c84aa73946ade587c41e81757b8b01cb5 Fixed in 6.18.24 with commit b2b76d09a64c538c57006180103fc1841e8cfa66 Fixed in 6.19.14 with commit ba3ad159aa61810bbe0acaf39578b1ebfb6f1a18 Fixed in 7.0.1 with commit a893f1757d9a4009e4a8d7ceb2312142fe29cea4 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-31614 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/smb2inode.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/5cc0574c84aa73946ade587c41e81757b8b01cb5 https://git.kernel.org/stable/c/b2b76d09a64c538c57006180103fc1841e8cfa66 https://git.kernel.org/stable/c/ba3ad159aa61810bbe0acaf39578b1ebfb6f1a18 https://git.kernel.org/stable/c/a893f1757d9a4009e4a8d7ceb2312142fe29cea4 https://git.kernel.org/stable/c/3d8b9d06bd3ac4c6846f5498800b0f5f8062e53b