PT-2024-32787 · Linux+5 · Linux Kernel+5
Jann Horn
·
Published
2024-10-21
·
Updated
2025-05-28
·
CVE-2024-47740
CVSS v2.0
6.8
Medium
| Vector | AV:L/AC:L/Au:S/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue concerns the Linux kernel's F2FS (Flash-Friendly File System) and its handling of atomic write ioctls. Specifically, the F2FS ioctls for starting and committing atomic writes checked for
inode owner or capable(), but this did not provide an opportunity for Linux Security Modules (LSMs) like SELinux or Landlock to deny write access if the caller's FSUID matched the inode's UID. This could be bypassed in two ways: using F2FS IOC START ATOMIC REPLACE + F2FS IOC COMMIT ATOMIC WRITE to truncate an inode to size 0, or using F2FS IOC START ATOMIC WRITE + F2FS IOC ABORT ATOMIC WRITE to revert changes made by another process to a file. The fix involves requiring FMODE WRITE for these operations.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Ubuntu