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 014372E266C for ; Wed, 1 Oct 2025 11:52:05 +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=1759319526; cv=none; b=fyMnW0Hn5hXL6IOhaaUcR4xeUuPdXtCKILd+i1py+657RhAQ80zXgWNh5wgxUorPsALiIh5vWCBDLsBFWnP9Ji7l4g1lJmCcbDvyOITJPDNrdQVVQeJ+01gTOCjlZdH6OmF2SUL0IOscnF0BqPV6RU3tt8L7hy6z579vq3hfyNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319526; c=relaxed/simple; bh=DWlJbALnEiDK9tkz1tQMtU/Da1dGeTp21jubdqRQvCM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RC4JIaaxIfW8l+n1NRXIaDfm5o+SRC10WnKLaGOWH40fX7PkL0OVnstzfTTz7bjGl20z2uma+l/HgjhpdYL2CWHT2ucZXo2hwh1EiMlB+yA69nUDLlt5x0puEKrt/X+MZo68bMkTz4PbNDbyvEvwvIB5JpwHlf2CYt0zNg3U9GE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1bsLFeto; 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="1bsLFeto" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22FCBC4CEF4; Wed, 1 Oct 2025 11:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319525; bh=DWlJbALnEiDK9tkz1tQMtU/Da1dGeTp21jubdqRQvCM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1bsLFeto0wDrmawWVcWXaoJjxNyir161oF//5bAJEdW7eY1/X3rgW29b0Qul/tHXF L2oY7D1N0RWR5mP+UUD8UgGgLIDuu1+v1i0Tq61I8rThrlrqxCxtL6Njwk07+DXFTv AH18UFSve/p0GypEIFdk6wVNp/Rkkwetqe9jZkgc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50441: net/mlx5: Lag, fix failure to cancel delayed bond work Date: Wed, 1 Oct 2025 13:42:14 +0200 Message-ID: <2025100101-CVE-2022-50441-e2e2@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=4105; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7ii/TAlyj8yTWElews50LBQXlSOjRuzXMT5rehO/M10=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hTsVtojldDlOENqe9tzQxUJx0uEK7upGudc/C2SWx ph7zPDsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIms+cCwYKJP+7ofmnG8imcF 32efYNGdOkX6G8P8DB/FhHfzP7KocJekbc55Mt3817oyAA== 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: net/mlx5: Lag, fix failure to cancel delayed bond work Commit 0d4e8ed139d8 ("net/mlx5: Lag, avoid lockdep warnings") accidentally removed a call to cancel delayed bond work thus it may cause queued delay to expire and fall on an already destroyed work queue. Fix by restoring the call cancel_delayed_work_sync() before destroying the workqueue. This prevents call trace such as this: [ 329.230417] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 329.231444] #PF: supervisor write access in kernel mode [ 329.232233] #PF: error_code(0x0002) - not-present page [ 329.233007] PGD 0 P4D 0 [ 329.233476] Oops: 0002 [#1] SMP [ 329.234012] CPU: 5 PID: 145 Comm: kworker/u20:4 Tainted: G OE 6.0.0-rc5_mlnx #1 [ 329.235282] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014 [ 329.236868] Workqueue: mlx5_cmd_0000:08:00.1 cmd_work_handler [mlx5_core] [ 329.237886] RIP: 0010:_raw_spin_lock+0xc/0x20 [ 329.238585] Code: f0 0f b1 17 75 02 f3 c3 89 c6 e9 6f 3c 5f ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 0f 1f 44 00 00 31 c0 ba 01 00 00 00 0f b1 17 75 02 f3 c3 89 c6 e9 45 3c 5f ff 0f 1f 44 00 00 0f 1f [ 329.241156] RSP: 0018:ffffc900001b0e98 EFLAGS: 00010046 [ 329.241940] RAX: 0000000000000000 RBX: ffffffff82374ae0 RCX: 0000000000000000 [ 329.242954] RDX: 0000000000000001 RSI: 0000000000000014 RDI: 0000000000000000 [ 329.243974] RBP: ffff888106ccf000 R08: ffff8881004000c8 R09: ffff888100400000 [ 329.244990] R10: 0000000000000000 R11: ffffffff826669f8 R12: 0000000000002000 [ 329.246009] R13: 0000000000000005 R14: ffff888100aa7ce0 R15: ffff88852ca80000 [ 329.247030] FS: 0000000000000000(0000) GS:ffff88852ca80000(0000) knlGS:0000000000000000 [ 329.248260] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 329.249111] CR2: 0000000000000000 CR3: 000000016d675001 CR4: 0000000000770ee0 [ 329.250133] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 329.251152] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 329.252176] PKRU: 55555554 The Linux kernel CVE team has assigned CVE-2022-50441 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0.13 with commit ff24a802204620214afa75a5e64280f40015e399 and fixed in 6.0.19 with commit 5df57bb04e91add52fb67e226209df9a17f06a89 Issue introduced in 6.1 with commit 0d4e8ed139d871fcb2844dd71075997753baeec8 and fixed in 6.1.5 with commit 8f1b8b3133504bf9125ee507ddcc3a8fb41a41f0 Issue introduced in 6.1 with commit 0d4e8ed139d871fcb2844dd71075997753baeec8 and fixed in 6.2 with commit 4d1c1379d71777ddeda3e54f8fc26e9ecbfd1009 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-50441 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/mellanox/mlx5/core/lag/lag.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/5df57bb04e91add52fb67e226209df9a17f06a89 https://git.kernel.org/stable/c/8f1b8b3133504bf9125ee507ddcc3a8fb41a41f0 https://git.kernel.org/stable/c/4d1c1379d71777ddeda3e54f8fc26e9ecbfd1009