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 1DB2320E023 for ; Sat, 4 Oct 2025 15:53:55 +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=1759593235; cv=none; b=jA3p+99xj9/XHab+bdfxN0sWmz7RFNvF2t/mzp8JIm8vt2k3HkPKRoHYseSmmxeobdA96BQMdcMiooLqZ3fxh/Q2K1n+PgxLfUEyHHgaT5aJXT2ddwbnB1GRr6udaWcIGJ11CrHxpWOaqg+vGJOcgqN26YiLmK7wCAbcBUC1kYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593235; c=relaxed/simple; bh=KVNHtgbA//a+dtlaJERI09jIZJhMQdxngekrDSlCW6g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=asj00qIJwfbB8CYECnbYWuLCwAL6WrMK10OhQ4nL1hU1+HSepMXkDqoU/SvlCE/sZvF15t96CtYrK9kASEgEdx1qqr2LYZOGWRc/db0WnYGFJ9rZIPjtM75yPXPhmpJAjsOYmR52QOcKs2VyDQL9ZB6JEgJutJ07s3VnhdiU4b0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rb6XN5vF; 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="rb6XN5vF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96BC8C4CEF1; Sat, 4 Oct 2025 15:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593235; bh=KVNHtgbA//a+dtlaJERI09jIZJhMQdxngekrDSlCW6g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rb6XN5vFlf5o4eLxQtZbldutbqozGL4OKZC3fWWBsqSii5vWH0dqzHGJYKtRCYxEL Pi1E2aS9sllBkc+Vggu/c7osnr4B4aCjhc+ha8u+x6T0Oep/3lU/RWFmRv5416P4Sl Pgu86okZiL6dHY+OPq2Ok+GJ2BvZqBCOeCPl/zwE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53595: octeontx2-pf: mcs: Fix NULL pointer dereferences Date: Sat, 4 Oct 2025 17:51:49 +0200 Message-ID: <2025100428-CVE-2023-53595-91fb@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=4898; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ItjuQW6XoS5IJ70DmZNE1qZR1AitzR53ilS6BG2f778=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPnRrTrnYkq5zgP6KfbSe68ZDsROGgfSc2nzzkH3A20 7ldxelRRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk5iTDgitvVdtyNUos12i4 9PXNXnB+ct0jPoYFu27LaLhel3b0eNZe9LPnwf7+1Zc6AA== 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: octeontx2-pf: mcs: Fix NULL pointer dereferences When system is rebooted after creating macsec interface below NULL pointer dereference crashes occurred. This patch fixes those crashes by using correct order of teardown [ 3324.406942] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 3324.415726] Mem abort info: [ 3324.418510] ESR = 0x96000006 [ 3324.421557] EC = 0x25: DABT (current EL), IL = 32 bits [ 3324.426865] SET = 0, FnV = 0 [ 3324.429913] EA = 0, S1PTW = 0 [ 3324.433047] Data abort info: [ 3324.435921] ISV = 0, ISS = 0x00000006 [ 3324.439748] CM = 0, WnR = 0 .... [ 3324.575915] Call trace: [ 3324.578353] cn10k_mdo_del_secy+0x24/0x180 [ 3324.582440] macsec_common_dellink+0xec/0x120 [ 3324.586788] macsec_notify+0x17c/0x1c0 [ 3324.590529] raw_notifier_call_chain+0x50/0x70 [ 3324.594965] call_netdevice_notifiers_info+0x34/0x7c [ 3324.599921] rollback_registered_many+0x354/0x5bc [ 3324.604616] unregister_netdevice_queue+0x88/0x10c [ 3324.609399] unregister_netdev+0x20/0x30 [ 3324.613313] otx2_remove+0x8c/0x310 [ 3324.616794] pci_device_shutdown+0x30/0x70 [ 3324.620882] device_shutdown+0x11c/0x204 [ 966.664930] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 966.673712] Mem abort info: [ 966.676497] ESR = 0x96000006 [ 966.679543] EC = 0x25: DABT (current EL), IL = 32 bits [ 966.684848] SET = 0, FnV = 0 [ 966.687895] EA = 0, S1PTW = 0 [ 966.691028] Data abort info: [ 966.693900] ISV = 0, ISS = 0x00000006 [ 966.697729] CM = 0, WnR = 0 [ 966.833467] Call trace: [ 966.835904] cn10k_mdo_stop+0x20/0xa0 [ 966.839557] macsec_dev_stop+0xe8/0x11c [ 966.843384] __dev_close_many+0xbc/0x140 [ 966.847298] dev_close_many+0x84/0x120 [ 966.851039] rollback_registered_many+0x114/0x5bc [ 966.855735] unregister_netdevice_many.part.0+0x14/0xa0 [ 966.860952] unregister_netdevice_many+0x18/0x24 [ 966.865560] macsec_notify+0x1ac/0x1c0 [ 966.869303] raw_notifier_call_chain+0x50/0x70 [ 966.873738] call_netdevice_notifiers_info+0x34/0x7c [ 966.878694] rollback_registered_many+0x354/0x5bc [ 966.883390] unregister_netdevice_queue+0x88/0x10c [ 966.888173] unregister_netdev+0x20/0x30 [ 966.892090] otx2_remove+0x8c/0x310 [ 966.895571] pci_device_shutdown+0x30/0x70 [ 966.899660] device_shutdown+0x11c/0x204 [ 966.903574] __do_sys_reboot+0x208/0x290 [ 966.907487] __arm64_sys_reboot+0x20/0x30 [ 966.911489] el0_svc_handler+0x80/0x1c0 [ 966.915316] el0_svc+0x8/0x180 [ 966.918362] Code: f9400000 f9400a64 91220014 f94b3403 (f9400060) [ 966.924448] ---[ end trace 341778e799c3d8d7 ]--- The Linux kernel CVE team has assigned CVE-2023-53595 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit c54ffc73601c0a239e55911923a6e23a2a74f143 and fixed in 6.1.29 with commit a3dcc45eca017fca82ac47dbde6f41af960657e5 Issue introduced in 6.1 with commit c54ffc73601c0a239e55911923a6e23a2a74f143 and fixed in 6.2.16 with commit 1152c0f947b76e7731e039185cbd00fdb4389f00 Issue introduced in 6.1 with commit c54ffc73601c0a239e55911923a6e23a2a74f143 and fixed in 6.3.3 with commit 13ff119b17e5e2916435ce01a0156c8698ad9e16 Issue introduced in 6.1 with commit c54ffc73601c0a239e55911923a6e23a2a74f143 and fixed in 6.4 with commit 699af748c61574125d269db260dabbe20436d74e 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-2023-53595 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/marvell/octeontx2/nic/otx2_pf.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/a3dcc45eca017fca82ac47dbde6f41af960657e5 https://git.kernel.org/stable/c/1152c0f947b76e7731e039185cbd00fdb4389f00 https://git.kernel.org/stable/c/13ff119b17e5e2916435ce01a0156c8698ad9e16 https://git.kernel.org/stable/c/699af748c61574125d269db260dabbe20436d74e