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 827ED2E54BF for ; Tue, 7 Oct 2025 15:23:50 +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=1759850631; cv=none; b=p40UIjn6wBIHKv6ox+L2wqVdyFHJLGqGbkZ7fqDWUtriTlaw/qI9hc4R/45xXcFrPFsaeJjASXdncRKhsvr3aqYoQFcpTop2Q1ijfa13rTNlSDfONiXhBTLvvjf8Y/h2qDwSFeWdfj7L0rdZoyX0iYYSwOL24JuOAe132QhdeZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850631; c=relaxed/simple; bh=bm2pj8KGyT0hnBAjFBIR9YE87qHAaUc6yLdhZlXhd50=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oTjPx02oFQLUjHZtHd0EAx9fqOirY+mbAKpF8nO7SAF1eA3q5LcApM7yV2GmgR+HELJLbgzCK0lEKmCzWmloApkUh9654Bcfk9vb5a1hWp6bHt5KgIazdIUqcVW9MwcRQD7Pm95Vxb/T8HOKsSkO0lra1GU4/baKw+3GnPaHErw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zeg2UB7i; 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="Zeg2UB7i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7455C4CEF1; Tue, 7 Oct 2025 15:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850630; bh=bm2pj8KGyT0hnBAjFBIR9YE87qHAaUc6yLdhZlXhd50=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Zeg2UB7incGHTWQA4u1ERLaC9iX57kbYBNUlGMEalFXXUOHYBR+sh+rUasrh3/6s3 DHsodhnKZenfmD5BbkEtl2YQLXYh+zxQk3MzCO3ibLaxRHc5cpXgKvQGI3AhnfKB4v VAuBW/4eeKF3SDecgOyMmBatA+TAWRmrbIE2CBE8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50537: firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe() Date: Tue, 7 Oct 2025 17:20:55 +0200 Message-ID: <2025100754-CVE-2022-50537-897a@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=2717; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PRhdjdjU78LfI/klaiZ/VeJRvkl2SbpHd5bp1IXWv9k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9a+l/Iu34rH0fOl2cGfEPdnIOSt4rmu4c03d+tcvS va+nlRFRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk6D2GeYahfmnzT55ecZFp nUfa9xvdbBdrSxjmu04xadd7L9X615Bfs3NiZ9hC4fzZAA== 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: firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe() In rpi_firmware_probe(), if mbox_request_channel() fails, the 'fw' will not be freed through rpi_firmware_delete(), fix this leak by calling kfree() in the error path. The Linux kernel CVE team has assigned CVE-2022-50537 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.65 with commit 60831f5ae6c713afceb6d29f40899ed112f36059 and fixed in 5.10.163 with commit d34742245e4366579f9a80f8cfe4a63248e838e0 Issue introduced in 5.13 with commit 1e7c57355a3bc617fc220234889e49fe722a6305 and fixed in 5.15.86 with commit b308fdedef095aac14569f810d46edf773ea7d1e Issue introduced in 5.13 with commit 1e7c57355a3bc617fc220234889e49fe722a6305 and fixed in 6.0.16 with commit 6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34 Issue introduced in 5.13 with commit 1e7c57355a3bc617fc220234889e49fe722a6305 and fixed in 6.1.2 with commit 71d2abab374f707ab8ac8dcef191fd2b3b67b8bd Issue introduced in 5.13 with commit 1e7c57355a3bc617fc220234889e49fe722a6305 and fixed in 6.2 with commit 7b51161696e803fd5f9ad55b20a64c2df313f95c 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-50537 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/firmware/raspberrypi.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/62ac943eb2a9d655e431b9bc98ff6d7bd51a0e49 https://git.kernel.org/stable/c/d34742245e4366579f9a80f8cfe4a63248e838e0 https://git.kernel.org/stable/c/b308fdedef095aac14569f810d46edf773ea7d1e https://git.kernel.org/stable/c/6757dd2193fe18c5c5fe3050e7f2ff9dcbd1ff34 https://git.kernel.org/stable/c/71d2abab374f707ab8ac8dcef191fd2b3b67b8bd https://git.kernel.org/stable/c/7b51161696e803fd5f9ad55b20a64c2df313f95c