CVE-2022-50700
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
24/12/2025
Última modificación:
29/12/2025
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
wifi: ath10k: Delay the unmapping of the buffer<br />
<br />
On WCN3990, we are seeing a rare scenario where copy engine hardware is<br />
sending a copy complete interrupt to the host driver while still<br />
processing the buffer that the driver has sent, this is leading into an<br />
SMMU fault triggering kernel panic. This is happening on copy engine<br />
channel 3 (CE3) where the driver normally enqueues WMI commands to the<br />
firmware. Upon receiving a copy complete interrupt, host driver will<br />
immediately unmap and frees the buffer presuming that hardware has<br />
processed the buffer. In the issue case, upon receiving copy complete<br />
interrupt, host driver will unmap and free the buffer but since hardware<br />
is still accessing the buffer (which in this case got unmapped in<br />
parallel), SMMU hardware will trigger an SMMU fault resulting in a<br />
kernel panic.<br />
<br />
In order to avoid this, as a work around, add a delay before unmapping<br />
the copy engine source DMA buffer. This is conditionally done for<br />
WCN3990 and only for the CE3 channel where issue is seen.<br />
<br />
Below is the crash signature:<br />
<br />
wifi smmu error: kernel: [ 10.120965] arm-smmu 15000000.iommu: Unhandled<br />
context fault: fsr=0x402, iova=0x7fdfd8ac0,<br />
fsynr=0x500003,cbfrsynra=0xc1, cb=6 arm-smmu 15000000.iommu: Unhandled<br />
context fault:fsr=0x402, iova=0x7fe06fdc0, fsynr=0x710003,<br />
cbfrsynra=0xc1, cb=6 qcom-q6v5-mss 4080000.remoteproc: fatal error<br />
received: err_qdi.c:1040:EF:wlan_process:0x1:WLAN RT:0x2091:<br />
cmnos_thread.c:3998:Asserted in copy_engine.c:AXI_ERROR_DETECTED:2149<br />
remoteproc remoteproc0: crash detected in<br />
4080000.remoteproc: type fatal error remoteproc remoteproc0:<br />
handling crash #1 in 4080000.remoteproc<br />
<br />
pc : __arm_lpae_unmap+0x500/0x514<br />
lr : __arm_lpae_unmap+0x4bc/0x514<br />
sp : ffffffc011ffb530<br />
x29: ffffffc011ffb590 x28: 0000000000000000<br />
x27: 0000000000000000 x26: 0000000000000004<br />
x25: 0000000000000003 x24: ffffffc011ffb890<br />
x23: ffffffa762ef9be0 x22: ffffffa77244ef00<br />
x21: 0000000000000009 x20: 00000007fff7c000<br />
x19: 0000000000000003 x18: 0000000000000000<br />
x17: 0000000000000004 x16: ffffffd7a357d9f0<br />
x15: 0000000000000000 x14: 00fd5d4fa7ffffff<br />
x13: 000000000000000e x12: 0000000000000000<br />
x11: 00000000ffffffff x10: 00000000fffffe00<br />
x9 : 000000000000017c x8 : 000000000000000c<br />
x7 : 0000000000000000 x6 : ffffffa762ef9000<br />
x5 : 0000000000000003 x4 : 0000000000000004<br />
x3 : 0000000000001000 x2 : 00000007fff7c000<br />
x1 : ffffffc011ffb890 x0 : 0000000000000000 Call trace:<br />
__arm_lpae_unmap+0x500/0x514<br />
__arm_lpae_unmap+0x4bc/0x514<br />
__arm_lpae_unmap+0x4bc/0x514<br />
arm_lpae_unmap_pages+0x78/0xa4<br />
arm_smmu_unmap_pages+0x78/0x104<br />
__iommu_unmap+0xc8/0x1e4<br />
iommu_unmap_fast+0x38/0x48<br />
__iommu_dma_unmap+0x84/0x104<br />
iommu_dma_free+0x34/0x50<br />
dma_free_attrs+0xa4/0xd0<br />
ath10k_htt_rx_free+0xc4/0xf4 [ath10k_core] ath10k_core_stop+0x64/0x7c<br />
[ath10k_core]<br />
ath10k_halt+0x11c/0x180 [ath10k_core]<br />
ath10k_stop+0x54/0x94 [ath10k_core]<br />
drv_stop+0x48/0x1c8 [mac80211]<br />
ieee80211_do_open+0x638/0x77c [mac80211] ieee80211_open+0x48/0x5c<br />
[mac80211]<br />
__dev_open+0xb4/0x174<br />
__dev_change_flags+0xc4/0x1dc<br />
dev_change_flags+0x3c/0x7c<br />
devinet_ioctl+0x2b4/0x580<br />
inet_ioctl+0xb0/0x1b4<br />
sock_do_ioctl+0x4c/0x16c<br />
compat_ifreq_ioctl+0x1cc/0x35c<br />
compat_sock_ioctl+0x110/0x2ac<br />
__arm64_compat_sys_ioctl+0xf4/0x3e0<br />
el0_svc_common+0xb4/0x17c<br />
el0_svc_compat_handler+0x2c/0x58<br />
el0_svc_compat+0x8/0x2c<br />
<br />
Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.2.0-01387-QCAHLSWMTPLZ-1



