From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67AD0364953 for ; Fri, 19 Jun 2026 22:15:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781907315; cv=none; b=t1plEHB/yD649rToJVzfMc9ONbX+79zU7TagyxGVuskxKkYzBE2knUkOGfxkO7aBkpp0IaLCQMq5uRq7CfWW0WUTsDkbWaYafkbbohuDZhhHNcp/IgkJrF/dvmarNCcoIXUp77OqjhcDSL8xWqgkDpkr/tQsWA7YF263XxZ2YSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781907315; c=relaxed/simple; bh=6dt78lPeyZcv5/9JwbzXRTO1IhuuDUJlh4ejOz4Vyfk=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=SwM4VZ5yvVXNy99Gjd/GT5JVwZBiEEIuirhaRCxTUTE3XEtZrX7+BuJFRT8vXtzNIZC/lMiuhw72DBuoUXA1jNILpy2JvItG3i+ciB7qQmmOrmIVoZfEYq9Fz9EQao/AlcDURKPwFzhqsnVzT+fsv+x7aYVkJCkhuzdSNV1Ei0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.210.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f70.google.com with SMTP id 46e09a7af769-7e713779405so4499272a34.3 for ; Fri, 19 Jun 2026 15:15:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781907313; x=1782512113; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=reh7aflTTLRQorK2CWHOXP5cLu06MOK3p92dOoPUALo=; b=ouoGQq3hFd+d64u9A0mb2iFz1ooeugop6uTLBLrsrflBmuX7FiaFY6HpneiapbV2DK RI0PuR7CLfaECcB8g/jgaefQ7HIpR9PwJonRt8VgInw/2X+/3HJ0Z3rvwFa9twT5lPIe 2ESNOmD7Qe1fzU+CoDNspy3rlr6yo4ZyzGb6nyF8AGL4bkdYlrTzG62YrOt/btNA4Mzx gIfnHjaoh+xPeSd18V4aqRuMNEH9BVSt/n1DuE6gJ5hrnoeJs7sSrzQwOMyjJAdv8Nte l/TwimwApJVEztqFJ5yGSM/nnccnHcJsFNN9IdRjYMpYcrvlNTgEQ8UZfX2lmytTj8Oo TJCA== X-Gm-Message-State: AOJu0YwEihrDqn+cVXrLyEwuaAp4DynAW5CrTXvbMQw9JEWNct0H6tch xTWSRA9ZsOWNu/V0jLZV/oVi141HRepcYZncdIVwdJ4O3slBi9XDAYwsL5azIKKBUwBUzv4QZcr EqUnTjcxRj4yaZ7gt4RAhp14JdB6sg8IPiH7WStTsNL7906e/GWFvdgxuBTQ= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6809:1ca:10b0:489:6b4c:d779 with SMTP id 5614622812f47-4896b4cd828mr3129113b6e.20.1781907313439; Fri, 19 Jun 2026 15:15:13 -0700 (PDT) Date: Fri, 19 Jun 2026 15:15:13 -0700 In-Reply-To: <69eab802.a00a0220.17a17.0049.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a35bf71.ff649fcc.f6936.0001.GAE@google.com> Subject: Forwarded: Re: KASAN: stack-out-of-bounds Write in carl9170_handle_command_response From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: Re: KASAN: stack-out-of-bounds Write in carl9170_handle_command_response Author: doruk@0sec.ai #syz test diff --git a/drivers/net/wireless/ath/carl9170/rx.c b/drivers/net/wireless/ath/carl9170/rx.c index 908c4c8..897e682 100644 --- a/drivers/net/wireless/ath/carl9170/rx.c +++ b/drivers/net/wireless/ath/carl9170/rx.c @@ -150,7 +150,8 @@ static void carl9170_cmd_callback(struct ar9170 *ar, u32 len, void *buffer) spin_lock(&ar->cmd_lock); if (ar->readbuf) { if (len >= 4) - memcpy(ar->readbuf, buffer + 4, len - 4); + memcpy(ar->readbuf, buffer + 4, + min_t(unsigned int, len - 4, ar->readlen)); ar->readbuf = NULL; } -- 2.43.0