Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2A24A302CC1 for ; Mon, 10 Aug 2026 12:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363291; cv=none; b=ZV64g6VJrVqXYDJEqtT0zbMG+1W7DOVhPUpeB0f1AGzeWPQu2biPGdCBJvl9SSxFpG3QE+ALzcdZDONAtdDcwjfe04RyZrq898k2tBaynbuZyg6IzyCBOdStCg6aR40mBxOThR1LVMv135KRMnLmygMQS7mNLXa021ix9Gf9pmw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363291; c=relaxed/simple; bh=DTvEPKGyRU9QyzJhesp9QR2HCwYSdSHtElmiUBjetEA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nHyB/+60pWQ+N3A82nm4g4mXbxqWH8daXsVDVqnXgM3KeE27RRX1Z7bnxcISscwoMGSCSXjQPEFqF2heDVs8VNmZCxoiHRPKazk52UBKbIpRfnGEfkeh1xqmvjzWk+GV7CrGQkAH4XH92J4Eean14DZxTKjjBo01ttN5NFC5hhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XqlC0F9F; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XqlC0F9F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E3461F000E9; Mon, 10 Aug 2026 12:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363289; bh=UwfGkTV8e/govbVEI4IlMP7+eC/z1xHumIs9beiyDKI=; h=From:To:Cc:Subject:Date:Reply-To; b=XqlC0F9FYJI5VZT4Vn1XibXPTNJfaEIsJ2VqurlBT3i9do8Qnv+9CuaR7wTdNQMPN L/NoFbzmWhQnYdXVZKHQlNUAgINlm+xvnNGZTzftF0rY8SFK4Em1UJBzKy8cGEtkg+ O4BY2yR4o3VyG5XmGUICdspLgjPzMgZB4LiLLbI0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68098: ksmbd: bound DACL dedup walk to copied ACEs Date: Mon, 10 Aug 2026 13:56:55 +0200 Message-ID: <2026081051-CVE-2026-68098-4826@gregkh> X-Mailer: git-send-email 2.55.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=2811; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P6K/5vPw/hjBx2YJFzZs97c14JsXATTI8hxh6DOxsbI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe5rXycU9ln114LTwGS0bNbuVfpfUXPXS9j+7ZztTW PGzZpdGRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk4yPDgraKPXk/rx4oqCng m3I0e4bV/UrhGIYF147znF2VLt2hpvnoR86GaWLMfzZmAQA= 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: bound DACL dedup walk to copied ACEs set_ntacl_dacl() can stop copying ACEs before consuming the full input DACL when size accounting overflows. When that happens, num_aces reflects only the ACEs that were actually copied into the output DACL, but set_posix_acl_entries_dacl() still receives nt_num_aces and uses it to walk the existing ACE array during dedup. That makes the dedup walk scan past the copied ACE array and inspect buffer tail that does not contain valid ACEs. Split the two meanings currently carried by the NT ACE count. Pass the number of copied NT ACEs to bound the dedup walk, and preserve the original "input DACL had NT ACEs" state separately for the Everyone/default ACL fallback. This keeps the dedup walk aligned with the ACEs that are actually present in the rebuilt DACL. The Linux kernel CVE team has assigned CVE-2026-68098 to this issue. Affected and fixed versions =========================== Fixed in 6.6.148 with commit 6d9d7aa4a2c99c31acfa28921c30b684110cf66c Fixed in 6.12.101 with commit b057a851129c6a084e7e393b62ca3abf6c2660bc Fixed in 6.18.42 with commit f1eba60db813ec28732bf18b5f0a67ebac9c3100 Fixed in 7.1.6 with commit a0ebdaa79e10210d4e8ed9fe138e8f4d569719e3 Fixed in 7.2-rc5 with commit 58d97fcd0bf1aee694e244cc28635b9df95b543b 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-68098 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/smbacl.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/6d9d7aa4a2c99c31acfa28921c30b684110cf66c https://git.kernel.org/stable/c/b057a851129c6a084e7e393b62ca3abf6c2660bc https://git.kernel.org/stable/c/f1eba60db813ec28732bf18b5f0a67ebac9c3100 https://git.kernel.org/stable/c/a0ebdaa79e10210d4e8ed9fe138e8f4d569719e3 https://git.kernel.org/stable/c/58d97fcd0bf1aee694e244cc28635b9df95b543b