NetSight
medium5.5

CVE-2023-53456

In the Linux kernel, the following vulnerability has been resolved: scsi: qla4xxx: Add length check when parsing nlattrs There are three places that qla4xxx pa…

Impact

In the Linux kernel, the following vulnerability has been resolved: scsi: qla4xxx: Add length check when parsing nlattrs There are three places that qla4xxx 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 and a malformed nlattr (e.g., length 0) could result in an OOB read that leaks heap dirty data. Add the nla_len check before accessing the nlattr data and return EINVAL if the length check fails.

Affected products

VendorProductAffected versions
LinuxLinux Kernel
from 3.2 before 4.14.326
from 4.15 before 4.19.295
from 4.20 before 5.4.257
from 5.5 before 5.10.195
from 5.11 before 5.15.132
from 5.16 before 6.1.53

References