Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D7587485CFD for ; Wed, 29 Jul 2026 13:06:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785330373; cv=none; b=npzYlyAMr5tKHu73oOdNHbczT7y0mlY3KkxehGSKbJqaZPwzJbx58lPhW2hvCwO2md8sv+OPxQD0LBl4sHUcBfOp7m351nNgZw+J9YyaXxH9fKIV8EqVGM2xOzmK5qArzw8u6yR3cimcGL52Uqd7SA4q6/eOc/ButVIXVf7ZGxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785330373; c=relaxed/simple; bh=Cw/7PdUvX6ZEqDijZpLpH9RB9hCeKqYIgdD/bckk2OQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=kEznIodZNPSB51hkSzV8oySdJ+Ao5KSFQLvGbKNIogFCSVGHlLKj92THXGSW7+aO9vneJcmuX2dwHbXXCaNhodCPpDlHcmjuTkDBr6svTNts7wbOV6aaP1VWlVZlASq1BypwAPEqyct+wOMoQ9eqf4wMXNx+XalB5vTacN2RFVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AXl5zKf6; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AXl5zKf6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 321431F000E9; Wed, 29 Jul 2026 13:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785330371; bh=y/vpdVj8q6MjkiadRi+ER9r4rTOBY0GuHy7Ctlt0IXI=; h=Subject:To:Cc:From:Date; b=AXl5zKf6QQYiyc76fR3k7ze5r4rHUhHPA3iDxW838+Qa/TUDBitiBBclKmO5Vyay8 KpwpcNeRcK/Tq6ZBaNtABb6oicSfUStk0e9yHppC6R0IOg48L0AI44W/VlWcGxobmC eZkzcwz/am5nZfnRXvSt7W861FQF0TmpuBf265lQ= Subject: FAILED: patch "[PATCH] wifi: ath6kl: fix use-after-free in aggr_reset_state()" failed to apply to 5.10-stable tree To: git@danielhodges.dev,jeff.johnson@oss.qualcomm.com,vasanthakumar.thiagarajan@oss.qualcomm.com Cc: From: Date: Wed, 29 Jul 2026 15:05:43 +0200 Message-ID: <2026072942-backwater-librarian-a9cc@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y git checkout FETCH_HEAD git cherry-pick -x ba7debb4dd6427386862220e8335a53a4bfc235d # git commit -s git send-email --to '' --in-reply-to '2026072942-backwater-librarian-a9cc@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From ba7debb4dd6427386862220e8335a53a4bfc235d Mon Sep 17 00:00:00 2001 From: Daniel Hodges Date: Fri, 6 Feb 2026 13:52:07 -0500 Subject: [PATCH] wifi: ath6kl: fix use-after-free in aggr_reset_state() The aggr_reset_state() function uses timer_delete() (non-synchronous) for the aggregation timer before proceeding to delete TID state and before the structure is freed by callers like aggr_module_destroy(). If the timer callback (aggr_timeout) is executing when aggr_reset_state() is called, the callback will continue to access aggr_conn fields like rx_tid[] and stat[] which may be freed immediately after by kfree(aggr_info->aggr_conn) in aggr_module_destroy(). Additionally, the timer callback can re-arm itself via mod_timer() while aggr_reset_state() is running, creating a more complex race condition. Use timer_delete_sync() instead to ensure any running timer callback has completed before returning. Fixes: bdcd81707973 ("Add ath6kl cleaned up driver") Cc: stable@vger.kernel.org Signed-off-by: Daniel Hodges Reviewed-by: Vasanthakumar Thiagarajan Link: https://patch.msgid.link/20260206185207.30098-1-git@danielhodges.dev Signed-off-by: Jeff Johnson diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c index 97fdac7237e2..0e268017af52 100644 --- a/drivers/net/wireless/ath/ath6kl/txrx.c +++ b/drivers/net/wireless/ath/ath6kl/txrx.c @@ -1828,7 +1828,7 @@ void aggr_reset_state(struct aggr_info_conn *aggr_conn) return; if (aggr_conn->timer_scheduled) { - timer_delete(&aggr_conn->timer); + timer_delete_sync(&aggr_conn->timer); aggr_conn->timer_scheduled = false; }