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>] [day] [month] [year] [list]
Message-ID: <ZuK5VH179B4j0jjm@thinkpad.>
Date: Thu, 12 Sep 2024 17:50:12 +0800
From: Qianqiang Liu <qianqiang.liu@....com>
To: benato.denis96@...il.com
Cc: jagathjog1996@...il.com, jic23@...nel.org, linux-iio@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: There is a potential buffer overflow issue in bmi323

Hi,

I reviewed the following code in drivers/iio/imu/bmi323/bmi323_core.c:

2245         for (unsigned int i = 0; i < ARRAY_SIZE(bmi323_ext_reg_savestate); i++) { <-
2246                 ret = bmi323_write_ext_reg(data, bmi323_reg_savestate[i], <-
2247						savestate->reg_settings[i]);
2248                 if (ret) {
2249                         dev_err(data->dev,
2250                                 "Error writing bmi323 external reg 0x%x: %d\n",
2251                                 bmi323_reg_savestate[i], ret);
2252                         return ret;
2253                 }
2254         }

The array size of the "bmi323_ext_reg_savestate" is twelve, and the
array size of "bmi323_reg_savestate" is nine.

Is it possible that "bmi323_reg_savestate" may have buffer overflow
issue?

-- 
Best,
Qianqiang Liu


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ