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 8FEB330CDB0 for ; Thu, 18 Sep 2025 16:04:36 +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=1758211476; cv=none; b=EIxUlePkrGJr764Ip4y3KMav2dM4q/kPOcpx/dJHjw1XkqxN6bQ+riIixDIvIBv7pP5D7eqG87GjdwGShqehLpGzJ/v2+C6yF0HHb0RECxXOQ1zx75hYsF+bw4Pae2GEdKZnViych9Nuw2i6XIAM0r9vUU7ilyFTKnbVHO8he+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211476; c=relaxed/simple; bh=AVk/hxxQvg5GyIKLk7YGlPlQNlSoiN7gX5ox+DGqt/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=saDQ/rvp4YpzGrW152xO8BZpSkoP9TY/jlPVVHAO76VJm2efvTQ8PKCb0q6Gqik03oZrLhKKnuEHOVPukPTneyeLca9EwnMBZ4X3nvg8Lui9HYokGWZrpVZ8HHO/bGWnPGSNQwzwFLsiPFK+NMPH+VUgI2Ge1XjRVTsOMwVHlF8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hDBWkADJ; 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="hDBWkADJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D2A8C4CEE7; Thu, 18 Sep 2025 16:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211476; bh=AVk/hxxQvg5GyIKLk7YGlPlQNlSoiN7gX5ox+DGqt/w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hDBWkADJ3+I3Bz5OW3/5EeBM8rwMCqEX+K/4AXKJF4Z8eCeOOsALCTnVDp44ES835 PdGUpG5U9K4EKK/v8A4Op6dYNZsfF4Z4JQSb/XwDgy79oyj00+lyRAw2zPKKVhXhc7 RaiwvDvymotGAfKN2H/z4ck4BEJY2L+z87M/Fcr4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50407: crypto: hisilicon/qm - increase the memory of local variables Date: Thu, 18 Sep 2025 18:03:57 +0200 Message-ID: <2025091853-CVE-2022-50407-e539@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2030; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tigTSsfytU/B4r9kMKuYc2wYyBAMBgwP3l4geyt7GXQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlndDOnXGczFXcULBN8b3psiWy3zz9HBkn+je84MxYoN 20o8XTuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImE+zDMD1vqpxzPLTRZQvxQ tkd1c4S8584Ihvnx1fdETqTGBy/6ZHpjmm1YXail/GsA 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/qm - increase the memory of local variables Increase the buffer to prevent stack overflow by fuzz test. The maximum length of the qos configuration buffer is 256 bytes. Currently, the value of the 'val buffer' is only 32 bytes. The sscanf does not check the dest memory length. So the 'val buffer' may stack overflow. The Linux kernel CVE team has assigned CVE-2022-50407 to this issue. Affected and fixed versions =========================== Fixed in 6.0.16 with commit 34c4f8ad45b4ea814c7ecc3f23a2d292959d5a52 Fixed in 6.1.2 with commit fc521abb6ee4b8f06fdfc52646140dab6a2ed334 Fixed in 6.2 with commit 3efe90af4c0c46c58dba1b306de142827153d9c0 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-50407 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/qm.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/34c4f8ad45b4ea814c7ecc3f23a2d292959d5a52 https://git.kernel.org/stable/c/fc521abb6ee4b8f06fdfc52646140dab6a2ed334 https://git.kernel.org/stable/c/3efe90af4c0c46c58dba1b306de142827153d9c0