CVE-2024-38560·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
- 2024-06-19
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to patch a buffer handling vulnerability in the BFA SCSI driver. This vulnerability could allow local attackers with limited privileges to trigger out-of-bounds memory reads. Apply the kernel update through your distribution's package manager and reboot to activate the patched kernel.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r and verify it is 6.9.3 or later
- Confirm BFA SCSI driver is loaded: lsmod | grep bfa (if empty, the driver is not in use)
- Review dmesg logs for memory access violations: dmesg | grep -i 'out of bounds\|oob\|buffer overflow' within the timeframe of potential exploitation
- Verify the patch was applied by checking kernel release notes: cat /proc/version and cross-reference against official kernel changelog for commit 00b425ff0891283207d7bad607a2412225274d7a
FAQ
What is CVE-2024-38560?
CVE-2024-38560 is a buffer handling vulnerability in the Linux kernel's BFA SCSI driver where user-supplied data is copied into a kernel buffer without ensuring null termination, allowing out-of-bounds reads when string parsing functions like sscanf process the unterminated data.
Is CVE-2024-38560 being actively exploited?
No, there is no evidence of active exploitation or publicly available exploits for this vulnerability at this time according to CISA's Known Exploited Vulnerabilities catalog.
What versions of Kernel are affected by CVE-2024-38560?
Linux kernel versions 6.9 through 6.9.2 are affected. Kernel 6.9.3 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-38560?
Run 'uname -r' to check your kernel version—if it reports 6.9.0, 6.9.1, or 6.9.2, you are vulnerable. Additionally, verify if the BFA driver is in use with 'lsmod | grep bfa'.
Does Defensia detect CVE-2024-38560?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-38560 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
- https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
- https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
- https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
- https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38560. Free for 1 server.
Get started free