PT-2025-39142 · Linux+5 · Linux Kernel+5

Published

2025-08-29

·

Updated

2026-05-07

·

CVE-2025-39885

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The Linux kernel contained a flaw in the OCFS2 implementation where a recursive semaphore deadlock could occur during a fiemap call. Specifically, the issue was detected by syzbot during a file system operation involving a specially crafted mmap file. The vulnerability arises from taking a read lock on the ip alloc sem semaphore within ocfs2 fiemap() and subsequently attempting to acquire a write lock on the same semaphore within ocfs2 page mkwrite(), leading to a deadlock and filesystem hang. The ocfs2 fiemap() function takes a read lock of the ip alloc sem semaphore and calls fiemap fill next extent() to read the extent list. The user-supplied buffer then page faults, calling ocfs2 page mkwrite(), which attempts to take a write lock on the same semaphore.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Locking

Weakness Enumeration

Related Identifiers

BDU:2025-13173
CVE-2025-39885
DLA-4328-1
DLA-4404-1
ECHO-BD5E-C1B7-9415
MGASA-2025-0309
MGASA-2025-0310
OPENSUSE-SU-2025:20081-1
SUSE-SU-2025:03600-1
SUSE-SU-2025:03601-1
SUSE-SU-2025:03614-1
SUSE-SU-2025:03633-1
SUSE-SU-2025:03634-1
SUSE-SU-2025:20851-1
SUSE-SU-2025:20861-1
SUSE-SU-2025:20870-1
SUSE-SU-2025:20898-1
SUSE-SU-2025:21074-1
SUSE-SU-2025:21139-1
SUSE-SU-2025:21179-1
SUSE-SU-2025:3725-1
SUSE-SU-2025:3751-1
USN-8033-1
USN-8033-2
USN-8033-3
USN-8033-4
USN-8033-5
USN-8033-6
USN-8033-7
USN-8033-8
USN-8034-1
USN-8034-2
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8100-1
USN-8125-1
USN-8126-1
USN-8141-1
USN-8163-1
USN-8163-2
USN-8165-1
USN-8243-1
USN-8261-1

Affected Products

Debian
Linuxmint
Linux Kernel
Ocfs2
Suse
Ubuntu