From mboxrd@z Thu Jan 1 00:00:00 1970 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 EDDD55921F5 for ; Fri, 11 Sep 2026 20:04:33 +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=1789157082; cv=none; b=bNUD/j3rqOFg6wzxFAoFqkn5coLV1aFpA7SfoO1MlAZFCfdPyJYJFGHqMhKl04zgKCSBgm4lDkl8m7++VSwtXN7KuHbuka+P2WLrl/ia6xfjQvCin1pL9KFKmp4hwVAgFYoZQ9QxmPIY7iFpHLpl+Oh0HjsER9y9Lge31QVWMW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789157082; c=relaxed/simple; bh=+nM6eFgtrwoadGGPyyJp954YVaNlHo299vGDWIQDjE4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MmesocCgM8B+p+wGWAVxB+wo+IlhQofkvgQ3qF555w1ttrSROK3RfzMOujvgbMui54UF3MNM8Jz+42DNLHWuvuWVw4pzAj15T8MY0d9D6+9XpNAKw65180bk4A9XQ4g2npXoE8Uff7oljY/6AgNs49YYWVtA4uEhZxIB/m6/rx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uv9W/4Iy; 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="uv9W/4Iy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19BFF1F00899; Fri, 11 Sep 2026 20:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789157069; bh=xb5fUjBVDLXTKBwtzSSMmowE3IYlN0wcCLcHeotA/QU=; h=From:To:Cc:Subject:Date:Reply-To; b=uv9W/4Iy5VSrlwDDWZJJrtJ5ea01j3l8snZWCKqDDbNdeJuMHNEnZp1H/SNFjcO8E tgD9Hmmj9wKiNDeunVuynZlYrr5W8woeERhn4sZ2hq+i4tdhXeRNTgCcv7ZuLYWIkP GPQH52/al/G6x9w+DEusjZfq0utJWV44NnUFN7r4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89726: lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen() Date: Fri, 11 Sep 2026 21:46:55 +0200 Message-ID: <2026091101-CVE-2026-89726-04d6@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=2827; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D6BDB+9ufeqp5ob0zGK4KmPLwfsjtYDJrML4jQOPcSM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIjubxPUNI75UnD9z6qDjOfvcD2Zmh7wO2Tw0T1s4U fnOFcbsjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIgZ8Mc6U19LaulPkzh/1d h/30h3pzdvNmmDIsWB0Xdv/zNab502bJf37+JdV1zjfzeAA= 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: lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen() Patch series "lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()", v2. This series fixes an off-by-one out-of-bounds read in ucs2_strnlen(). The first patch is the real fix, the second patch comes as a bonus and fixes the code indentation. This patch (of 2): ucs2_strnlen() checks the current character before checking whether the caller-provided maximum length has been reached. If the input is not NUL-terminated within that bound, the loop can read one ucs2_char_t past the limit. Test the length before dereferencing to prevent an off-by-one out-of-bounds read. The Linux kernel CVE team has assigned CVE-2026-89726 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.109 with commit 709eb41adaf78d59d4579a13a898125919b69bcc Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.50 with commit 7d658da725ea81c91f73087547b97e7ced82d62b Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.4 with commit 1b0dc3cbb8630f0b5cb34d848628225920a904be Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc1 with commit cec0d03fe785380540dc1b4d07c80f67ae2ffc78 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-89726 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: lib/ucs2_string.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/709eb41adaf78d59d4579a13a898125919b69bcc https://git.kernel.org/stable/c/7d658da725ea81c91f73087547b97e7ced82d62b https://git.kernel.org/stable/c/1b0dc3cbb8630f0b5cb34d848628225920a904be https://git.kernel.org/stable/c/cec0d03fe785380540dc1b4d07c80f67ae2ffc78