Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Aleksa Savic <savicaleksa83@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>,
	syzbot <syzbot+9ee5f5dc18673d6b2f37@syzkaller.appspotmail.com>,
	linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-usb@vger.kernel.org, me@jackdoan.com,
	syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [hwmon?] KASAN: slab-out-of-bounds Read in aqc_raw_event
Date: Sat, 22 Aug 2026 10:07:20 +0200	[thread overview]
Message-ID: <2aabcaaa-f6b6-4375-a773-690305b1979f@gmail.com> (raw)
In-Reply-To: <1506eaff-db5e-407a-a09c-d7a6b070c9cb@roeck-us.net>

On 8/22/26 6:02 AM, Guenter Roeck wrote:
> Aleksa,
> 
> On 8/21/26 20:06, syzbot wrote:
>> Hello,
>>
>> syzbot found the following issue on:
>>
>> HEAD commit:    e1e6e541c5c9 Merge tag 'thunderbolt-for-v7.3-rc1' of 
>> ssh:/..
>> git tree:       https://git.kernel.org/pub/scm/linux/kernel/git/ 
>> gregkh/usb.git usb-testing
>> console output: https://syzkaller.appspot.com/x/log.txt?x=16086e79580000
>> kernel config:  https://syzkaller.appspot.com/x/.config? 
>> x=8bdeea7ee6735f91
>> dashboard link: https://syzkaller.appspot.com/bug? 
>> extid=9ee5f5dc18673d6b2f37
>> compiler:       gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils 
>> for Debian) 2.44
>> syz repro:      https://syzkaller.appspot.com/x/repro.syz? 
>> x=14737679580000
>> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15a22549580000
>>
>> Downloadable assets:
>> disk image: https://storage.googleapis.com/syzbot-assets/3b0a1f8e6a1f/ 
>> disk-e1e6e541.raw.xz
>> vmlinux: https://storage.googleapis.com/syzbot-assets/f98d855e85e8/ 
>> vmlinux-e1e6e541.xz
>> kernel image: https://storage.googleapis.com/syzbot-assets/ 
>> db2c3a41df6d/bzImage-e1e6e541.xz
>>
>> IMPORTANT: if you fix the issue, please add the following tag to the 
>> commit:
>> Reported-by: syzbot+9ee5f5dc18673d6b2f37@syzkaller.appspotmail.com
>>
>> ==================================================================
>> BUG: KASAN: slab-out-of-bounds in get_unaligned_be16 include/linux/ 
>> unaligned.h:48 [inline]
>> BUG: KASAN: slab-out-of-bounds in aqc_raw_event drivers/hwmon/ 
>> aquacomputer_d5next.c:1345 [inline]
>> BUG: KASAN: slab-out-of-bounds in aqc_raw_event+0x213e/0x25d0 drivers/ 
>> hwmon/aquacomputer_d5next.c:1327
> 
> The problem is that syzkaller sends a bad (short) report.
> aqc_raw_event() needs to validate the report size and bail out
> if it is short. The fix should be straightforard if it is known
> what the minimum report size is. D5NEXT_CTRL_REPORT_SIZE ?
> 
> Thanks,
> Guenter

We do know sizes of control (setting) reports since we send them through 
priv->buffer, but aqc_raw_event() gets sensor reports and their length 
can vary per device. I don't have an exact list for all devices since I 
don't have them all myself. We'll need to verify that what we receive in 
aqc_raw_event() is >= the minimum offset we want to read sensor values from.

Thanks,
Aleksa

  reply	other threads:[~2026-08-22  8:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-22  3:06 [syzbot] [hwmon?] KASAN: slab-out-of-bounds Read in aqc_raw_event syzbot
2026-08-22  4:02 ` Guenter Roeck
2026-08-22  8:07   ` Aleksa Savic [this message]
2026-08-22 14:24     ` Guenter Roeck
2026-08-22  5:34 ` [PATCH] hwmon: valid the data size before reading the sensor data Edward Adam Davis
2026-08-22  5:44   ` sashiko-bot
2026-08-22  7:45     ` [PATCH v2] " Edward Adam Davis
2026-08-22  7:54       ` Guenter Roeck
2026-08-22  7:57       ` sashiko-bot
2026-08-22  9:14         ` [PATCH v3] hwmon: (aquacomputer_d5next) " Edward Adam Davis
2026-08-22  9:26           ` sashiko-bot
2026-08-22 11:34             ` [PATCH v4] " Edward Adam Davis
2026-08-22 11:47               ` sashiko-bot
2026-08-22 11:55               ` Greg KH
2026-08-22 12:23                 ` Edward Adam Davis
2026-08-22 12:45                   ` Greg KH
2026-08-22 13:03                     ` Edward Adam Davis
2026-08-22 14:05                       ` [PATCH v5] " Edward Adam Davis
2026-08-22 14:20                         ` sashiko-bot
2026-08-22 14:25                         ` Guenter Roeck
2026-08-22  6:41   ` [PATCH] hwmon: " Guenter Roeck
2026-08-22  7:54     ` Edward Adam Davis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2aabcaaa-f6b6-4375-a773-690305b1979f@gmail.com \
    --to=savicaleksa83@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=me@jackdoan.com \
    --cc=syzbot+9ee5f5dc18673d6b2f37@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox