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 <[email protected]> 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 <[email protected]> Signed-off-by: Sarika Sharma <[email protected]> Reviewed-by: Vasanthakumar Thiagarajan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jeff Johnson <[email protected]> (cherry picked from commit 7c0884f) Signed-off-by: Jonathan Maple <[email protected]>
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)