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 09A2A1BD9D2 for ; Wed, 16 Apr 2025 14:15:26 +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=1744812926; cv=none; b=X0gKaN02wcc0AQjq76WYFkkEFkdVHMTQ1KjyCwYJYj7gOYLqKnaxzmM6fMq8feyYOHmEvKdoDOq4ie4LuCdcJXdDFH3h/zsKt6c/7renhUnqq/hDkqHgX0GjsCKcEQEZMxIAecH4aEdOgWLC2zRVlg7BtpbpbBZZThdHQ8Gkdkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812926; c=relaxed/simple; bh=wzpGdwS4HLMjyehnFNwsvqw4bXJ10ri29Svtun1xQ3A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OeLgvlWvB3JSUTmqPgwi2R1kmdA7suRv/LmK+MFERrz5Wi8g/CibE1+AeopJrDCwvVgqBRuJuoPPS26F1LXI9Vr9Kn6mWgWLRv5jV2yfxkunQxEBzH9I2ZalAjOVOkimutA23PDYzdv2S8MLSitoDKPwQFO2aehWOJ2r+URM1uc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iqNbdNSy; 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="iqNbdNSy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D161C4CEE2; Wed, 16 Apr 2025 14:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812925; bh=wzpGdwS4HLMjyehnFNwsvqw4bXJ10ri29Svtun1xQ3A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iqNbdNSy6nsP5i7XB0O1lBW2sTE9LwvKKdxe+7qP0Nmvsozk+nYr999Y2Rq7dcwiT Pd6QKqI5im0hjuAA+bmNFT9VBsDtn682VDZBagAtrghAlIBeD/ii3gWAeFqbQhOVUO ClOr31RblpAC/C5LfCCAbXj1SQMAlvsAfOVly9/8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22061: net: airoha: Fix qid report in airoha_tc_get_htb_get_leaf_queue() Date: Wed, 16 Apr 2025 16:12:32 +0200 Message-ID: <2025041607-CVE-2025-22061-afde@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=4457; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wzpGdwS4HLMjyehnFNwsvqw4bXJ10ri29Svtun1xQ3A=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d21vXnmp9sEntfkz2V4avV8jYfI88B1bwS+hkw3iq TOVV+j7dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1NoY5rsdPb89sHjOKxaD DzxGGkX/FirXRjLM93CYWuh/ryeHd26x/GXDvgXt92edAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: airoha: Fix qid report in airoha_tc_get_htb_get_leaf_queue() Fix the following kernel warning deleting HTB offloaded leafs and/or root HTB qdisc in airoha_eth driver properly reporting qid in airoha_tc_get_htb_get_leaf_queue routine. $tc qdisc replace dev eth1 root handle 10: htb offload $tc class add dev eth1 arent 10: classid 10:4 htb rate 100mbit ceil 100mbit $tc qdisc replace dev eth1 parent 10:4 handle 4: ets bands 8 \ quanta 1514 3028 4542 6056 7570 9084 10598 12112 $tc qdisc del dev eth1 root [ 55.827864] ------------[ cut here ]------------ [ 55.832493] WARNING: CPU: 3 PID: 2678 at 0xffffffc0798695a4 [ 55.956510] CPU: 3 PID: 2678 Comm: tc Tainted: G O 6.6.71 #0 [ 55.963557] Hardware name: Airoha AN7581 Evaluation Board (DT) [ 55.969383] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 55.976344] pc : 0xffffffc0798695a4 [ 55.979851] lr : 0xffffffc079869a20 [ 55.983358] sp : ffffffc0850536a0 [ 55.986665] x29: ffffffc0850536a0 x28: 0000000000000024 x27: 0000000000000001 [ 55.993800] x26: 0000000000000000 x25: ffffff8008b19000 x24: ffffff800222e800 [ 56.000935] x23: 0000000000000001 x22: 0000000000000000 x21: ffffff8008b19000 [ 56.008071] x20: ffffff8002225800 x19: ffffff800379d000 x18: 0000000000000000 [ 56.015206] x17: ffffffbf9ea59000 x16: ffffffc080018000 x15: 0000000000000000 [ 56.022342] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000001 [ 56.029478] x11: ffffffc081471008 x10: ffffffc081575a98 x9 : 0000000000000000 [ 56.036614] x8 : ffffffc08167fd40 x7 : ffffffc08069e104 x6 : ffffff8007f86000 [ 56.043748] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000001 [ 56.050884] x2 : 0000000000000000 x1 : 0000000000000250 x0 : ffffff800222c000 [ 56.058020] Call trace: [ 56.060459] 0xffffffc0798695a4 [ 56.063618] 0xffffffc079869a20 [ 56.066777] __qdisc_destroy+0x40/0xa0 [ 56.070528] qdisc_put+0x54/0x6c [ 56.073748] qdisc_graft+0x41c/0x648 [ 56.077324] tc_get_qdisc+0x168/0x2f8 [ 56.080978] rtnetlink_rcv_msg+0x230/0x330 [ 56.085076] netlink_rcv_skb+0x5c/0x128 [ 56.088913] rtnetlink_rcv+0x14/0x1c [ 56.092490] netlink_unicast+0x1e0/0x2c8 [ 56.096413] netlink_sendmsg+0x198/0x3c8 [ 56.100337] ____sys_sendmsg+0x1c4/0x274 [ 56.104261] ___sys_sendmsg+0x7c/0xc0 [ 56.107924] __sys_sendmsg+0x44/0x98 [ 56.111492] __arm64_sys_sendmsg+0x20/0x28 [ 56.115580] invoke_syscall.constprop.0+0x58/0xfc [ 56.120285] do_el0_svc+0x3c/0xbc [ 56.123592] el0_svc+0x18/0x4c [ 56.126647] el0t_64_sync_handler+0x118/0x124 [ 56.131005] el0t_64_sync+0x150/0x154 [ 56.134660] ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2025-22061 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit ef1ca9271313b4ea7b03de69576aacef1e78f381 and fixed in 6.14.2 with commit d7f76197e49e46a8c082a6fededaa8a07e69a860 Issue introduced in 6.14 with commit ef1ca9271313b4ea7b03de69576aacef1e78f381 and fixed in 6.15-rc1 with commit 57b290d97c6150774bf929117ca737a26d8fc33d 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-22061 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/airoha/airoha_eth.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/d7f76197e49e46a8c082a6fededaa8a07e69a860 https://git.kernel.org/stable/c/57b290d97c6150774bf929117ca737a26d8fc33d