Menu

Star on GitHub · 3.2k

CVE-2023-52737

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: btrfs: lock the inode in shared mode before starting fiemap Currently fiemap does not take the inode's lock (VFS lock), it only…

Published May 21, 2024CWE-667EPSS 0.21%

Overview

CVE-2023-52737 is a medium-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: lock the inode in shared mode before starting fiemap

Currently fiemap does not take the inode's lock (VFS lock), it only locks

a file range in the inode's io tree. This however can lead to a deadlock

if we have a concurrent fsync on the file and fiemap code triggers a fault

when accessing the user space buffer with fiemap_fill_next_extent(). The

deadlock happens on the inode's i_mmap_lock semaphore, which is taken both

by fsync and btrfs_page_mkwrite(). This deadlock was recently reported by

syzbot and triggers a trace like the following:

task:syz-executor361 state:D stack:20264 pid:5668 ppid:5119 flags:0x00004004

Call Trace:

<TASK>

context_switch kernel/sched/core.c:5293 [inline]

__schedule+0x995/0xe20 kernel/sched/core.c:6606

schedule+0xcb/0x190 kernel/sched/core.c:6682

wait_on_state fs/btrfs/extent-io-tree.c:707 [inline]

wait_extent_bit+0x577/0x6f0 fs/btrfs/extent-io-tree.c

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2023-52737?

CVE-2023-52737 is a medium-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2023-52737?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2023-52737?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-52737?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2023-52737 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2023

View all