From mboxrd@z Thu Jan 1 00:00:00 1970 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 4BD45296BB7 for ; Tue, 30 Dec 2025 12:10:43 +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=1767096643; cv=none; b=JM94YT8WiiksxgA7lcb60s94oL+RKK+0z5QXtj1hWFPECIw/XCW9G+RJSrmEc24aaWy4pt/yWnr68VaYlV28k2sse8Jna3fFDixBFtKE7j7wKbpvsGzjYjX0IPTjjzlTSmTkqp4qwR9Ebhd6ktkDgj4ulhereyHKXURxydIxHR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096643; c=relaxed/simple; bh=7ezEH2fxl2hxsN81Y+ztQpUq7D0h/i+Z9FmvsIHQ8hk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j8Y5+QmtMYnb9fFyr83ru/g+CRkn3TYH+4GKkNtqyQQIRHRvYXuX3tFYctWNjtxw6o8vD49AJiPYfSfrQtrA+qGjv3lvMwJl6LB+RavlaL2KfT9BKf37rsPDRWzVWEyPVdhG9IJisew8r2Vx6T7LdJ5zRAVh9mp8bfdi6ZtsR3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kY0+6ubh; 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="kY0+6ubh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC66AC4CEFB; Tue, 30 Dec 2025 12:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096643; bh=7ezEH2fxl2hxsN81Y+ztQpUq7D0h/i+Z9FmvsIHQ8hk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=kY0+6ubhxvkrTEBdEPCx5/7jPFwdEdF5mc0gUiHqL4RGv3osXCtgTsYIX7HF1ih1Q 3PDRWz7vXKYhz6P3NFameUz9x8Kp1IjtM8q82ZFqIZx314A6xzER12vihxcFOxvl5r t5SZCyibP9QQQ2ygspjAN6dL2aRQ7sWTwrmgjl0o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50814: crypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr Date: Tue, 30 Dec 2025 13:09:18 +0100 Message-ID: <2025123014-CVE-2022-50814-486d@gregkh> X-Mailer: git-send-email 2.52.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=3002; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HyhI2n37lIkxqIBfrL3XEW4hg7FcJoOrhYz55x/82rw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB171mjJ7M5Wr8mh9mWDWkMhytsf99z/3k9c2NqSaR FWbzZPriGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImEdjEsOLG0hH9l1Y8qx73t blJ7Fgn3rmiQYZin/ixj579bgad8it81MNq7PvZa9WoTAA== 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: crypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr KASAN reported this Bug: [17619.659757] BUG: KASAN: global-out-of-bounds in param_get_int+0x34/0x60 [17619.673193] Read of size 4 at addr fffff01332d7ed00 by task read_all/1507958 ... [17619.698934] The buggy address belongs to the variable: [17619.708371] sgl_sge_nr+0x0/0xffffffffffffa300 [hisi_zip] There is a mismatch in hisi_zip when get/set the variable sgl_sge_nr. The type of sgl_sge_nr is u16, and get/set sgl_sge_nr by param_get/set_int. Replacing param_get/set_int to param_get/set_ushort can fix this bug. The Linux kernel CVE team has assigned CVE-2022-50814 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit f081fda293ffba54216a7dab66faba7275475006 and fixed in 5.10.150 with commit d88b88514ef28515ccfa1f1787c2aedef75a79dd Issue introduced in 5.5 with commit f081fda293ffba54216a7dab66faba7275475006 and fixed in 5.15.75 with commit 272093471305261c4e07a2fc97c2d1e53cd56819 Issue introduced in 5.5 with commit f081fda293ffba54216a7dab66faba7275475006 and fixed in 5.19.17 with commit f8a983d6e01b198320d310cb1326364d7d973b2a Issue introduced in 5.5 with commit f081fda293ffba54216a7dab66faba7275475006 and fixed in 6.0.3 with commit 5eaebd19fbb0e26e73a34f55d3b1dc310df0eb15 Issue introduced in 5.5 with commit f081fda293ffba54216a7dab66faba7275475006 and fixed in 6.1 with commit d74f9340097a881869c4c22ca376654cc2516ecc 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-2022-50814 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: drivers/crypto/hisilicon/zip/zip_crypto.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/d88b88514ef28515ccfa1f1787c2aedef75a79dd https://git.kernel.org/stable/c/272093471305261c4e07a2fc97c2d1e53cd56819 https://git.kernel.org/stable/c/f8a983d6e01b198320d310cb1326364d7d973b2a https://git.kernel.org/stable/c/5eaebd19fbb0e26e73a34f55d3b1dc310df0eb15 https://git.kernel.org/stable/c/d74f9340097a881869c4c22ca376654cc2516ecc