[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169083266403.2873709.2950258839122967870.b4-ty@oracle.com>
Date: Mon, 31 Jul 2023 15:45:05 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: njavali@...vell.com, mrangankar@...vell.com,
GR-QLogic-Storage-Upstream@...vell.com, jejb@...ux.ibm.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Lin Ma <linma@....edu.cn>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>
Subject: Re: [PATCH v1] scsi: qla4xxx: Add length check when paring nlattrs
On Sun, 23 Jul 2023 16:00:53 +0800, Lin Ma wrote:
> There are three places that qla4xxx looply parses nlattrs
> * qla4xxx_set_chap_entry(...)
> * qla4xxx_iface_set_param(...)
> * qla4xxx_sysfs_ddb_set_param(...)
> and each of them directly converts the nlattr to specific pointer of
> structure without length checking. This could be dangerous as those
> attributes are not validated before and a malformed nlattr (e.g., length
> 0) could result in an OOB read that leaks heap dirty data.
>
> [...]
Applied to 6.6/scsi-queue, thanks!
[1/1] scsi: qla4xxx: Add length check when paring nlattrs
https://git.kernel.org/mkp/scsi/c/47cd3770e31d
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists