NetBSD Problem Report #54668
From msaitoh@execsw.org Fri Nov 1 04:01:05 2019
Return-Path: <msaitoh@execsw.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id CF2337A1EF
for <gnats-bugs@gnats.NetBSD.org>; Fri, 1 Nov 2019 04:01:05 +0000 (UTC)
Message-Id: <20191101040103.67B9788695B@five.execsw.org>
Date: Fri, 1 Nov 2019 13:01:03 +0900 (JST)
From: msaitoh@execsw.org
Reply-To: msaitoh@execsw.org
To: gnats-bugs@NetBSD.org
Subject: atu(4) out of range access
X-Send-Pr-Version: 3.95
>Number: 54668
>Category: kern
>Synopsis: atu(4) out of range access
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 01 04:05:00 +0000 2019
>Last-Modified: Fri Nov 01 08:51:50 +0000 2019
>Originator: msaitoh@execsw.org
>Release: NetBSD 9.99.17
>Organization:
>Environment:
>Description:
kUBSan give me the following message:
UBSan: Undefined Behavior in ../../../../dev/usb/if_atu.c:686:25, index 65535 is out of range for type 'ieee80211_key [4]'
The code is:
if (ic->ic_flags & IEEE80211_F_PRIVACY) {
switch (ic->ic_nw_keys[ic->ic_def_txkey].wk_keylen) { <= Here!
case 5:
cmd.EncryptionType = ATU_WEP_40BITS;
break;
65535 is IEEE80211_KEYIX_NONE.
>How-To-Repeat:
Use atu(4).
>Fix:
I don't know.
>Release-Note:
>Audit-Trail:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.