CVE-2024-46701
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2024-46701) was discovered in the libfs component that could lead to infinite directory reads for offset directories. The issue was identified when tmpfs directory operations were switched from simple_dir_operations to simple_offset_dir_operations. The vulnerability affects Linux kernel versions from 6.6 up to (excluding) 6.10.7, and version 6.11 release candidates (rc1, rc2, rc3) (NVD).

Technical details

The vulnerability occurs when rename operations fill new dentry entries to the destination directory's maple tree with a free key starting with octx->newx_offset, followed by incrementing newx_offset. This can result in infinite readdir operations when combined with simultaneous rename operations. The issue manifests when creating multiple files under one directory, calling readdir once to get an entry, and then performing rename operations in a loop. The CVSS v3.1 base score is 5.5 (MEDIUM) with a vector of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can cause a denial of service condition through infinite directory reads, potentially affecting system stability and performance. This is particularly evident in scenarios involving directory operations with multiple file renames (Kernel Patch).

Exploitability

The vulnerability requires local access with low privileges. It can be triggered through specific filesystem operations involving directory reads and rename operations. The exploit has been demonstrated through a test case that creates 5000 files in a directory and performs repeated rename operations while reading directory entries (Kernel Patch).

Mitigation and workarounds

The issue has been fixed by implementing the same logic used in the btrfs fix for infinite directory reads. The solution involves recording the last_index when opening a directory and preventing the emission of entries with an index greater than or equal to last_index. The fix updates the last_index during directory seek operations when the offset is zero (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-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesAug 12, 2026
CVE-2026-68449NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68448NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 12, 2026
CVE-2026-68447NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 12, 2026
CVE-2026-68446NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 12, 2026

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