CVE-2025-39885
BaseFortify
Publication date: 2025-09-23
Last updated on: 2025-11-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | kernel | 6.1.153-1 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a recursive semaphore deadlock in the OCFS2 filesystem's fiemap call within the Linux kernel. Specifically, when the fiemap ioctl is used on a specially crafted mmap file, the OCFS2 code takes a read lock on a semaphore protecting the inode extent list, then attempts to take a write lock on the same semaphore during a page fault triggered by accessing the user buffer. This recursive locking causes the filesystem to hang due to a deadlock.
How can this vulnerability impact me? :
The vulnerability can cause the OCFS2 filesystem to hang when processing a fiemap ioctl on a specially crafted mmap file. This hang results from a deadlock caused by recursive locking of a semaphore, potentially leading to system unresponsiveness or denial of service related to filesystem operations.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is fixed by releasing the read semaphore before calling fiemap_fill_next_extent() in ocfs2_fiemap() and ocfs2_fiemap_inline(). To mitigate this vulnerability immediately, update your Linux kernel to a version that includes this fix. Avoid using the vulnerable OCFS2 fiemap ioctl on affected kernels until patched.