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 6C99F20E023 for ; Sat, 4 Oct 2025 15:52:44 +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=1759593164; cv=none; b=XMrYdHYN79SjtHXErtNdodH8nq484Fak2TFMdusjNVSlFOR4mMJEOt7GoTXlXoLC+XnZsZkvpj+jiXj717KbV363Dindj8JILn6vXSu1J2YKffkFu1qS4Z+Tv+9Htgi1PY1aTz4ox94Sl04O2PELqFJePAboPiR1XeIoxaapR/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593164; c=relaxed/simple; bh=VwHox/pjuzcWQxn9M6BCLPJPmlwYBrW2Uyh2YO0xdEw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BBeqN2LNqBxCF+IsitwGosNWk+TGnielBiT5XW+T/VTiR7eZaSYMpyuw/KMPAPIHWb8RlmNRYGfBXevMXWCoXge7lVAR+WvCMO/BeIkHsEj1Gf2LHl8PFO3ZSY6OSaND28JkPbxuLev6eVDBUhyIF/fr+hAli/pVSBNsLCk6zb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CHKtOtcd; 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="CHKtOtcd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEB07C4CEF1; Sat, 4 Oct 2025 15:52:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593164; bh=VwHox/pjuzcWQxn9M6BCLPJPmlwYBrW2Uyh2YO0xdEw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CHKtOtcdQFh/Z2tUM5koQdK6Co3YJZeWBzs5QVKI1z61rfJgOdBgDaI+2CMlB41vU Mhl9qc18hbGeJ+JPH7e86HrnqTmGFEJsfpqct3aw5nkUl5EcSN8RdCDs2G1GEHHUpl 7ccoV+ZwIbVoTJi0WbbKvmD9WpZPJWH06G7m6Dn0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50498: eth: alx: take rtnl_lock on resume Date: Sat, 4 Oct 2025 17:51:23 +0200 Message-ID: <2025100419-CVE-2022-50498-c9ab@gregkh> X-Mailer: git-send-email 2.51.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=2928; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9+zdWJwQoljMr2sL5IpPBypbtsH/J/a/N0nb2c6/IpM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPnSrMG1Q6efJC8raxv/ttdfBe5stimR+5gm5qcst37 /w0X2lBRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk1R+GBafOWvxzKKiyqZHZ VJQ+i2vfzenW6xnmp297yGdweQMLk0LShbl3xTet7mqvBgA= 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: eth: alx: take rtnl_lock on resume Zbynek reports that alx trips an rtnl assertion on resume: RTNL: assertion failed at net/core/dev.c (2891) RIP: 0010:netif_set_real_num_tx_queues+0x1ac/0x1c0 Call Trace: __alx_open+0x230/0x570 [alx] alx_resume+0x54/0x80 [alx] ? pci_legacy_resume+0x80/0x80 dpm_run_callback+0x4a/0x150 device_resume+0x8b/0x190 async_resume+0x19/0x30 async_run_entry_fn+0x30/0x130 process_one_work+0x1e5/0x3b0 indeed the driver does not hold rtnl_lock during its internal close and re-open functions during suspend/resume. Note that this is not a huge bug as the driver implements its own locking, and does not implement changing the number of queues, but we need to silence the splat. The Linux kernel CVE team has assigned CVE-2022-50498 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 4a5fe57e775188be96359a1934501be45fe5f705 and fixed in 5.15.75 with commit 6f1991a940b90753b34570f093a21dba366e8cc0 Issue introduced in 5.14 with commit 4a5fe57e775188be96359a1934501be45fe5f705 and fixed in 5.19.17 with commit a845a0c4bdece2c0073ecea2fca7c4d5f0550f78 Issue introduced in 5.14 with commit 4a5fe57e775188be96359a1934501be45fe5f705 and fixed in 6.0.3 with commit c0323c0fd07804d5874699e93f935cda0d989c67 Issue introduced in 5.14 with commit 4a5fe57e775188be96359a1934501be45fe5f705 and fixed in 6.1 with commit 6ad1c94e1e7e374d88f0cfd77936dddb8339aaba 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-2022-50498 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/ethernet/atheros/alx/main.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/6f1991a940b90753b34570f093a21dba366e8cc0 https://git.kernel.org/stable/c/a845a0c4bdece2c0073ecea2fca7c4d5f0550f78 https://git.kernel.org/stable/c/c0323c0fd07804d5874699e93f935cda0d989c67 https://git.kernel.org/stable/c/6ad1c94e1e7e374d88f0cfd77936dddb8339aaba