# CVE-2023-53456: scsi: qla4xxx: Add length check when parsing nlattrs

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-01T11:42:27.821Z
- Modified: 2026-11-05T21:17:20.713Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before cfa6a1a79ed6d336fac7a5d87eb5471e4401829f; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before 5925e224cc6edfef57b20447f18323208461309b; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before 47f3be62eab50b8cd7e1ae5fc2c4dae687497c34; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before 6d65079c69dc1feb817ed71f5bd15e83a7d6832d; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before f61fc650c47849637fa1771a31a11674c824138a; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before 25feffb3fbd51ae81d92c65cebc0e932663828b3; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before 4ed21975311247bb84e82298eeb359ec0a0fa84d; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before b018c0440b871d8b001c996e95fa4538bd292de6; from 00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80 before 47cd3770e31df942e2bb925a9a855c79ed0662eb; 3.2 (not affected: before 3.2; from 4.14.326 up to 4.14.*; from 4.19.295 up to 4.19.*; from 5.4.257 up to 5.4.*; from 5.10.195 up to 5.10.*; from 5.15.132 up to 5.15.*; from 6.1.53 up to 6.1.*; from 6.4.16 up to 6.4.*; from 6.5.3 up to 6.5.*; from 6.6 up to *)
- linux linux_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; from 6.2 before 6.4.16; from 6.5 before 6.5.3

## References

- <https://git.kernel.org/stable/c/cfa6a1a79ed6d336fac7a5d87eb5471e4401829f> (patch)
- <https://git.kernel.org/stable/c/5925e224cc6edfef57b20447f18323208461309b> (patch)
- <https://git.kernel.org/stable/c/47f3be62eab50b8cd7e1ae5fc2c4dae687497c34> (patch)
- <https://git.kernel.org/stable/c/6d65079c69dc1feb817ed71f5bd15e83a7d6832d> (patch)
- <https://git.kernel.org/stable/c/f61fc650c47849637fa1771a31a11674c824138a> (patch)
- <https://git.kernel.org/stable/c/25feffb3fbd51ae81d92c65cebc0e932663828b3> (patch)
- <https://git.kernel.org/stable/c/4ed21975311247bb84e82298eeb359ec0a0fa84d> (patch)
- <https://git.kernel.org/stable/c/b018c0440b871d8b001c996e95fa4538bd292de6> (patch)
- <https://git.kernel.org/stable/c/47cd3770e31df942e2bb925a9a855c79ed0662eb> (patch)

## Sources

- CVE List: [CVE-2023-53456](https://www.cve.org/CVERecord?id=CVE-2023-53456), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2023-53456](https://nvd.nist.gov/vuln/detail/CVE-2023-53456), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2023-53456 · Whole record: https://cve.day/CVE-2023-53456.json · Rebuilt by cve.day 2026-11-25T22:58:34.893Z
