CVE-2024-54458
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-54458 is a vulnerability in the Linux kernel's SCSI UFS BSG (Block SCSI Generic) driver. The vulnerability was discovered and disclosed on February 26, 2025. It affects the bsgqueue handling in the UFS driver, where failing to set bsgqueue to NULL after removal could potentially lead to use-after-free (UAF) issues (NVD, Ubuntu).

Technical details

The vulnerability exists in the UFS BSG driver's queue removal functionality. When removing the BSG queue, the code fails to set the bsgqueue pointer to NULL after calling bsgremove_queue(), which could potentially lead to use-after-free (UAF) vulnerabilities. The issue has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

While currently not causing immediate issues, the vulnerability could potentially lead to use-after-free (UAF) access, which might result in system crashes, information disclosure, or privilege escalation in the Linux kernel. The vulnerability affects various Linux distributions including Ubuntu's current and LTS releases (Ubuntu).

Mitigation and workarounds

A fix has been implemented by adding code to set bsgqueue to NULL after removing it. The patch has been merged into the Linux kernel and is being distributed to various Linux distributions. The fix involves a single line change in the drivers/ufs/core/ufsbsg.c file (Kernel Commit).

Additional resources


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-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-gcp-5.15
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-64k-debug-core
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-debug-kvm
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesDec 09, 2025

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