Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187487; b=CNszAJNK/dpckTUAwo6cl6X2UfZJLBUc1pku2wRI2KHZNSIbuk9T8WeZBPnYrIKf5e63 5XeO2N4TqCRdAX5a7c2NzNJUr4VrwjstaVH0TNT63R+qMZyEDDpeW0qhXgtcKiOAaZmUK 0IOKuQyPf1K+qQ0aOk6T8BmSG7y83C1zS4GkKd/oKCkXbWjv95zmAp260zqvWFha67K9c 21t3TSHUzlDyT/QbP8BMrUJxBQlzkpbTkjwrsQ/E9FmzVJVWWcUzfVwxiONaZGVNqshoF BVZZdafaX+1vMZ7N3cNN2avW5c6Rjp+KYxW/omEw6HRsX9AZDHI0oan29LIVV2n8MuA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187487; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=F7UiIKWUK6IpcIZJCa/HX3OPxer2HtVlTKQyULHvgyg=; b=1Ud0f3h+pDY2/y57oYaVEok7Y/yJYxABLt6do8ZsohD7d4bP9nGCDc/W25rJncXrAusC 8VCpA7NoOXNK7y4qfI3UNA4xUfXOqQAMHCLlAeP3YALqF391GH4L8a2f7JUVDspEmVowr 47yBUd9QbT8lKgMlNXpehqsHqjueLgEDh0WkeBmx3xz9oQUUkCuN4OzuYCIOViHqhXcTU 6N9mCzb0NDyLgoX7cFziavWEHn5hncAgZlPu5q7xzwz0eAX2Odl/LIeqnwl4yo+nUPF3u INhmBwOvbNhg9iPfoPXco10s4iKkByrVSKd71iXS6S83uTYug2xQaNj6SsDDO3rsfcA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=X6MorPX3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14747606A31A for ; Wed, 28 Oct 2026 11:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=X6MorPX3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 462341F01825; Wed, 28 Oct 2026 11:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187486; bh=F7UiIKWUK6IpcIZJCa/HX3OPxer2HtVlTKQyULHvgyg=; h=From:To:Cc:Subject:Date:Reply-To; b=X6MorPX3dHb+9Ns3ZK6dAwnLM6n3SrHR5ZN/qrYHwbyDrqTddseg13IUmA7JnU543 GZ771tF1BHoNuPxjhqCLf+4tKWD889hg9bsaDejtxz9UVc990TplWFvstFdo0CsqLl TD2f3geYTPAAFubFtjNnxsJAYpySoRn0JEdu4uWI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99109: smb: client: reject SetEA requests that do not fit the request buffer Date: Wed, 28 Oct 2026 11:34:56 +0100 Message-ID: <2026102854-CVE-2026-99109-d03d@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4154; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=907m+/o+Kiq7U3a8C4f0zbma3aFCEF46XrauSalsFzo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz5+7f1LzZ6XO9ob3KRUX101K7Xlzh9vzWU3Crz0XT EvEtzqXd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXB0Z5oel50ya+IP18y7l 76f2bl447wpH6zqG+VWB10q/68qf4fyp62rc7HV8oc23PQA= 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: reject SetEA requests that do not fit the request buffer CIFSSMBSetEA() copies the caller's extended attribute value into the SMB request buffer without checking that it fits. The requirement is stated in the source but was never implemented: /*BB add length check to see if it would fit in negotiated SMB buffer size BB */ /* if (ea_value_len > buffer_size - 512 (enough for header)) */ if (ea_value_len) memcpy(parm_data->list.name + name_len + 1, ea_value, ea_value_len); The only bound applied on the way in is in cifs_xattr_set(): #define MAX_EA_VALUE_SIZE CIFSMaxBufSize ... if (size > MAX_EA_VALUE_SIZE) CIFSMaxBufSize is the full payload capacity of the buffer, so a value of exactly that size leaves no room for the SMB header, the TRANS2 parameter block, the fealist header and the EA name that are written ahead of it in the same object. SendReceive() already enforces the correct limit on this very length: if (in_len > CIFSMaxBufSize + MAX_CIFS_HDR_SIZE) but it is called after the copy has taken place. An unprivileged setxattr(2) on an SMB1 mount with a 250-byte name and a 16384-byte value writes 16384 bytes starting 345 bytes into a 16588-byte cifs_request object, ending 141 bytes past it: BUG: KASAN: slab-out-of-bounds in CIFSSMBSetEA+0xabc/0xde0 Write of size 16384 at addr ffff888003aa0159 by task init/68 __asan_memcpy+0x3c/0x60 CIFSSMBSetEA+0xabc/0xde0 cifs_xattr_set+0xd3a/0xff0 __vfs_setxattr+0x13e/0x1a0 The buggy address is located 345 bytes inside of allocated 16588-byte region Apply SendReceive()'s limit to the assembled request before the copy rather than after it, and widen the byte counters so the sum cannot wrap before it is tested. byte_count is also tested against U16_MAX, because it is stored in the 16-bit pSMB->ByteCount. That becomes reachable when CIFSMaxBufSize is raised at module load, where it may be set as high as 1024*127: with a 5-byte EA name and a 65521-byte value, count is exactly U16_MAX while byte_count is 65556, and cpu_to_le16() would truncate it to 20 and transmit a frame whose ByteCount does not match its length. Testing byte_count covers count as well, since byte_count is the larger of the two and count's only 16-bit consumer is written after this point. check_add_overflow() is evaluated first so that total_len is assigned before it is reported. The Linux kernel CVE team has assigned CVE-2026-99109 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.13 with commit 9efbd764ab80fa86d2258550877a74d78a25e855 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3 with commit 4aa2c106aef4bf3dfd97c30842db0767b26e8428 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-99109 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/cifssmb.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/9efbd764ab80fa86d2258550877a74d78a25e855 https://git.kernel.org/stable/c/4aa2c106aef4bf3dfd97c30842db0767b26e8428