CVE-2024-38559
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-38559 affects the Linux kernel's SCSI QLogic FastLinQ offload FCoE driver (qedf). The vulnerability was discovered and disclosed on June 19, 2024. The issue exists in the qedf_debugfs.c file where a buffer copied from userspace is not properly NUL-terminated before being used with kstrtouint function, potentially leading to an out-of-bounds read (NVD).

Technical details

The vulnerability stems from using memdup_user() instead of memdup_user_nul() when copying data from userspace. The code allocates a count-sized kernel buffer and copies count bytes from userspace, but doesn't ensure the string is NUL-terminated inside the buffer. This can lead to an out-of-bounds read when the buffer is later processed by kstrtouint(). The issue has been assigned a CVSS v3.1 base score of 4.4 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H (CISA-ADP).

Impact

The vulnerability could allow an attacker with local access and high privileges to cause an out-of-bounds read in the kernel when interacting with the qedf driver's debugfs interface. This could potentially lead to information disclosure or system crashes (NVD).

Exploitability

The vulnerability requires local access with high privileges to exploit. It has been classified as CWE-476 (NULL Pointer Dereference). There are no known reports of this vulnerability being exploited in the wild (CISA-ADP).

Mitigation and workarounds

The vulnerability has been fixed by replacing memdup_user() with memdup_user_nul() to ensure proper NUL-termination of the copied buffer. The fix has been implemented in various Linux kernel versions, including 5.15.0-121.131 for Ubuntu 22.04 LTS and 5.4.0-192.212 for Ubuntu 20.04 LTS. Users are advised to update their systems to the patched versions (Ubuntu).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.94-1

Fixed

bullseye

linux: 5.10.221-1

Fixed

sid

linux: 6.8.12-1

Fixed

trixie

linux: 6.8.12-1

Fixed

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-oracle-7.0
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.8
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management