Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758283; b=tPCmhkTUwV9+/Tr11i0679Q5pZh5HFCjFGQMjSiVqdu2WBn5lqdR5aZ6tsnqnTRVo4KZ JRhseRtyEBDd3Hi3l9gs9fVXs67w7wvXm7ztrv05qhUymzRKaMAB0vokQ+NOn+KkZkaNu FTXpzGF6ZECuYxT9bhcjwy2bsu5KIzp0DHVCHRiOEFroMKdwUm/+x0/lhvTuu8Au9ZtXE Ti3Fhye3H5Q1T0vhmERRJTfktUDk4/kyHojTyogLWjG2gbEI3dBzhq3Ue44gDqqXrunhw 0oDsO0Iy9nRrPiNJk4C0jpudIyE1WeNp1EKk0P4Be8RAUBUC3YkVtPCzDIx9WoJwD1w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758283; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=rdsT/zY4CqBEjiM/qrEglf0IFkWOSG4wWeV+nvl0l64=; b=FdKsU/+8iNTuWn4Nx7Fo0gJI4+XynLfTIaF8rMdw3EUNKrk6keS4RTSFWHlnN9RGBpAI eZ16a+2Wy8JRh1i5YeS73BBrfgZQHsmp/7S67ItlS3l2REMyJcbl1MT05Pi9ypDZjXNii PW7WwFeG3fr9bIBjr+2YuA6sD9OEzQcaCUoAh3D7CP0Zr5rE58lbWEWt2e0mEd6EdRDCn ntiqwgV8D3xmsRPSRPlimZAE6/LO9N6a9cSvvZAydKbI8KwCakBRS2bSdZrcmT/UMtmDk EXDW3M1rbCoTpmQpUMKvXcu45BRsBsVs8xy2YlD4rAhCDdCre5KlmJdObP0k3dAIXng== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aoly5Ekn; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90AEF606A31A for ; Fri, 23 Oct 2026 12:24:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aoly5Ekn Received: by smtp.kernel.org (Postfix) with ESMTPSA id 640BF1F01828; Fri, 23 Oct 2026 12:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758282; bh=rdsT/zY4CqBEjiM/qrEglf0IFkWOSG4wWeV+nvl0l64=; h=From:To:Cc:Subject:Date:Reply-To; b=aoly5EkngXBCCgzW07KMlnIotvqEVSMl0zw8xNxbBqDc5PiMettJNFhWXshSon3Mv uPhuriNghIb9baDdjlIGPFUdUv6nxojAUAeUfY67tVbC6VgryX6MmNXXmMnCY4tA+4 rVCbzFvXwHnORs+EHmy5nlL/CCL+JLuA2tbGhugc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98938: rust: irq: pass RegistrationInner as cookie to request_irq Date: Fri, 23 Oct 2026 14:11:45 +0200 Message-ID: <2026102339-CVE-2026-98938-b8d0@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2319; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OD6dbVv2mzR4arcnu6p7dz9qZVKLDsobxy0QjEQdEUs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3/X4nabXLF0k9eCZ67fevwtytR+598HwStufRoZ/be 60EZHJmdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBERGIZFizbG6y1tVfbhU0r 9faDlpPSrfw7BRkWbOPTeLBvqWroVRUvo9cNE5U1ducsAQA= 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: rust: irq: pass RegistrationInner as cookie to request_irq With commit ba268514ea14 ("rust: devres: fix race condition due to nesting"), Devres::new() returns Result by value instead of initializing in-place via PinInit. Because request_irq() is called inside Devres::new(), registration.inner is still uninitialized when the IRQ is enabled, so accessing registration.inner.device() in the IRQ callback can read uninitialized memory. Fix this by storing the Device and handler pointer in RegistrationInner and passing RegistrationInner as the IRQ cookie after its fields are initialized. This is not needed in mainline because commit 98c63ce4d760 ("rust: irq: make Registration compatible with lifetime-bound drivers") removed Devres from irq::Registration and moved request_irq() after all fields are initialized. The Linux kernel CVE team has assigned CVE-2026-98938 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 29e16fcd67ee5b1d0417a657294cf96fdf2f8df9 and fixed in 7.2.10 with commit 9a7931e847f338a687e96cde9f37e0cff83ddd84 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-2026-98938 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: rust/kernel/irq/request.rs 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/9a7931e847f338a687e96cde9f37e0cff83ddd84