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 42D42338F27 for ; Mon, 15 Sep 2025 14:48:12 +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=1757947693; cv=none; b=Gbk+qJC+1Gz/UpsQ8trxpyNy/8my3ybtsQeA1IbEeuuK0vEo3FsqwriXX2aUrN8LFig/hiueRGUTrdZ9hBr+Y1xev7IKMYPGFGvVlmNSVtG0gmU8iLa2GcoZayQN69dm2zaaFzLs3fLgPoFp9rafps0NZwh7dCASIDLZ+Ek3L9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947693; c=relaxed/simple; bh=+g/Z74laXzvZjTNJbZUFElZ4ifEuxjb0WMB0m/f45oI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fP1kHBy4YW4z8ks7/d1IvAvBvoUJvTulVg4G24DqQdJwgK36KDD4WjRxeC/XUVjS6AcqTHX3o1O6Mvy83VwOGhN5Vbn2MKbar0RggrMYXmE7wuFRRpGs6SkUjN3rO6hVUYO5i82LACQjm+YlrlxaoB8RQ7+HHrmSEXIm07FrHFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mWYPomYU; 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="mWYPomYU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C895DC4CEF1; Mon, 15 Sep 2025 14:48:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947692; bh=+g/Z74laXzvZjTNJbZUFElZ4ifEuxjb0WMB0m/f45oI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mWYPomYUxBmpxPfMYqkRKJhNwrubD3zsMv5BSlVZRHFxhCL8WcqgZnJDocAYXLTet ouNRWkv02nRsbNRmF5zAxg/529d0tlkdI5DT830Zsf40aTVR1YZBHwT8IfjJQ+5FjB yTZ4tC87pWqJBxAxMgMOhYsiKkJyCf3r4qJ0Xa/0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50294: wifi: libertas: fix memory leak in lbs_init_adapter() Date: Mon, 15 Sep 2025 16:45:56 +0200 Message-ID: <2025091557-CVE-2022-50294-7c87@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=3290; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D39n3HdY5c5iiW/qDvPTBGoLrqQUnHdj/prDjcXaEt8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1JZefDo5tyfImyv064+fArHvnjBumb/m9umexeuPT Wjaeu3FpY5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYiMMNhvmFZrxdU/5PDb7h YXFj2S1envsaWjkMC9Z1GSv1Kf9dMMes8tGmd6clH1psPwcA 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: wifi: libertas: fix memory leak in lbs_init_adapter() When kfifo_alloc() failed in lbs_init_adapter(), cmd buffer is not released. Add free memory to processing error path. The Linux kernel CVE team has assigned CVE-2022-50294 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 4.14.308 with commit 4c102ad59bfa66c0f6662af64fa3b9007b02c20f Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 4.19.276 with commit 98e0ff6980c89239d9e5d3da90d791c2383dc23a Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 5.4.235 with commit 23b34e08de5c2380414c9d3c33e8235094bcccae Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 5.10.173 with commit 9c8f50c7433bdfba1588831c413136ecc3f29f99 Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 5.15.99 with commit 037f84c0bfae5c436c651d0e804264e2648010ec Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 6.1.16 with commit 653d13a73e498d0bb6aeaf689aaa960defa7878b Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 6.2.3 with commit d46c33f667b05c22bc5c5b69aa730349c4b6fe31 Issue introduced in 2.6.26 with commit 7919b89c8276d657976d4d4d6b7cb58ea1aa08c3 and fixed in 6.3 with commit 16a03958618fb91bb1bc7077cf3211055162cc2f 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-50294 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/net/wireless/marvell/libertas/main.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/4c102ad59bfa66c0f6662af64fa3b9007b02c20f https://git.kernel.org/stable/c/98e0ff6980c89239d9e5d3da90d791c2383dc23a https://git.kernel.org/stable/c/23b34e08de5c2380414c9d3c33e8235094bcccae https://git.kernel.org/stable/c/9c8f50c7433bdfba1588831c413136ecc3f29f99 https://git.kernel.org/stable/c/037f84c0bfae5c436c651d0e804264e2648010ec https://git.kernel.org/stable/c/653d13a73e498d0bb6aeaf689aaa960defa7878b https://git.kernel.org/stable/c/d46c33f667b05c22bc5c5b69aa730349c4b6fe31 https://git.kernel.org/stable/c/16a03958618fb91bb1bc7077cf3211055162cc2f