From nobody Sun Dec 14 05:52:25 2025 Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (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 939D619DF62 for ; Sat, 13 Dec 2025 22:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765663525; cv=none; b=J5YjHpseJoC2MoN2G2OcEqx0E9UwI+91baCZyx0n1RX75tGNzX5LfMBXdCNqd5VNmoIsT8lkfH279yKXGVhRjsjGfnA1KsbzNKgrTboUPO/DCB9eolOJqtZvM8ELx9yMEsCWMhtYuVXFIFHfTWPXLN3Xoibnp01F4Kvia1UWrwg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765663525; c=relaxed/simple; bh=6jPlmdi5/PcKYAyrK4n4qlqOTHTcs1WOFuab/6R/gME=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=qJ1mDiWFdnDj/sx2GUPgnmekKQuATq2kubQxr6qLuGPbeC/kcRFzkpsJtLfPnvSPDm1vrWHDp1ffX6xKSSJ34qmBb1N0mvbsujrtZJCC2Z2wuZtOUYQLRcGwagCjV+AK4xW6FNx735rWCc53G/zLMl4Lf+Wk+6S3Ydmg8BNLJto= 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.72 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-f72.google.com with SMTP id 46e09a7af769-7c702d1a4f7so4608986a34.3 for ; Sat, 13 Dec 2025 14:05:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765663522; x=1766268322; 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=7LOnocCrP5VW07EC40qB4KmtLH3W+5sR8Q6VZhkfjSY=; b=Q8uMZH8P8EQwlAiMrs+jwz+9UpMvKTv8tkfS34oEdflmuloyFmj6qO0CpFYLna5d+P yD+K+RWRoj9V2X26n25asWjFhaF6y27uEII6PZ29qI5c/QSEgZP0CWIuCtw2fLKQoLnM 1NTbngobxgOtTG5HKr3Ys0flwoJrRdX2wUbXTTM44kU94Mhemt2KXcyntP0HMw/F/WQt q9+J/Vn8+4gm3M8OW3GPkhpiUCWDxdWhvvfPyypm6oGdNFESDyXeNlzpVwhqaQ05Dd2O GRITCpqULp4SWeC6ghGkxsYepfOuWQ5axUB5D4Xu57sXwuJonZrVIyiFkLD8sH7lJGfD M1mg== X-Gm-Message-State: AOJu0Yzmx6ELD2qG9nx8dxxOX8Iv14ngSvfLOpqLzq06SlWbXLTVFiKd CRqkCkrc9NpLcvCgVl/VpqLCxYJSkrc8yt6HHgBtKBI4POvVeQWDjf42UROuYp2nDOJM4HFpy4n e2lravP1NoO6u6LYIgeDy7nuurKDIumTU7GBiA0a58lksJMHBz/5pWV12yoY= X-Google-Smtp-Source: AGHT+IFAOl082nDQ8+NL+iBr/YWmUcqo8tRiwZGNgsHL3DZ1nsldRxI0pA801Xqvtn7hXmaO1PNSzRNyDV/kuyn2Dj4c/oGFW3xQ 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:6820:1843:b0:659:9a49:9024 with SMTP id 006d021491bc7-65b452c68ecmr2640873eaf.81.1765663522713; Sat, 13 Dec 2025 14:05:22 -0800 (PST) Date: Sat, 13 Dec 2025 14:05:22 -0800 In-Reply-To: <000000000000708723060df6ab96@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <693de322.a70a0220.104cf0.0318.GAE@google.com> Subject: Forwarded: [PATCH] mac802154: fix uninitialized security header fields From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] mac802154: fix uninitialized security header fields Author: katharasasikumar007@gmail.com Signed-off-by: Kathara Sasikumar #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git= master --- net/mac802154/iface.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 9e4631fade90..a1222c1b62b3 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -328,8 +328,14 @@ static int mac802154_set_header_security(struct ieee80= 2154_sub_if_data *sdata, =20 mac802154_llsec_get_params(&sdata->sec, ¶ms); =20 - if (!params.enabled && cb->secen_override && cb->secen) - return -EINVAL; + if (!cb->secen_override) { + if (!params.enabled) + return 0; + } else { + if (cb->secen && !params.enabled) + return -EINVAL; + } + if (!params.enabled || (cb->secen_override && !cb->secen) || !params.out_level) @@ -366,7 +372,7 @@ static int ieee802154_header_create(struct sk_buff *skb, if (!daddr) return -EINVAL; =20 - memset(&hdr.fc, 0, sizeof(hdr.fc)); + memset(&hdr, 0, sizeof(hdr)); hdr.fc.type =3D cb->type; hdr.fc.security_enabled =3D cb->secen; hdr.fc.ack_request =3D cb->ackreq; @@ -432,7 +438,7 @@ static int mac802154_header_create(struct sk_buff *skb, if (!daddr) return -EINVAL; =20 - memset(&hdr.fc, 0, sizeof(hdr.fc)); + memset(&hdr, 0, sizeof(hdr)); hdr.fc.type =3D IEEE802154_FC_TYPE_DATA; hdr.fc.ack_request =3D wpan_dev->ackreq; hdr.seq =3D atomic_inc_return(&dev->ieee802154_ptr->dsn) & 0xFF; --=20 2.51.0