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 6C5C1130A78 for ; Wed, 17 Apr 2024 09:44:08 +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=1713347048; cv=none; b=ipfbKUMIaY8hiZyfh0ZSFPAiFKMfsToJOg7YoS8PnQpT1fPeS3RuOsIq+FNACKPM8ilPDccGuJXrErcrRC8WZ4y2xUeRHaS0t3E7Jb/fjPO2fSCfexItGg+mR5/gz0hpxUJdWu/8y0cMbimWQUkexECRqteWR/2+oFrAlV19qYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713347048; c=relaxed/simple; bh=LTZAOBG0xB+bCEe2/YSY4NgBz0IkbP4ksHnAK+zbwnE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VeIfe49OJCX6Ta89He2NZNXOSTgf5h0HIKXp2jqxpQJO25rK+2HbUdztWtEu8bGc6SGmhmSOfy8Oz0a0KpisD9GIvxa5M9pTHDy4oCokZ4qfKy5nyqr0iPg/opR7OSCWCcDnbpjrSIxAQzsfT30FTj+QAddGwp4knyaPB8mZwtg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RmmvqeyS; 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="RmmvqeyS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B724C32781; Wed, 17 Apr 2024 09:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713347047; bh=LTZAOBG0xB+bCEe2/YSY4NgBz0IkbP4ksHnAK+zbwnE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RmmvqeySqZb6XDFI3xrzkNG1Q0wzRpKjjMPn+WQpRa533LQm1P+Hfj4QmWy/JwIpp v3wnYZO09Z2z0KyXW4PDD3V6wOBGj50p0bewToR13cZcuHl7m8qvQtqWjscHehOYVz /SVNt8l6oJiJ0xI98+Dcz+Pz5efk6JJg2Ydq/0ao= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52643: iio: core: fix memleak in iio_device_register_sysfs Date: Wed, 17 Apr 2024 11:44:00 +0200 Message-ID: <2024041701-CVE-2023-52643-8834@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=2300; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LTZAOBG0xB+bCEe2/YSY4NgBz0IkbP4ksHnAK+zbwnE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyMx/azWCce6l82u6S2caOryebq9iYx80uu9t/MzC38 GlsyPM3HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRdakM81Q/dPpffbfgZ6fi LZlZlzNZwxTtTzAsmHm81b3i5y0f1h3JR5/9favukGGrBgA= 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: iio: core: fix memleak in iio_device_register_sysfs When iio_device_register_sysfs_group() fails, we should free iio_dev_opaque->chan_attr_group.attrs to prevent potential memleak. The Linux kernel CVE team has assigned CVE-2023-52643 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 32f171724e5c and fixed in 5.15.149 with commit 1c6d19c8cbf6 Issue introduced in 5.13 with commit 32f171724e5c and fixed in 6.1.79 with commit 359f220d0e75 Issue introduced in 5.13 with commit 32f171724e5c and fixed in 6.6.18 with commit b90126c86d83 Issue introduced in 5.13 with commit 32f171724e5c and fixed in 6.7.6 with commit 3db312e06851 Issue introduced in 5.13 with commit 32f171724e5c and fixed in 6.8 with commit 95a0d596bbd0 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-2023-52643 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/iio/industrialio-core.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/1c6d19c8cbf6abcea2c8fca2db26abca2cbf0363 https://git.kernel.org/stable/c/359f220d0e753bba840eac19ffedcdc816b532f2 https://git.kernel.org/stable/c/b90126c86d83912688501826643ea698f0df1728 https://git.kernel.org/stable/c/3db312e06851996e7fb27cb5a8ccab4c0f9cdb93 https://git.kernel.org/stable/c/95a0d596bbd0552a78e13ced43f2be1038883c81