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 5EE3A215764 for ; Wed, 26 Feb 2025 02:13:55 +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=1740536035; cv=none; b=IOvtAXD3QnoENrY32KMItgP2sTCh6cpICsvZi6VF7ETtb7gT/tcCSppQfjTFXajG5w5ki5ADdboSbeXZ9P/Tp1vGi3fGE8p4Hbjj1QS90xEgflDOq8vI9L+Lbpt2JVBhQoWcausCLYKIp05RuYAAhSJinGznaQzzifY+D5wchw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536035; c=relaxed/simple; bh=WNVCUZlY2PXb1lShe9C+pQSPX5AENSgRaX6COBk0ylg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A8JKExIRxiSw3LHSrKtBJbOvAmxb8E3bgnIK4j6sozHr/SxZPTILIrT9JM6cZDG8hJCn3Lsg9x4UA6qDXT2/a4jSJj72Qa2zvRwOibkKiKcSQH0yWL7mQ0k36NSSoFwnwRdnS6vNeMYHxhc097pTum/h32URDnSIPhhRg3MwVls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FeaJvQ7G; 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="FeaJvQ7G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CEF3C4CEDD; Wed, 26 Feb 2025 02:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536035; bh=WNVCUZlY2PXb1lShe9C+pQSPX5AENSgRaX6COBk0ylg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FeaJvQ7Gjaec5N1cOTbjYJFfJGY5Q9SmprzqHgeHfR+IKpsf0R4EQtWwoRLIIMK3K egI4kzyCESBorWWqjzN+bQwCvUAOe2t214TH5mcCbIau0S6b0xTP94RzJZllLD9/14 t238tOicaHI7O7NghXIho0nLYs1yJpxCVnWtrUkU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49403: lib/string_helpers: fix not adding strarray to device's resource list Date: Wed, 26 Feb 2025 03:11:17 +0100 Message-ID: <2025022651-CVE-2022-49403-cd89@gregkh> X-Mailer: git-send-email 2.48.1 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=2228; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WNVCUZlY2PXb1lShe9C+pQSPX5AENSgRaX6COBk0ylg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yt9zvQg+2mntdXb9Lqcd4rxvxDuLLT5M6GcyLGEU3 bEnI8mqI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZiyMKwYNLcY25xUQfFTmsu Xt2z+dOpxDsnxRjmmbR0mfzVmXDcb+cUMYNHH/Z9e7L6MwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: lib/string_helpers: fix not adding strarray to device's resource list Add allocated strarray to device's resource list. This is a must to automatically release strarray when the device disappears. Without this fix we have a memory leak in the few drivers which use devm_kasprintf_strarray(). The Linux kernel CVE team has assigned CVE-2022-49403 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit acdb89b6c87a2d7b5c48a82756e6f5c6f599f60a and fixed in 5.17.14 with commit a152eb42fcecfe41239c3c6695342f3a128593e7 Issue introduced in 5.17 with commit acdb89b6c87a2d7b5c48a82756e6f5c6f599f60a and fixed in 5.18.3 with commit bf29edab0c9ff3d2633b8306a67d04c357e2a385 Issue introduced in 5.17 with commit acdb89b6c87a2d7b5c48a82756e6f5c6f599f60a and fixed in 5.19 with commit cd290a9839cee2f6641558877e707bd373c8f6f1 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-49403 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/string_helpers.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/a152eb42fcecfe41239c3c6695342f3a128593e7 https://git.kernel.org/stable/c/bf29edab0c9ff3d2633b8306a67d04c357e2a385 https://git.kernel.org/stable/c/cd290a9839cee2f6641558877e707bd373c8f6f1