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 4FA6A22A4FC for ; Thu, 18 Sep 2025 13:59:10 +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=1758203951; cv=none; b=BtbheqQV8je7W0IykcElGFQDOQVnk2znVtz4zq50h/unop2YaOHyVJpguR0v3puhSqVHIqUt88do9PXnaH74uKcCe6zqYeeb3Mtkirt1BoC+wO8Feb+WQpshOLtg3obEyE3IIRDAuaV3GuCLUffH5Q0Qwv/nIw4+l8MPuan9D70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758203951; c=relaxed/simple; bh=hiBA5KNu1T0IU8OzybKmNHN91ICJ+kQqPZO6YRH5F60=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pwaP3iCUnOulV8K3DTt9V6MPFvFn/mO91dUpo6WIHP3ANj6RIdENNa/1MRIwpWFlgbCRoPZbAoH0K41qQVCuWbhMF71wh1Ob+IWSK8iMBKGkAkNzUeQEEryFwtZc4iokZ4vPC4EiJ1E+aYlqmW/u/dqv9vu/A7SL/HaMMwzIBDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SM5XQOBT; 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="SM5XQOBT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 639D2C4CEE7; Thu, 18 Sep 2025 13:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758203950; bh=hiBA5KNu1T0IU8OzybKmNHN91ICJ+kQqPZO6YRH5F60=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SM5XQOBT9wOrZ4kJhM7XFZ5HXzDTLseJQJjvny+yg7/i+GP70B4RznOqo2SGJWEUp zYLVKkztF5VZkYutx9H197TICiLjmBPxLlXb2n6X24XBk0EFvLN59yHlQ7oSahPTEY v78FL1WSArBzB1mPLc/vHmdsWb0xjrvfkjXMdux4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50400: staging: greybus: audio_helper: remove unused and wrong debugfs usage Date: Thu, 18 Sep 2025 15:58:58 +0200 Message-ID: <2025091857-CVE-2022-50400-d99e@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=2772; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gQjtPrqJDnTGTvqw/Qq0hXWMaEp1N19vlCtFBMT/rE4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnBBTPLF/0V/W35qpTUU9N3h3Z/L5vt1f+roWnnTsnr Tg14eNl8Y5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYiOwnhvk+LGGvmzfO3Lh8 ysOpmX6/BM9OKg5nWDDlYq2R4VdfxjX3Vj2/6Ky656cFVwEA 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: staging: greybus: audio_helper: remove unused and wrong debugfs usage In the greybus audio_helper code, the debugfs file for the dapm has the potential to be removed and memory will be leaked. There is also the very real potential for this code to remove ALL debugfs entries from the system, and it seems like this is what will really happen if this code ever runs. This all is very wrong as the greybus audio driver did not create this debugfs file, the sound core did and controls the lifespan of it. So remove all of the debugfs logic from the audio_helper code as there's no way it could be correct. If this really is needed, it can come back with a fixup for the incorrect usage of the debugfs_lookup() call which is what caused this to be noticed at all. The Linux kernel CVE team has assigned CVE-2022-50400 to this issue. Affected and fixed versions =========================== Fixed in 5.10.150 with commit d0febad83e29d85bb66e4f5cac0115b022403338 Fixed in 5.15.75 with commit 4dab0d27a4211a27135a6899d6c737e6e0759a11 Fixed in 5.19.17 with commit 5699afbff1fa2972722e863906c0320d55dd4d58 Fixed in 6.0.3 with commit d835fa49d9589a780ff0d001bb7e6323238a4afb Fixed in 6.1 with commit d517cdeb904ddc0cbebcc959d43596426cac40b0 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-50400 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/staging/greybus/audio_helper.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/d0febad83e29d85bb66e4f5cac0115b022403338 https://git.kernel.org/stable/c/4dab0d27a4211a27135a6899d6c737e6e0759a11 https://git.kernel.org/stable/c/5699afbff1fa2972722e863906c0320d55dd4d58 https://git.kernel.org/stable/c/d835fa49d9589a780ff0d001bb7e6323238a4afb https://git.kernel.org/stable/c/d517cdeb904ddc0cbebcc959d43596426cac40b0