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 41DC116E882 for ; Fri, 12 Jul 2024 12:28:22 +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=1720787302; cv=none; b=eQvVXWILT0SCcptmM1zH0aP1FwcYqj23ouKm3uM7W1k3Iy+PX3Jau21kzeHfV+M/SEsTRoWDCNXmO3CFFialnH8eJuNx9/D13t9cAo082jv79WEj1OBuqGhSF8EDeRzTnX9ZFgrFjQ29SFpBGLuqU//PWFAFlty749F5YI1YO8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787302; c=relaxed/simple; bh=dwefKN0pbiOES4CI8k3L+UD86Wi7dD5ADHhd+mEq2bo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yr8BYRZMfQfmUiQPnS3TZXp6utP8KQfuLHMDU3lF2fdTmvsKp2zmAs6I4glt1PtWch0Gkuk0HjyqXrtUlUg5pz2JnFt21L1p9EXqwais+bQ6+eQLhQwKXRTth/B7Ib3eakSR5APEzHh7OkZSDeyvOZsIw3yhg66V6qHGIQlJDuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AE5vMWtE; 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="AE5vMWtE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBCA3C32782; Fri, 12 Jul 2024 12:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787302; bh=dwefKN0pbiOES4CI8k3L+UD86Wi7dD5ADHhd+mEq2bo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AE5vMWtED2rg14AD3sh8qf+lPijp9SkKP1DQahrdwvDE9YRQV0zpljW9ZDcPD/WeO WQFMs4p3u1rXgHoPOT63rIqpZSUVua9XS1S9qqseiCHZ2tYfGzpkJkKWENvdI5xOkn fuwqfiFk4TG3ztcbL/tgLcMTw0aABxwvMSgEyZn8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40941: wifi: iwlwifi: mvm: don't read past the mfuart notifcation Date: Fri, 12 Jul 2024 14:27:39 +0200 Message-ID: <2024071219-CVE-2024-40941-9e5c@gregkh> X-Mailer: git-send-email 2.45.2 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=3000; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dwefKN0pbiOES4CI8k3L+UD86Wi7dD5ADHhd+mEq2bo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFdUr1uSLe31N3VuZuv/BTI6InNP/S96tNjzW8uXfp OLGhMA7HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRKysY5rtcrVnk957ppGZj d2FQjqqJ+MLoOoZ5ZtF71v3f/J7j7twtKU8djjC+UpvLAQA= 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: wifi: iwlwifi: mvm: don't read past the mfuart notifcation In case the firmware sends a notification that claims it has more data than it has, we will read past that was allocated for the notification. Remove the print of the buffer, we won't see it by default. If needed, we can see the content with tracing. This was reported by KFENCE. The Linux kernel CVE team has assigned CVE-2024-40941 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 4.19.317 with commit 15b37c6fab9d Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 5.4.279 with commit 6532f18e66b3 Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 5.10.221 with commit 46c59a253370 Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 5.15.162 with commit 65686118845d Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 6.1.95 with commit a8bc8276af9a Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 6.6.35 with commit a05018739a5e Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 6.9.6 with commit acdfa33c3cf5 Issue introduced in 4.12 with commit bdccdb854f2f and fixed in 6.10-rc3 with commit 4bb95f453548 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-2024-40941 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/intel/iwlwifi/mvm/fw.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/15b37c6fab9d5e40ac399fa1c725118588ed649c https://git.kernel.org/stable/c/6532f18e66b384b8d4b7e5c9caca042faaa9e8de https://git.kernel.org/stable/c/46c59a25337049a2a230ce7f7c3b9f21d0aaaad7 https://git.kernel.org/stable/c/65686118845d427df27ee83a6ddd4885596b0805 https://git.kernel.org/stable/c/a8bc8276af9aeacabb773f0c267cfcdb847c6f2d https://git.kernel.org/stable/c/a05018739a5e6b9dc112c95bd4c59904062c8940 https://git.kernel.org/stable/c/acdfa33c3cf5e1cd185cc1e0486bd0ea9f09c154 https://git.kernel.org/stable/c/4bb95f4535489ed830cf9b34b0a891e384d1aee4