CVE-2025-38172
BaseFortify
Publication date: 2025-07-03
Last updated on: 2025-11-20
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) |
| 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 occurs in the Linux kernel's erofs filesystem when multiple devices of different types are used together. Specifically, if the primary device is a block device and the extra device is a file-backed device, an error (-ENOTBLK) is returned but not treated as an error, leading to a use-after-free (UAF) condition. This happens because the error causes improper initialization and freeing of resources, resulting in a dangling pointer and potential memory corruption.
How can this vulnerability impact me? :
The use-after-free vulnerability can lead to memory corruption, which attackers might exploit to cause system crashes, escalate privileges, or execute arbitrary code within the kernel. This can compromise system stability and security.