From mboxrd@z Thu Jan 1 00:00:00 1970 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 AFCAF218AB5 for ; Wed, 26 Feb 2025 02:15:05 +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=1740536105; cv=none; b=C/4bpbjrHKDDRd4FG+/k6UhLFkjYKtUSaA5vCcFKdUE47TA5IgWzG4bPrZEKFqXwA7lGDaL6vlyhvtOrPxbu879tAyVuGb4QtO2OBq8B6iHU7c7q1opf8KH0Z6wsK/hNbqPuHxRksqTC8vU6JpvnEPXOUI0VHPuQDtTXOrNyD4w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536105; c=relaxed/simple; bh=hXTq0VSqDKO/FY4ysgqnVDb/TRSmwUZQDeTuqkPy3OI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e2gj/J6G9XYCJ7fZ4jOLIDVknE9TH84qdTjXsuYGUTs/FGOqY3rBem0wNRUHdpzNkRkq7lJAtVFhqXLq1FFk+v8+ZuJ7ruaTc3jNYR+NHsA/9UNd0XGuz5HZpCZlqAr65w3HaIDd3wocUq3aZe/BCZ892w9HYorH/Q+ypjcKCoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E+HdBlWK; 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="E+HdBlWK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E998C4CEDD; Wed, 26 Feb 2025 02:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536105; bh=hXTq0VSqDKO/FY4ysgqnVDb/TRSmwUZQDeTuqkPy3OI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E+HdBlWKlZDaePm1nrcQl+OpYnYeHyAF5nTj32zKSv7Gs1zEj3xPwLumqqbm9dknM VvxYiJpqB72bn6jy3EPFnD1iZaAHc4EyADwDwY0HCdmkQkK5k8O7Qqol2xTgJhvi3f KAIh+poa0QUqGGhHbUDQ+NKj7QO89tER+R0lvfh4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49500: wl1251: dynamically allocate memory used for DMA Date: Wed, 26 Feb 2025 03:12:54 +0100 Message-ID: <2025022607-CVE-2022-49500-2b04@gregkh> X-Mailer: git-send-email 2.48.1 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=2203; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hXTq0VSqDKO/FY4ysgqnVDb/TRSmwUZQDeTuqkPy3OI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv+feRCjZiXWXpMw54XMpN/3Y74FJBut7vK3Y2op+ Ppb3k24I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSW8AwPzLpH5/ont684D8z L7PcWDBhoWBeL8OC1ZWGp6/PKm1YKVxxabrB3bvlbsLzAQ== 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: wl1251: dynamically allocate memory used for DMA With introduction of vmap'ed stacks, stack parameters can no longer be used for DMA and now leads to kernel panic. It happens at several places for the wl1251 (e.g. when accessed through SDIO) making it unuseable on e.g. the OpenPandora. We solve this by allocating temporary buffers or use wl1251_read32(). Tested on v5.18-rc5 with OpenPandora. The Linux kernel CVE team has assigned CVE-2022-49500 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit a1c510d0adc604bb143c86052bc5be48cbcfa17c and fixed in 5.18.3 with commit da03bbfbf5acd1ab0b074617e865ad1e8a5779ef Issue introduced in 5.18 with commit a1c510d0adc604bb143c86052bc5be48cbcfa17c and fixed in 5.19 with commit 454744754cbf2c21b3fc7344e46e10bee2768094 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-49500 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/ti/wl1251/event.c drivers/net/wireless/ti/wl1251/io.c drivers/net/wireless/ti/wl1251/tx.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/da03bbfbf5acd1ab0b074617e865ad1e8a5779ef https://git.kernel.org/stable/c/454744754cbf2c21b3fc7344e46e10bee2768094