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 AEF5219E999 for ; Wed, 26 Feb 2025 01:59:04 +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=1740535144; cv=none; b=fa/3u3kPdPcScFjMEkDu54iKrGzzji3yEZ+Jom0TeF1JPWVsI5EfQbAQtjLmJabd35OFFSZlWx/u5G/7YDJkJ7RUL0XoX5Eb1IzojgcUibl8xJ5QyOtSGp/2/IIo0Mzs88mqFeF9LL6NYjD/vu3Wd24nFwhY44Qpa2kf2Z3mC7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535144; c=relaxed/simple; bh=jvSqGD5IKiCnqPClYom17OAcLX8rpRisBVmXDGJB/nk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O8YOuFI1noOBlObAjERUBZ+jluQJiwVak+pDqOarm5wHnXzTypDzT+OVc27MJ2Kpvaz18EpZIY2wuPZz8Pjm5vd8Mnbs39SGmwmFf0MQBNjkGIx4W+jWiT/WQLoPFb/A5h5xHwnNDnaIJ+ohhtIt7a2Pk/LSrJhZVv5cr6OHXvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uUlHDkeB; 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="uUlHDkeB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86725C4CEDD; Wed, 26 Feb 2025 01:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535144; bh=jvSqGD5IKiCnqPClYom17OAcLX8rpRisBVmXDGJB/nk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uUlHDkeBiVQGng+1lQrCQ+oqr1eQOPLovjDcKCkkxUQc7UZiy/M+Ofuvs6jQBIrB0 1btciEdeASi2iWG7dRfvIp/76W4/pzLT0EwtrFXH9IPZWNcTCuUYoOkWgmSfoC5h+J D9gTJQnYs++HfhjVqBtmtcLi4gt88DY6iREleMLo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49172: parisc: Fix non-access data TLB cache flush faults Date: Wed, 26 Feb 2025 02:56:17 +0100 Message-ID: <2025022612-CVE-2022-49172-3fe3@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=2525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jvSqGD5IKiCnqPClYom17OAcLX8rpRisBVmXDGJB/nk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Slz/hu6+YmjOENnK8tqQ59a8SN5jm08dL7uvdf1UE dvM/u9VHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARkdMM88vVojbZLTpw/aed yIJLT2Yf9d528irDgpPvTpzqdVxqtmKS0H4Z5bIHuVeTswE= 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: parisc: Fix non-access data TLB cache flush faults When a page is not present, we get non-access data TLB faults from the fdc and fic instructions in flush_user_dcache_range_asm and flush_user_icache_range_asm. When these occur, the cache line is not invalidated and potentially we get memory corruption. The problem was hidden by the nullification of the flush instructions. These faults also affect performance. With pa8800/pa8900 processors, there will be 32 faults per 4 KB page since the cache line is 128 bytes. There will be more faults with earlier processors. The problem is fixed by using flush_cache_pages(). It does the flush using a tmp alias mapping. The flush_cache_pages() call in flush_cache_range() flushed too large a range. V2: Remove unnecessary preempt_disable() and preempt_enable() calls. The Linux kernel CVE team has assigned CVE-2022-49172 to this issue. Affected and fixed versions =========================== Fixed in 5.16.19 with commit b3d6adb3a49d82e4e557c5fc16f50c9ff731da5d Fixed in 5.17.2 with commit ddca4b82027e2a66333dd40fab21a4beff435c7e Fixed in 5.18 with commit f839e5f1cef36ce268950c387129b1bfefdaebc9 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-49172 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: arch/parisc/kernel/cache.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/b3d6adb3a49d82e4e557c5fc16f50c9ff731da5d https://git.kernel.org/stable/c/ddca4b82027e2a66333dd40fab21a4beff435c7e https://git.kernel.org/stable/c/f839e5f1cef36ce268950c387129b1bfefdaebc9