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 BD7D330F813 for ; Mon, 15 Sep 2025 14:22:01 +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=1757946121; cv=none; b=fOC3J5SJ5Fbqj1KYdCFvMINYyy5SmkUwl6MZtd//xL+eFZ0TjPpBDaeggWy2guv4RtRuwOdW/kxEp5sVAtOXQ4Bgt2ZrP6m4p4r79zrgq88aApjgiQ6W/6I+XXDr0YwruNm49qPWqisFH3Uzg6xQtCOuUKgHsCXpbfAA+AZ22Jw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946121; c=relaxed/simple; bh=+TpkN7b2p4hb1eoB2VKn9FWhZ9GuPeHJVyxqThVGdEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RS6Iy5s3SI6xtAYbna+mIMSV3B5iY6RtBnRtoW6/cBJvAaFhthCw+tgyV2ZPRVwtbjbvNU+BWFJMeWo5IWkvWNQXVOziW3FRYgbO/NywASsrdMNcY8Wufqb3ZcNSxft+F/eKIoZEtRi+SqlEiND9uQUcahSmoXEhLDYUJaUSdxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pXYtF9e5; 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="pXYtF9e5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F927C4CEF1; Mon, 15 Sep 2025 14:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946121; bh=+TpkN7b2p4hb1eoB2VKn9FWhZ9GuPeHJVyxqThVGdEY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pXYtF9e5ATGaLpB95+gG7WCmFMmGmCiEZ303PL3JY7sjZrolnhcNbFlq6NqEr9Jsa /+9u+MMpmn2WO/FolB0AKJPDOLlNGkXRH9Qdv+ERVZJMornZ15eTrS3+t7OEQqGsmD CAFl45mAOma4QpWi4eYnDBUoSn12xAkVjIq1ZmlI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50278: PNP: fix name memory leak in pnp_alloc_dev() Date: Mon, 15 Sep 2025 16:21:20 +0200 Message-ID: <2025091506-CVE-2022-50278-fcc9@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=3565; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8zwxdevvW4UiN3CMBR4Z3MiwCHXMe1/el5Dss+DFtMI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFC45HlOKKOva2/D//WXRNSsXx7pLXVVR1Fymxxy+y mNRv79qRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkXQHDgg1lT3b/ffrkp+tv Bx8PrZOXGp23cDPMYmKL3/I6Qe+NyEOvoP3FHYIPdHl2AgA= 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: PNP: fix name memory leak in pnp_alloc_dev() After commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, move dev_set_name() after pnp_add_id() to avoid memory leak. The Linux kernel CVE team has assigned CVE-2022-50278 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 4.9.337 with commit ea77b4b761cd75e5456f677311babfa0418f289a Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 4.14.303 with commit 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 4.19.270 with commit bbcf772216aa237036cc3ae3158288d0a95aaf4d Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 5.4.229 with commit 81b024df4755e6bb6993b786584eca6eabbb9791 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 5.10.163 with commit dac87e295cddc8ab316cff14ab2071b5221d84fa Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 5.15.86 with commit c12b314bb23dc0c83e03402cc84574700947e3b2 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 6.0.16 with commit 1f50c7497a5f89de0c31f2edf086af41ff834320 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 6.1.2 with commit 290dd73b943c95c006df973257076ff163adf4d0 Issue introduced in 2.6.30 with commit 1fa5ae857bb14f6046205171d98506d8112dd74e and fixed in 6.2 with commit 110d7b0325c55ff3620073ba4201845f59e22ebf 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-50278 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/pnp/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/ea77b4b761cd75e5456f677311babfa0418f289a https://git.kernel.org/stable/c/693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa https://git.kernel.org/stable/c/bbcf772216aa237036cc3ae3158288d0a95aaf4d https://git.kernel.org/stable/c/81b024df4755e6bb6993b786584eca6eabbb9791 https://git.kernel.org/stable/c/dac87e295cddc8ab316cff14ab2071b5221d84fa https://git.kernel.org/stable/c/c12b314bb23dc0c83e03402cc84574700947e3b2 https://git.kernel.org/stable/c/1f50c7497a5f89de0c31f2edf086af41ff834320 https://git.kernel.org/stable/c/290dd73b943c95c006df973257076ff163adf4d0 https://git.kernel.org/stable/c/110d7b0325c55ff3620073ba4201845f59e22ebf