From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) (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 7500F28850E for ; Fri, 17 Apr 2026 16:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776442848; cv=none; b=SzOn58oTnp/Npr7d0HhFGoPuX4KF6nVv4PqFKvptARwEEI9Z2XOahK2MQiJyguAeyQSVYSIfWJlpfFl01e8L3Bp58EiZ9w28uIvGRzq/GHbS5kGcrsNrG8SBKhLPOMNel2KNYPRr3pDBd+sWIYqcJ4DfIu6Ab86EiMgE7AuRf3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776442848; c=relaxed/simple; bh=vpvseEZ8Z8+AEC2gTkyohnj46ikfYpVD0WfcatDsEQY=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=BIgnGGSIAzrkW4PD6/A4YtS87iLIUzuimRhBAt/BBM/PuQT+3C7PomUvnLSgM8kYCM0mbWJyQwo065DJcwqUe7fYrOlawWofFHHImspdNnc6U27BC85iJBMnhgggL8abB+NfxCNkvEKbTo8zpfMnHTcALE88cTnIqp28I7QXHBs= 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.160.71 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-oa1-f71.google.com with SMTP id 586e51a60fabf-41c08879ba3so4258512fac.0 for ; Fri, 17 Apr 2026 09:20:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776442846; x=1777047646; 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=lrwTh6MmFQwpSJCG8nbW8PaYrVi7d3ibTxQlTpsVkUw=; b=aXzMrOCZtkNA94GlQnbmg+Jnn8fO68TqWNP1eZPEwmfjDczXO79TNfJT7YiRTpgKvC 3m1ciVm5YKudL3SLyyrv6LakMU2awtmDYksGwqwyntUI9fYKZfdYFZVbQpWg4psuUhFI w+Lq3sGHHUyC+HpkexI/4dKGGTIbbsZKBd0VyptHaw9HKYhGANqKn2+Z10+NZAZ8uE/m d2tjwbkeTP0tQA+p4T0B8OyFIp3L6e/98sDOjBvx3AD0Aha9A6kExscA97jJOCmPrnWa +/H81fDvQc9xsS0iNjnho1ta591XH7Mu4QWZicNTowVTYh+qKktFFhFqivXXoX/XUKdq mKag== X-Gm-Message-State: AOJu0YzUx7bY8SPAAzxleLrvNiDunCahEtr76xSlZBdXX6puT8iAqB9N cZEKvBeDKUIQVln+Ax++zpmu4JAj6r65hR2agIrabt//dkIU6xbwk4NTSqdkZk6Srsilg0PHhGr 5ncutdX4FOm1ooLlC+RZ7n2xK5zA7dHs7eYOs/E3m5ifmzVTPbubwZgAjUg4= 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:860a:b0:684:d388:97a0 with SMTP id 006d021491bc7-6946381ba83mr1034715eaf.29.1776442846508; Fri, 17 Apr 2026 09:20:46 -0700 (PDT) Date: Fri, 17 Apr 2026 09:20:46 -0700 In-Reply-To: <00000000000077d29606186c5e99@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69e25dde.a00a0220.1bd0ca.0009.GAE@google.com> Subject: Forwarded: Re: [syzbot] KASAN: slab-out-of-bounds in decompress_lznt From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com 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: Re: [syzbot] KASAN: slab-out-of-bounds in decompress_lznt Author: tristmd@gmail.com #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>From 6cfb2c5508cbe3c057fc4fe83808ef6cf8fc9868 Mon Sep 17 00:00:00 2001 From: Tristan Madani Date: Fri, 17 Apr 2026 16:15:16 +0000 Subject: [PATCH] ntfs3: fix array-index-out-of-bounds in decompress_lznt decompress_chunk() increments index without checking array bounds, leading to an out-of-bounds access on s_max_off when processing corrupted compressed data. Add an upper bound check on index to prevent the overflow. Reported-by: syzbot+39b2fb0f2638669008ec@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=39b2fb0f2638669008ec Signed-off-by: Tristan Madani --- fs/ntfs3/lznt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ntfs3/lznt.c b/fs/ntfs3/lznt.c index fdc9b2e..f818d97 100644 --- a/fs/ntfs3/lznt.c +++ b/fs/ntfs3/lznt.c @@ -240,7 +240,7 @@ static inline ssize_t decompress_chunk(u8 *unc, u8 *unc_end, const u8 *cmpr, if (up - unc > LZNT_CHUNK_SIZE) return -EINVAL; /* Correct index */ - while (unc + s_max_off[index] < up) + while (index < ARRAY_SIZE(s_max_off) - 1 && unc + s_max_off[index] < up) index += 1; /* Check the current flag for zero. */ -- 2.47.3