CVE-2023-54322: arm64: set __exception_irq_entry with __irq_entry as a default
In the Linux kernel, the following vulnerability has been resolved:
arm64: set exceptionirqentry with irqentry as a default
filterirqstacks() is supposed to cut entries which are related irq entries from its call stack. And inirqentrytext() which is called by filterirqstacks() uses irqentrytextstart/end symbol to find irq entries in callstack.
But it doesn't work correctly as without "CONFIGFUNCTIONGRAPHTRACER", arm64 kernel doesn't include gichandleirq which is entry point of arm64 irq between irqentrytextstart and irqentrytextend as we discussed in below link. https://lore.kernel.org/all/CACT4Y+aReMGLYua2rCLHgFpS9io5cZC04Q8GLs-uNmrn1ezxYQ@mail.gmail.com/#t
This problem can makes unintentional deep call stack entries especially in KASAN enabled situation as below.
[ 2479.383395]I[0:launcher-loader: 1719] Stack depot reached limit capacity [ 2479.383538]I[0:launcher-loader: 1719] WARNING: CPU: 0 PID: 1719 at lib/stackdepot.c:129 stackdepotsave+0x464/0x46c [ 2479.385693]I[0:launcher-loader: 1719] pstate: 624000c5 (nZCv daIF +PAN -UAO +TCO -DIT -SSBS BTYPE=--) [ 2479.385724]I[0:launcher-loader: 1719] pc : stackdepotsave+0x464/0x46c [ 2479.385751]I[0:launcher-loader: 1719] lr : stackdepotsave+0x460/0x46c [ 2479.385774]I[0:launcher-loader: 1719] sp : ffffffc0080073c0 [ 2479.385793]I[0:launcher-loader: 1719] x29: ffffffc0080073e0 x28: ffffffd00b78a000 x27: 0000000000000000 [ 2479.385839]I[0:launcher-loader: 1719] x26: 000000000004d1dd x25: ffffff891474f000 x24: 00000000ca64d1dd [ 2479.385882]I[0:launcher-loader: 1719] x23: 0000000000000200 x22: 0000000000000220 x21: 0000000000000040 [ 2479.385925]I[0:launcher-loader: 1719] x20: ffffffc008007440 x19: 0000000000000000 x18: 0000000000000000 [ 2479.385969]I[0:launcher-loader: 1719] x17: 2065726568207475 x16: 000000000000005e x15: 2d2d2d2d2d2d2d20 [ 2479.386013]I[0:launcher-loader: 1719] x14: 5d39313731203a72 x13: 00000000002f6b30 x12: 00000000002f6af8 [ 2479.386057]I[0:launcher-loader: 1719] x11: 00000000ffffffff x10: ffffffb90aacf000 x9 : e8a74a6c16008800 [ 2479.386101]I[0:launcher-loader: 1719] x8 : e8a74a6c16008800 x7 : 00000000002f6b30 x6 : 00000000002f6af8 [ 2479.386145]I[0:launcher-loader: 1719] x5 : ffffffc0080070c8 x4 : ffffffd00b192380 x3 : ffffffd0092b313c [ 2479.386189]I[0:launcher-loader: 1719] x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000022 [ 2479.386231]I[0:launcher-loader: 1719] Call trace: [ 2479.386248]I[0:launcher-loader: 1719] stackdepotsave+0x464/0x46c [ 2479.386273]I[0:launcher-loader: 1719] kasansavestack+0x58/0x70 [ 2479.386303]I[0:launcher-loader: 1719] savestackinfo+0x34/0x138 [ 2479.386331]I[0:launcher-loader: 1719] kasansavefreeinfo+0x18/0x24 [ 2479.386358]I[0:launcher-loader: 1719] kasanslabfree+0x16c/0x170 [ 2479.386385]I[0:launcher-loader: 1719] kasanslabfree+0x10/0x20 [ 2479.386410]I[0:launcher-loader: 1719] kmemcachefree+0x238/0x53c [ 2479.386435]I[0:launcher-loader: 1719] mempoolfreeslab+0x1c/0x28 [ 2479.386460]I[0:launcher-loader: 1719] mempoolfree+0x7c/0x1a0 [ 2479.386484]I[0:launcher-loader: 1719] bvecfree+0x34/0x80 [ 2479.386514]I[0:launcher-loader: 1719] biofree+0x60/0x98 [ 2479.386540]I[0:launcher-loader: 1719] bioput+0x50/0x21c [ 2479.386567]I[0:launcher-loader: 1719] f2fswriteendio+0x4ac/0x4d0 [ 2479.386594]I[0:launcher-loader: 1719] bioendio+0x2dc/0x300 [ 2479.386622]I[0:launcher-loader: 1719] dmiocomplete+0x324/0x37c [ 2479.386650]I[0:launcher-loader: 1719] dmiodecpending+0x60/0xa4 [ 2479.386676]I[0:launcher-loader: 1719] cloneendio+0xf8/0x2f0 [ 2479.386700]I[0:launcher-loader: 1719] bioendio+0x2dc/0x300 [ 2479.386727]I[0:launcher-loader: 1719] blkupdaterequest+0x258/0x63c [ 2479.386754]I[0:launcher-loader: 1719] scsiendrequest+0x50/0x304 [ 2479.386782]I[0:launcher-loader: 1719] scsiiocompletion+0x88/0x160 [ 2479.386808]I[0:launcher-loader: 1719] scsifinishcommand+0x17c/0x194 [ 2479.386833]I ---truncated---
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.4.11-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.188 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.150 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.175 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.4.7 - Upgrade
Upgrade
ubuntu/linux-aws-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1063.69~20.04.1 - Upgrade
Upgrade
ubuntu/linux-azure-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1065.74~20.04.1 - Upgrade
Upgrade
ubuntu/linux-gcp-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1062.70~20.04.1 - Upgrade
Upgrade
ubuntu/linux-hwe-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-113.123~20.04.1 - Upgrade
Upgrade
ubuntu/linux-ibm-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1057.60~20.04.1 - Upgrade
Upgrade
ubuntu/linux-intel-iotg-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1058.64~20.04.1 - Upgrade
Upgrade
ubuntu/linux-lowlatency-hwe-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-110.120~20.04.1 - Upgrade
Upgrade
ubuntu/linux-nvidia-tegra-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1027.27~20.04.1 - Upgrade
Upgrade
ubuntu/linux-oracle-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1061.67~20.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1059.63~20.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 5.15.0-112.122 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 5.15.0-1063.69 - Upgrade
Upgrade
ubuntu/linux-azureto a version that resolves this vulnerability.Fixed in 5.15.0-1066.75 - Upgrade
Upgrade
ubuntu/linux-azure-fdeto a version that resolves this vulnerability.Fixed in 5.15.0-1067.76.1 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 5.15.0-1062.70 - Upgrade
Upgrade
ubuntu/linux-gketo a version that resolves this vulnerability.Fixed in 5.15.0-1060.66 - Upgrade
Upgrade
ubuntu/linux-gkeopto a version that resolves this vulnerability.Fixed in 5.15.0-1046.53 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 5.15.0-1056.59 - Upgrade
Upgrade
ubuntu/linux-intel-iotgto a version that resolves this vulnerability.Fixed in 5.15.0-1058.64 - Upgrade
Upgrade
ubuntu/linux-kvmto a version that resolves this vulnerability.Fixed in 5.15.0-1060.65 - Upgrade
Upgrade
ubuntu/linux-lowlatencyto a version that resolves this vulnerability.Fixed in 5.15.0-110.120 - Upgrade
Upgrade
ubuntu/linux-nvidiato a version that resolves this vulnerability.Fixed in 5.15.0-1058.59 - Upgrade
Upgrade
ubuntu/linux-nvidia-tegrato a version that resolves this vulnerability.Fixed in 5.15.0-1026.26 - Upgrade
Upgrade
ubuntu/linux-nvidia-tegra-igxto a version that resolves this vulnerability.Fixed in 5.15.0-1015.15 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 5.15.0-1061.67 - Upgrade
Upgrade
ubuntu/linux-raspito a version that resolves this vulnerability.Fixed in 5.15.0-1058.61 - Upgrade
Upgrade
ubuntu/linux-xilinx-zynqmpto a version that resolves this vulnerability.Fixed in 5.15.0-1030.34 - Upgrade
Upgrade
ubuntu/linux-bluefieldto a version that resolves this vulnerability.Fixed in 5.15.0-1044.46 - Upgrade
Upgrade
ubuntu/linux-intel-iot-realtimeto a version that resolves this vulnerability.Fixed in 5.15.0-1056.58 - Upgrade
Upgrade
ubuntu/linux-realtimeto a version that resolves this vulnerability.Fixed in 5.15.0-1064.72 - Upgrade
Upgrade
ubuntu/linux-aws-fipsto a version that resolves this vulnerability.Fixed in 5.15.0-1063.69+fips1 - Upgrade
Upgrade
ubuntu/linux-azure-fipsto a version that resolves this vulnerability.Fixed in 5.15.0-1065.74+fips1 - Upgrade
Upgrade
ubuntu/linux-fipsto a version that resolves this vulnerability.Fixed in 5.15.0-111.121+fips1 - Upgrade
Upgrade
ubuntu/linux-gcp-fipsto a version that resolves this vulnerability.Fixed in 5.15.0-1062.70+fips1
Event History
Frequently Asked Questions
What is the severity of CVE-2023-54322?
CVE-2023-54322 has a medium severity rating due to potential impacts on system stability.
What systems are affected by CVE-2023-54322?
CVE-2023-54322 affects the Linux kernel, particularly on arm64 architectures.
How do I fix CVE-2023-54322?
To fix CVE-2023-54322, update your Linux kernel to the latest stable version provided by your distribution.
What are the potential consequences of CVE-2023-54322?
The consequences of CVE-2023-54322 may include instability in interrupt handling and risks to system performance.
Is there a workaround for CVE-2023-54322?
Currently, there are no known workarounds for CVE-2023-54322; updating the kernel is recommended.