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 A523A302169 for ; Wed, 12 Nov 2025 10:24:23 +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=1762943063; cv=none; b=YrQlQIOzlzNmt5ieVLDNORVQaBGb8mkhaIoTdlDjWsBGra+F8o6J4Tap9OeDLXiQWF4p1w/fP1sTPM9MqBoRH0W8eMpoZiVzzrH6fDBk3fBNsu0uDyei2gnoDW0KfuwBxFR57JeU9rSdYnSfd9Kc4dlADpnmEaITQrfw4wO/Owk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943063; c=relaxed/simple; bh=3kZQ+B9Uu7SRKcWR3MYJ8S2HY+nQWmiwmisscYoISq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q+WiFtA7qijoSxbpj2gzFGo1cn/yyCKPaoLaQ8S2N0WuQLWgWRUURWbDAFshfMY2eaoKNtJP17ljDZJzIWyiA9Bw5RISKHlAA40PJURqxgS8vMb+BDXGtz9rhv77+UlfJ7vYDtJKF9tugqtJQsBYctgeaRAQGA/GkAv4ZS0x/2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=01K1gMoP; 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="01K1gMoP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B896C19421; Wed, 12 Nov 2025 10:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943063; bh=3kZQ+B9Uu7SRKcWR3MYJ8S2HY+nQWmiwmisscYoISq0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=01K1gMoPGS2voBAN9fAUh4EonkK+R4+PL0JKY4hZwLyshKdpd0PNgyjXPpFa/pW1M M4ZYlFXxtb44JfaJ5tPtIiDnfnpVf0c6AUSY5yAy72RfQqDyMFctaDtXLozr9fnngg 5BUe/t810Z6E3+9W0ESBGfjnfId1c6hAygp4rKSY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40116: usb: host: max3421-hcd: Fix error pointer dereference in probe cleanup Date: Wed, 12 Nov 2025 19:23:52 +0900 Message-ID: <2025111251-CVE-2025-40116-3942@gregkh> X-Mailer: git-send-email 2.51.2 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=3332; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0S8jN7bvAd23x55ahjPVwK2y8Nr9CSSsW5VSyJIUgAk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCeaMzFE1DovCVtWqLCmcynxx0lOtiJQZqvbdCRa2j rw/5bo6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCIt3QzzY4MLPr1ZPa+R6ZtP 4f+94pt3nmC+xTA/827gyaUblxb9Fdz6Vd+XJ5R5dgMTAA== 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: usb: host: max3421-hcd: Fix error pointer dereference in probe cleanup The kthread_run() function returns error pointers so the max3421_hcd->spi_thread pointer can be either error pointers or NULL. Check for both before dereferencing it. The Linux kernel CVE team has assigned CVE-2025-40116 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 5.4.301 with commit 89838fe5c6c010ff8d3924f22afd9c18c5c95310 Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 5.10.246 with commit 3facf69a735e730ae36387f18780fe420708aa91 Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 5.15.195 with commit e0e0ce06f3571be9b26790e4df56ba37b1de8543 Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 6.1.156 with commit 3723c3dda1cc82c9bbca08fcbd46705a361bfd56 Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 6.6.112 with commit b0439e3762ac9ea580f714e1504a1827d1ad32f5 Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 6.12.53 with commit e68ea6de1d0551f90d7a2c75f82cb3ebe5e397dc Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 6.17.3 with commit b682ce44bf20ada752a2f6ce70d5a575c56f6a35 Issue introduced in 3.16 with commit 05dfa5c9bc37933181b619e42ec0eeb41ef31362 and fixed in 6.18-rc1 with commit 186e8f2bdba551f3ae23396caccd452d985c23e3 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-40116 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/usb/host/max3421-hcd.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/89838fe5c6c010ff8d3924f22afd9c18c5c95310 https://git.kernel.org/stable/c/3facf69a735e730ae36387f18780fe420708aa91 https://git.kernel.org/stable/c/e0e0ce06f3571be9b26790e4df56ba37b1de8543 https://git.kernel.org/stable/c/3723c3dda1cc82c9bbca08fcbd46705a361bfd56 https://git.kernel.org/stable/c/b0439e3762ac9ea580f714e1504a1827d1ad32f5 https://git.kernel.org/stable/c/e68ea6de1d0551f90d7a2c75f82cb3ebe5e397dc https://git.kernel.org/stable/c/b682ce44bf20ada752a2f6ce70d5a575c56f6a35 https://git.kernel.org/stable/c/186e8f2bdba551f3ae23396caccd452d985c23e3