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 D1DF854BDA for ; Sun, 28 Apr 2024 13:06:17 +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=1714309577; cv=none; b=J3jbLhg5MITQe0veDGGGS+Lr09mcmgdjTFVjY9WLXGCz0Q0lAuNruWB3Ppe12GSDY5Tc8cLzMwrkfsPgJDyd9ewglCTwrvS5BnjPK9uwYEzTV+daXesPhyanFVcSSzXIjnWemQ8ZM17c+bHeqQwUEcW8rthX3NpDA9ZA+DnSt9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714309577; c=relaxed/simple; bh=shfXRNj9ixDSUHkdE2i+Ro/NMKGj+rZz/jNedfsI/Lk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QxK2UrO02MaqmMZTJDjIk9DbOXMm0uCRoxXlJXulcEXrhCXdWGmi46BnUcc+65SVFs6ym63kd7Vd+K284nQ41uzMdF74N0fe8dCje8r+SZCmCY6z4EiigUBsROsnHsispTi1N3bjzXdhP2NACY+v+8xFtB4v35kYy5mWPjCRz/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UZjcJsWu; 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="UZjcJsWu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38F9BC2BBFC; Sun, 28 Apr 2024 13:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714309577; bh=shfXRNj9ixDSUHkdE2i+Ro/NMKGj+rZz/jNedfsI/Lk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UZjcJsWuQSUY4wy4ctoGBB2Jm5FpIE0+RWaIuKijPILdPsKFewMoBEFE9AsDLajPs lzeyrQ3OkMGT9EwtbcsbzChogejyr7FqNP3nX0nUHTwn9niD/ugX7GNpMVutdr0xTm Z4wpI9dSktXdp4bUg1mvAXMJqwZnxwRzIQGAF/3k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48661: gpio: mockup: Fix potential resource leakage when register a chip Date: Sun, 28 Apr 2024 15:05:22 +0200 Message-ID: <2024042800-CVE-2022-48661-1b6c@gregkh> X-Mailer: git-send-email 2.44.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=1947; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=shfXRNj9ixDSUHkdE2i+Ro/NMKGj+rZz/jNedfsI/Lk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6njVzeS84+Ib32cwS+GEtlD/xwIulm0S3XEj48nB3o N9BkTu5HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRmskMCzZmHlC8tN7pHNPr ravWl7ue+FLczsEwV1zd6+/39zZu+18+vHXdRPKKcPTZxwA= 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: gpio: mockup: Fix potential resource leakage when register a chip If creation of software node fails, the locally allocated string array is left unfreed. Free it on error path. The Linux kernel CVE team has assigned CVE-2022-48661 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 6fda593f3082 and fixed in 5.15.71 with commit 9b26723e058f Issue introduced in 5.15 with commit 6fda593f3082 and fixed in 5.19.12 with commit 41f857033c44 Issue introduced in 5.15 with commit 6fda593f3082 and fixed in 6.0 with commit 02743c4091cc 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-48661 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/gpio/gpio-mockup.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/9b26723e058faaf11b532fb4aa16d6849d581790 https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872 https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933