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 0478A289371 for ; Thu, 10 Jul 2025 07:42:47 +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=1752133368; cv=none; b=S0ih2wKYiFbezDWTqFPBQehSzeC/x6Jass+hRlo3WScbn58FSnlYpFu20fnCzrk4v2JTqfe0aebzne/t30OKN10V4Qg0R0bJMBEvmbCMqMiBEcfbDx+cEVgMDBiR/88uftc415aDnEC5gnQ2zxKKykBpcnqufFqu5nozMhKdiRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133368; c=relaxed/simple; bh=9ze+dcq6ldRRBnN4OneGJnWKmKDim7ofSAP1/DccwI8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PTjyhr/xEcPt3+chLKXQW8nn23mhD5w/DcjCtLdtQDA9H9ny40ya7HZ3PHgW5Cu+A2UaLoAEcUh9DRBCYkIew7UhZSR7bJrRsuxkycnOODZ43tnR/DZryH8w2dEKyVGMwJxW16bJ/HckP+SqhUfOlXBN3FVqqMYU4ytYA9tdeq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DQaWLnlk; 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="DQaWLnlk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A2DFC4CEE3; Thu, 10 Jul 2025 07:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133367; bh=9ze+dcq6ldRRBnN4OneGJnWKmKDim7ofSAP1/DccwI8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DQaWLnlkI2qvbGp2AgVka1W/fwPUc6dyCImZOf9DcD4IuI35k0PoinoDNT95qTJBt PQPncPem96n4s1RfHGtCCXRnTddlEEo1X0hCaPEKEo+6AL3Ms5+2OrO9qc0ieoQaaA cSJ/eCfRbbT3xujbdro2Yms3UResNQhyM9FChzek= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38284: wifi: rtw89: pci: configure manual DAC mode via PCI config API only Date: Thu, 10 Jul 2025 09:42:25 +0200 Message-ID: <2025071010-CVE-2025-38284-1574@gregkh> X-Mailer: git-send-email 2.50.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=4324; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p7ydZv8gah2b6HkQOUDQPoWC1FY6zSl/xsENyJ6t1fw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eZeEpfaGef7x7xfi/vL5x8nDyx/xM7yesHt3gIx91 8J3k76adcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjoUwLOh49or/zdVSOQ12 WbfSgJP/Vd19NzDMFVw9cf5+2c2dT3btlzeeuPnz6QszJgIA 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: wifi: rtw89: pci: configure manual DAC mode via PCI config API only To support 36-bit DMA, configure chip proprietary bit via PCI config API or chip DBI interface. However, the PCI device mmap isn't set yet and the DBI is also inaccessible via mmap, so only if the bit can be accessible via PCI config API, chip can support 36-bit DMA. Otherwise, fallback to 32-bit DMA. With NULL mmap address, kernel throws trace: BUG: unable to handle page fault for address: 0000000000001090 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 0 P4D 0 Oops: Oops: 0002 [#1] PREEMPT SMP PTI CPU: 1 UID: 0 PID: 71 Comm: irq/26-pciehp Tainted: G OE 6.14.2-061402-generic #202504101348 Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE RIP: 0010:rtw89_pci_ops_write16+0x12/0x30 [rtw89_pci] RSP: 0018:ffffb0ffc0acf9d8 EFLAGS: 00010206 RAX: ffffffffc158f9c0 RBX: ffff94865e702020 RCX: 0000000000000000 RDX: 0000000000000718 RSI: 0000000000001090 RDI: ffff94865e702020 RBP: ffffb0ffc0acf9d8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000015 R13: 0000000000000719 R14: ffffb0ffc0acfa1f R15: ffffffffc1813060 FS: 0000000000000000(0000) GS:ffff9486f3480000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000001090 CR3: 0000000090440001 CR4: 00000000000626f0 Call Trace: rtw89_pci_read_config_byte+0x6d/0x120 [rtw89_pci] rtw89_pci_cfg_dac+0x5b/0xb0 [rtw89_pci] rtw89_pci_probe+0xa96/0xbd0 [rtw89_pci] ? __pfx___device_attach_driver+0x10/0x10 ? __pfx___device_attach_driver+0x10/0x10 local_pci_probe+0x47/0xa0 pci_call_probe+0x5d/0x190 pci_device_probe+0xa7/0x160 really_probe+0xf9/0x370 ? pm_runtime_barrier+0x55/0xa0 __driver_probe_device+0x8c/0x140 driver_probe_device+0x24/0xd0 __device_attach_driver+0xcd/0x170 bus_for_each_drv+0x99/0x100 __device_attach+0xb4/0x1d0 device_attach+0x10/0x20 pci_bus_add_device+0x59/0x90 pci_bus_add_devices+0x31/0x80 pciehp_configure_device+0xaa/0x170 pciehp_enable_slot+0xd6/0x240 pciehp_handle_presence_or_link_change+0xf1/0x180 pciehp_ist+0x162/0x1c0 irq_thread_fn+0x24/0x70 irq_thread+0xef/0x1c0 ? __pfx_irq_thread_fn+0x10/0x10 ? __pfx_irq_thread_dtor+0x10/0x10 ? __pfx_irq_thread+0x10/0x10 kthread+0xfc/0x230 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x47/0x70 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 The Linux kernel CVE team has assigned CVE-2025-38284 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 1fd4b3fe52efd5ad1647966f619c10988e7a4457 and fixed in 6.15.3 with commit e1e0f046041474004dc6ebce5ce1d3e86556291d Issue introduced in 6.11 with commit 1fd4b3fe52efd5ad1647966f619c10988e7a4457 and fixed in 6.16-rc1 with commit a70cf04b08f44f41bce14659aa7012674b15d9de 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-2025-38284 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/net/wireless/realtek/rtw89/pci.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/e1e0f046041474004dc6ebce5ce1d3e86556291d https://git.kernel.org/stable/c/a70cf04b08f44f41bce14659aa7012674b15d9de