CVE-2024-47741
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-47741 is a race condition vulnerability in the Linux kernel's BTRFS file system implementation. The vulnerability was discovered in the handling of concurrent lseek system calls against the same file descriptor using multiple threads belonging to the same process. The issue affects Linux kernel versions from 6.2 up to (excluding) 6.6.54, versions from 6.7 up to (excluding) 6.10.13, and versions from 6.11 up to (excluding) 6.11.2 (NVD).

Technical details

The vulnerability occurs during concurrent lseek(2) system calls with SEEKDATA or SEEKHOLE operations. When multiple threads use the same file descriptor, a race condition exists in the file.c:finddesiredextent() function. The race happens when extracting and setting the file's private_data pointer, leading to potential memory leaks and use-after-free issues with the cached state record. The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (HIGH) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can result in two primary issues: 1) A memory leak when multiple threads allocate private structures but only one gets assigned to the file descriptor, and 2) A potential use-after-free vulnerability in the cached state record (struct btrfsfileprivate::llseekcachedstate) since multiple threads may access it while only one holds the reference count. This could lead to system instability or potential security implications (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through a patch that protects the private assignment and check of a file while holding the inode's spinlock. The fix also includes tracking the task that allocated the private structure to ensure it's used only by that task. Users should upgrade to Linux kernel versions 6.6.54, 6.10.13, or 6.11.2 or later to receive the fix (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management