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 EA0203D8906 for ; Wed, 29 Jul 2026 13:05:54 +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=1785330356; cv=none; b=dw32SXmfKjtSqTXl1XClIvxBsnP4UbmU6Y9vm8dr0YxSf6WwKocO6QGtfCopBbWrIlEojki4X8nJCU8qgkPHaO+WHvdB7N2qhQeJrcC459/N6a9X4KTnrJ3n8A1cSudL0/2OM9K01f65p8ck58buUzt+BbqsIfEUhVgdQpN6lms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785330356; c=relaxed/simple; bh=otnvR40lRDshpMmaPD/y3yieFo/bFFjLgJC5dJZOFC8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=VwvGi9DJWZeE6Nu17Vq8wrIWvlzSgpiLECRNE4JMk/ftVUaSWT7clZv/EXbHWC7q7O6fQOUkH+6R9T/SVLQR73ihPE71siKaY1fkgm6ahzqWdboOi0ihvybBkTFbHNLf+xtc8yayuAd6o/7JwCItqBZogTyCLeEuWeEpTIHr0QQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LzgAg8ai; 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="LzgAg8ai" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 427C21F00A3D; Wed, 29 Jul 2026 13:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785330354; bh=lerEt645cLlI9oCsbsuz+ClnfwZUgOANu5jVy+V/aME=; h=Subject:To:Cc:From:Date; b=LzgAg8aiADHDIkEWsDgs2uLYXe3FxLXYjjpcG/pM2QG50S15njJa+l81Gx444z1PE pzo6RvA78NqtACQOpNaXFEgxFNLmbCZzLp9QGvz8V1EoEMmKPydF8UCELAcPxv59ih LhGc+1Q0Ye8fVOU+Hh0qne8mAwgAdp/1htLzqJKs= Subject: FAILED: patch "[PATCH] wifi: ath6kl: fix use-after-free in aggr_reset_state()" failed to apply to 6.12-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:41 +0200 Message-ID: <2026072941-coaster-vista-f26a@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 6.12-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-6.12.y git checkout FETCH_HEAD git cherry-pick -x ba7debb4dd6427386862220e8335a53a4bfc235d # git commit -s git send-email --to '' --in-reply-to '2026072941-coaster-vista-f26a@gregkh' --subject-prefix 'PATCH 6.12.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; }