lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176881977899.2473586.16375546520519184809.b4-ty@bootlin.com>
Date: Mon, 19 Jan 2026 11:49:38 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Richard Weinberger <richard@....at>, 
 Vignesh Raghavendra <vigneshr@...com>, linux-mtd@...ts.infradead.org, 
 linux-kernel@...r.kernel.org, 
 Alexander Usyskin <alexander.usyskin@...el.com>
Cc: Reuven Abliyev <reuven.abliyev@...el.com>, 
 "Gustavo A . R . Silva" <gustavoars@...nel.org>, 
 Raag Jadav <raag.jadav@...el.com>, Jani Partanen <jiipee@...apeli.fi>, 
 Lucas De Marchi <demarchi@...nel.org>
Subject: Re: [PATCH] mtd: intel-dg: Fix accessing regions before setting
 nregions

On Thu, 15 Jan 2026 07:22:37 +0200, Alexander Usyskin wrote:
> The regions array is counted by nregions, but it's set only after
> accessing it:
> 
> [] UBSAN: array-index-out-of-bounds in drivers/mtd/devices/mtd_intel_dg.c:750:15
> [] index 0 is out of range for type '<unknown> [*]'
> 
> Fix it by also fixing an undesired behavior: the loop silently ignores
> ENOMEM and continues setting the other entries.
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: intel-dg: Fix accessing regions before setting nregions
      commit: 779c59274d03cc5c07237a2c845dfb71cff77705

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ