CVEvulnerability

CVE-2024-38560

7.1 HIGH Published 2024-06-19 Modified 2026-10-15 Official page ↗
Status
Modified
Published
2024-06-19
Last modified
2026-10-15
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-125

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

Affected configurations

• linux linux kernel (>= 3.19 < 4.19.316) • linux linux kernel (>= 4.20 < 5.4.278) • linux linux kernel (>= 5.5 < 5.10.219) • linux linux kernel (>= 5.11 < 5.15.161) • linux linux kernel (>= 5.16 < 6.1.93) • linux linux kernel (>= 6.2 < 6.6.33) • linux linux kernel (>= 6.7 < 6.8.12) • linux linux kernel (>= 6.9 < 6.9.3)

Related

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References