CVE-2025-38209
BaseFortify
Publication date: 2025-07-04
Last updated on: 2025-11-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-416 | The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free bug in the Linux kernel's nvme-tcp driver. It occurs when the second call to configure the admin queue fails but does not properly remove the admin tag set, leading to the admin tag set being freed later while still being accessed by a timeout handler. This causes a BUG KASAN slab-use-after-free error, which can be triggered by repeating a specific test case multiple times.
How can this vulnerability impact me? :
The vulnerability can cause a kernel BUG due to use-after-free, potentially leading to system instability or crashes when the nvme-tcp driver is used. This could affect system reliability and availability.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by reproducing the BUG KASAN slab-use-after-free in blk_mq_queue_tag_busy_iter() using the blktests test case nvme/063 repeatedly. Running the blktests suite, specifically the nvme/063 test case multiple times, can help identify the issue.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, ensure that the Linux kernel version you are using includes the fix where nvme_remove_admin_tag_set() is called when the second nvme_tcp_configure_admin_queue() call fails. This prevents the admin tag set from being left dangling and avoids the use-after-free bug. If possible, update to a kernel version that contains the commit 104d0e2f6222 or later that addresses this issue.