CVE-2024-54458 scsi: ufs: bsg: Set bsg_queue to NULL after removal
A potential use-after-free in the Linux kernel UFS BSG driver could allow attackers to execute code or escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-54458?
CVE-2024-54458 is a high-severity use after free vulnerability in Linux kernel, published on 27 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: bsg: Set bsg_queue to NULL after removal
Currently, this does not cause any issues, but I believe it is necessary to set bsg_queue to NULL after removing it to prevent potential use-after-free (UAF) access.
Weakness: CWE-416
Which versions are affected by CVE-2024-54458?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-54458?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-54458 being exploited?
There is no known exploitation of CVE-2024-54458 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-54458, DEBIAN-CVE-2024-54458, GHSA-jc5w-m29h-g88w, ROOT-OS-UBUNTU-2204-CVE-2024-54458, UBUNTU-CVE-2024-54458.