From mboxrd@z Thu Jan 1 00:00:00 1970 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 589881A256E for ; Wed, 16 Apr 2025 14:14:48 +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=1744812888; cv=none; b=AxzG5TpjFGA0g4v7OdBpnrO/6XOeKOnVF2MWAgLK5jULn3Mr02i6jAOgaU3kjfQd7cxqI5MClfptTzZIndzs6A+9r850tJwNicZpKRap5ygFsCoLE6QSe4H0uZpp3JgUyVoTwWLZ+cYOaFN8X/79X8j03sF5pUXJtlp7P7GoOvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812888; c=relaxed/simple; bh=qtUk3fOOw3i02jdbyzu3w9RRsINuZElhl2NRABYGk0U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=hVAkmjpHpMmxeb3u79wqw+BDE6iUKpKL0pJoxDVBBHHWObHU05Ok3ugf/18vmxLA3xqweZxrGBobNYOlT3Ikl7ICFbz/1SznaGDe4dW/2U0jSxUmt47TB7zYH4cIUBNfjLpmns6FeoesK6fhnF4mRWhJ2/0ZAv68E9tJW5UlYiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vPhtIeYI; 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="vPhtIeYI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD171C4CEE2; Wed, 16 Apr 2025 14:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812888; bh=qtUk3fOOw3i02jdbyzu3w9RRsINuZElhl2NRABYGk0U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vPhtIeYIXZ8GitI5IA6+xhmC9Hx3DdCQIht3hSAAxSrj/XBGfObFIMzjdWF6qZnFP f3tbZqhRbV/5H5JB/eXNdg/fzWADp5xxI9lkH/ffIRCArTK1m4SdRC2yqv7xrtAJrs BxC7AxQeQ1kcfXsCBVQNtBT+QNiVgjcklMqmctS4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22050: usbnet:fix NPE during rx_complete Date: Wed, 16 Apr 2025 16:12:21 +0200 Message-ID: <2025041603-CVE-2025-22050-2aee@gregkh> X-Mailer: git-send-email 2.49.0 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=3535; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qtUk3fOOw3i02jdbyzu3w9RRsINuZElhl2NRABYGk0U=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d22+ZJNUILRVtE6sR3/ria3BCrmXfm0q8NritXHKK 9bPb2QEO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiWyYzLJhYr2fw0XbfzvxJ 8hcvHNZT+D0hYx7DgmtpzZKnTsWfWR+px9T7ub24/8vCyQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: usbnet:fix NPE during rx_complete Missing usbnet_going_away Check in Critical Path. The usb_submit_urb function lacks a usbnet_going_away validation, whereas __usbnet_queue_skb includes this check. This inconsistency creates a race condition where: A URB request may succeed, but the corresponding SKB data fails to be queued. Subsequent processes: (e.g., rx_complete → defer_bh → __skb_unlink(skb, list)) attempt to access skb->next, triggering a NULL pointer dereference (Kernel Panic). The Linux kernel CVE team has assigned CVE-2025-22050 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.168 with commit b80aacfea6e8d6ed6e430aa13922d6ccf044415a and fixed in 5.15.180 with commit 95789c2f94fd29dce8759f9766baa333f749287c Issue introduced in 6.1.113 with commit 869caa8de8cb94514df704ccbe0b024fda4b9398 and fixed in 6.1.134 with commit 0f10f83acfd619e13c64d6705908dfd792f19544 Issue introduced in 6.6.54 with commit 1e44ee6cdd123d6cfe78b4a94e1572e23bbb58ce and fixed in 6.6.87 with commit acacd48a37b52fc95f621765762c04152b58d642 Issue introduced in 6.12 with commit 04e906839a053f092ef53f4fb2d610983412b904 and fixed in 6.12.23 with commit d689645cd1594ea1d13cb0c404f8ad1011353e0e Issue introduced in 6.12 with commit 04e906839a053f092ef53f4fb2d610983412b904 and fixed in 6.13.11 with commit 0c30988588b28393e3e8873d5654f910e86391ba Issue introduced in 6.12 with commit 04e906839a053f092ef53f4fb2d610983412b904 and fixed in 6.14.2 with commit fd9ee3f0d6a53844f65efde581c91bbb0ff749ac Issue introduced in 6.12 with commit 04e906839a053f092ef53f4fb2d610983412b904 and fixed in 6.15-rc1 with commit 51de3600093429e3b712e5f091d767babc5dd6df Issue introduced in 6.10.13 with commit ca124236cd14e61610f56df9a8f81376a1ffe660 Issue introduced in 6.11.2 with commit 54671d731f4977fb3c0c26f2840655b5204e4437 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-22050 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/usb/usbnet.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/95789c2f94fd29dce8759f9766baa333f749287c https://git.kernel.org/stable/c/0f10f83acfd619e13c64d6705908dfd792f19544 https://git.kernel.org/stable/c/acacd48a37b52fc95f621765762c04152b58d642 https://git.kernel.org/stable/c/d689645cd1594ea1d13cb0c404f8ad1011353e0e https://git.kernel.org/stable/c/0c30988588b28393e3e8873d5654f910e86391ba https://git.kernel.org/stable/c/fd9ee3f0d6a53844f65efde581c91bbb0ff749ac https://git.kernel.org/stable/c/51de3600093429e3b712e5f091d767babc5dd6df