# CVE-2023-53320: scsi: mpi3mr: Fix issues in mpi3mr_get_all_tgt_info()

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-16T16:11:56.323Z
- Modified: 2026-06-17T06:44:52.833Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: mpi3mr: Fix issues in mpi3mr_get_all_tgt_info()

The function mpi3mr_get_all_tgt_info() has four issues:

1) It calculates valid entry length in alltgt_info assuming the header part
   of the struct mpi3mr_device_map_info would equal to sizeof(u32).  The
   correct size is sizeof(u64).

2) When it calculates the valid entry length kern_entrylen, it excludes one
   entry by subtracting 1 from num_devices.

3) It copies num_device by calling memcpy(). Substitution is enough.

4) It does not specify the calculated length to sg_copy_from_buffer().
   Instead, it specifies the payload length which is larger than the
   alltgt_info size. It causes "BUG: KASAN: slab-out-of-bounds".

Fix the issues by using the correct header size, removing the subtraction
from num_devices, replacing the memcpy() with substitution and specifying
the correct length to sg_copy_from_buffer().

(As written by CVE List.)

## Affected

- Linux Linux: from f5e6d5a343761081317c89d23489c93fbafc69ff before 8ba997b22f2cd5d29aad8c39f6201f7608ed0c04; from f5e6d5a343761081317c89d23489c93fbafc69ff before 2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2; from f5e6d5a343761081317c89d23489c93fbafc69ff before fb428a2005fc1260d18b989cc5199f281617f44d; 5.19 (not affected: before 5.19; from 6.1.16 up to 6.1.*; from 6.2.3 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 5.19 before 6.1.16; from 6.2 before 6.2.3

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/8ba997b22f2cd5d29aad8c39f6201f7608ed0c04> (patch)
- <https://git.kernel.org/stable/c/2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2> (patch)
- <https://git.kernel.org/stable/c/fb428a2005fc1260d18b989cc5199f281617f44d> (patch)

## Sources

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

---

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