Skip to content

Commit 793eed6

Browse files
committed
wifi: ath12k: Decrement TID on RX peer frag setup error handling
jira LE-4395 cve CVE-2025-39761 Rebuild_History Non-Buildable kernel-6.12.0-55.39.1.el10_0 commit-author Karthikeyan Kathirvel <quic_kathirve@quicinc.com> commit 7c0884f Currently, TID is not decremented before peer cleanup, during error handling path of ath12k_dp_rx_peer_frag_setup(). This could lead to out-of-bounds access in peer->rx_tid[]. Hence, add a decrement operation for TID, before peer cleanup to ensures proper cleanup and prevents out-of-bounds access issues when the RX peer frag setup fails. Found during code review. Compile tested only. Signed-off-by: Karthikeyan Kathirvel <quic_kathirve@quicinc.com> Signed-off-by: Sarika Sharma <quic_sarishar@quicinc.com> Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/20250526034713.712592-1-quic_sarishar@quicinc.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com> (cherry picked from commit 7c0884f) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 1e3ceda commit 793eed6

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+1
-0
lines changed

drivers/net/wireless/ath/ath12k/dp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ int ath12k_dp_peer_setup(struct ath12k *ar, int vdev_id, const u8 *addr)
7979
ret = ath12k_dp_rx_peer_frag_setup(ar, addr, vdev_id);
8080
if (ret) {
8181
ath12k_warn(ab, "failed to setup rx defrag context\n");
82+
tid--;
8283
goto peer_clean;
8384
}
8485

0 commit comments

Comments
 (0)