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 C488F291C0C for ; Wed, 18 Jun 2025 11:14:07 +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=1750245247; cv=none; b=isCpHGycQOyUGKdvTfmh9VAEf22rtLXYKSxKFdK+P1WZjEG4X4exHZSoL8FbbXwVLIoKgjbG7F3Y2flcUXot/AbdDpYR3A4c+A2fF9abYvbIzRV1k1rSPZi7FAgZlSnVLYd2jkyqRiTBYFPaeU70u5kssypG/nzcJHzd40OTZ0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245247; c=relaxed/simple; bh=IA+fgBI2Wpa9GDWNWDpje5ve8UFrrZmfz9vB3/MJ5Pc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GBhjRCIyxWaTtONx+gxrmDM7tson4f7SlFCs7DulP8xKf50frSeznnMqUbKwAp7tX8PUNYUyj/iACxBzKY14cukhRQJ38rnBYiTKp1FOz+jhbrXhCr+9KElocUItpE2n5yQ1x+gN7Mpf0ydCGRQf0CMtlLd7ffF6yblTgPexgN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EaSD1moD; 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="EaSD1moD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E94B6C4CEE7; Wed, 18 Jun 2025 11:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245247; bh=IA+fgBI2Wpa9GDWNWDpje5ve8UFrrZmfz9vB3/MJ5Pc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EaSD1moDEpBnXxCHGzNJSKC/kQKDnGaw48R4uC+uSngjy4j7x7ptfX7WsteUQR13m e67EFX4w9mKj7UYWpN5omYhOuup1KXeZOnJxilJl9LYMOhE/gp8OeJBm92d0eXfKIW /wE2uBm1ojdZ2tQeNQWR6zrI+rtGq1FdnNehncYk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50142: intel_th: msu: Fix vmalloced buffers Date: Wed, 18 Jun 2025 13:03:27 +0200 Message-ID: <2025061819-CVE-2022-50142-c569@gregkh> X-Mailer: git-send-email 2.49.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=2979; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cPhg07kUxCAVWacPKVj1GcFO2josENua6uzRP9cUHTg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+pLPpt4PPQ+xTOR68LyfVrJhW9uiGws9jyqPH+C/ v41iz//64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ9K5jmKe54NinFSvFblUt P6FsL9rEkS/qOo9hnv3hD8Et+74cZfvyTPTi4Q17xAy8tgIA 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: intel_th: msu: Fix vmalloced buffers After commit f5ff79fddf0e ("dma-mapping: remove CONFIG_DMA_REMAP") there's a chance of DMA buffer getting allocated via vmalloc(), which messes up the mmapping code: > RIP: msc_mmap_fault [intel_th_msu] > Call Trace: > > __do_fault > do_fault ... Fix this by accounting for vmalloc possibility. The Linux kernel CVE team has assigned CVE-2022-50142 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit ba39bd8306057fb343dfb75d93a76d824b625236 and fixed in 5.4.211 with commit b5d924cb4c7b952eaa61622f14427723a78137a3 Issue introduced in 5.2 with commit ba39bd8306057fb343dfb75d93a76d824b625236 and fixed in 5.10.137 with commit 6ae2881c1d1fa0e33f4763b7c786f8ef05a9c828 Issue introduced in 5.2 with commit ba39bd8306057fb343dfb75d93a76d824b625236 and fixed in 5.15.61 with commit 566887bad7ff2297d6b3f9659c702ba075f3d62d Issue introduced in 5.2 with commit ba39bd8306057fb343dfb75d93a76d824b625236 and fixed in 5.18.18 with commit 0ed72c6bc632cbf8d979ac60f982ff84b7bb610a Issue introduced in 5.2 with commit ba39bd8306057fb343dfb75d93a76d824b625236 and fixed in 5.19.2 with commit 4914c50670b6a531e2cb17cd984cc565b4681312 Issue introduced in 5.2 with commit ba39bd8306057fb343dfb75d93a76d824b625236 and fixed in 6.0 with commit ac12ad3ccf6d386e64a9d6a890595a2509d24edd 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-50142 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/hwtracing/intel_th/msu.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/b5d924cb4c7b952eaa61622f14427723a78137a3 https://git.kernel.org/stable/c/6ae2881c1d1fa0e33f4763b7c786f8ef05a9c828 https://git.kernel.org/stable/c/566887bad7ff2297d6b3f9659c702ba075f3d62d https://git.kernel.org/stable/c/0ed72c6bc632cbf8d979ac60f982ff84b7bb610a https://git.kernel.org/stable/c/4914c50670b6a531e2cb17cd984cc565b4681312 https://git.kernel.org/stable/c/ac12ad3ccf6d386e64a9d6a890595a2509d24edd