CVE-2023-53361: LoongArch: mm: Add p?d_leaf() definitions
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: mm: Add p?d_leaf() definitions
When I do LTP test, LTP test case ksm06 caused panic at
break_ksm_pmd_entry -> pmd_leaf (Huge page table but False) -> pte_present (panic)
The reason is pmd_leaf() is not defined, So like commit 501b81046701 ("mips: mm: add p?d_leaf() definitions") add p?d_leaf() definition for LoongArch.
The Linux kernel CVE team has assigned CVE-2023-53361 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit 09cfefb7fa70c3af011b0db0a513fd80b2f18abc and fixed in 6.1.53 with commit cc9bf2d62f196ec600f9e6ea3a6ced11f54a2df9 Issue introduced in 5.19 with commit 09cfefb7fa70c3af011b0db0a513fd80b2f18abc and fixed in 6.4.16 with commit 593ad636bac41d67bdc44c83c6945015471313fc Issue introduced in 5.19 with commit 09cfefb7fa70c3af011b0db0a513fd80b2f18abc and fixed in 6.5.3 with commit 77aaf22a9200b9557793c96debead911b80acc1c Issue introduced in 5.19 with commit 09cfefb7fa70c3af011b0db0a513fd80b2f18abc and fixed in 6.6 with commit 303be4b33562a5b689261ced1616bf16ad49efa7
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-2023-53361
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/loongarch/include/asm/pgtable.h
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/cc9bf2d62f196ec600f9e6ea3a6ced11f54a2df9 https://git.kernel.org/stable/c/593ad636bac41d67bdc44c83c6945015471313fc https://git.kernel.org/stable/c/77aaf22a9200b9557793c96debead911b80acc1c https://git.kernel.org/stable/c/303be4b33562a5b689261ced1616bf16ad49efa7